Re: [SOAP] access remote server to get data
| From: | Al Baker | Date: | Sun, 07 Oct 2007 08:36:46 +0000 |
| Subject: | Re: [SOAP] access remote server to get data | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2659@lists.php.net to get a copy of this message | ||
If you're developing a SOAP Server using PHP5's SOAP extension, just
write a PHP class that you want to expose via SOAP. That PHP class can
do whatever you want for database access. I recommend taking a look at
PDO: http://us.php.net/pdo
You can then set the server to be implemented by this PHP class that is
internally doing your database queries:
http://us2.php.net/manual/en/function.soap-soapserver-setclass.php
Regards,
Al
On Sat, 2007-10-06 at 09:08 -0700, kazi-hossain wrote:
> HI
> I am new using php and soap. I have two server, one is data-base server and
> other one webserver. How can i access data-base server from webserver using
> ip address, root login and password and get the data from the data-base
> server. Plz need example code.
> Thanks
> Kazi