Optional parameters with PHP SoapClient class on wsdl mode
Posted
by Maraino
on Stack Overflow
See other posts from Stack Overflow
or by Maraino
Published on 2009-07-10T01:17:15Z
Indexed on
2010/03/31
3:03 UTC
Read the original article
Hit count: 729
With the SoapClient class on PHP5.x and working against a SOAP web service that has optional parameters in its methods, you won't have any problem if you use the non-wsdl mode.
But, at least by default, with the wsdl mode, if you don't fill all the parameters you will get an error like: SOAP-ERROR: Encoding: object hasn't 'xxx' property
Is there any way to avoid that error without working with the non-wsdl mode and without filling all the parameters?
© Stack Overflow or respective owner