What type does a PHP SOAP client call return?

Viewed 724

The PHP manual pages for the SOAP client don't clearly define what you can expect to be returned after making a call. The documentation for the soapCall method says

Usually, in WSDL mode, SOAP functions can be called as methods of the SoapClient object

But I was unable to find information about return types within the SoapClient documentation.

soapCall itelf documents a return type of a simple value or an associative array. However when I test, I get an object or type stdClass.

Can I rely on receiving an object of type stdClass?

1 Answers
Related