SOAP on php v5.2.4

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I want to use SOAP on php v5.2.4. In previous version of php, I use
nusoap to develop SOAP but it seems not workable in v5.2 or later.

What is the formal method for doing SOAP in php? or, any good
framework to do it? Please advise. Thx.

Re: SOAP on php v5.2.4


You can use the SOAP extension described at

To enable it, you can configure PHP with --enable-soap=shared and add to your php.ini. When activated, you'll see it in
your phpinfo output.

Here's a typical example with debugging:

$sc = new SoapClient(' ', array('trace' =>
$params = array('x' => 1, 'y' => 2);
$res = $sc->SomeMethod($params);
echo "SOAP trace: Request:\n\n" . $sc->__getLastRequest() .
  "\nResponse:\n\n" . $sc->__getLastResponse() . "\n";


John Peters

On Nov 21, 11:10 am, wrote:
Quoted text here. Click to load it

Site Timeline