Re: [SOAP] access remote server to get data

[email protected] (Al Baker)
Newsgroups php.soap
Message-ID <1191746206.8885.8.camel@localhost>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.