I created the SOAP client like this:
$client = new SoapClient("file.wsdl");
And then when I want to call the API function
$client->Authenticate("user", "password");
I get the following error:
When trying to deserialize the message, the formatter threw an exception:
Error deserializing the body of the request message for the Authentication operation. The final body element from the namespace ' http://schemas.xmlsoap.org/soap/envelope/ ' is expected. The element 'param1' from the namespace is found.
But when I try to pass parameters in an array, it works, but I get the following error:
["errorMessage"]=> string(35) "ORA-01008: not all variables bound
My question is: how to pass parameters to PHP for a SOAP client? Should they be in an array?
gorgi93
source share