I'm doing a simple request like this
$wsdl = "http://.../wsdl/FileArchive";
$client = new SoapClient($wsdl);
$parameters= array(
"FileName" => "file.jpg"
);
$values = $client->GetFileInfo($parameters);
I'm getting "Array to string conversion" where the GetFileInfo method is being called.
The method is defined in wsdl like this :
<message name="GetFileInfo0Request">
<part name="FileName" type="xs:string"/>
</message>
I've searched for it, and found out it could occur when there is some complex type, but here is just a string. What could be the problem?
Rather than this $values = $client->GetFileInfo($parameters);
Try this instead: $values = $client->__soapCall('GetFileInfo', $parameters);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With