I am using the built in SoapServer and SoapClient objects in PHP5 to serve and consume web services. Everything was working fine until I changed the SoapServer host to a different machine. Now, the call from the client to the server that is made works but returns a difficult to parse nested stdClass object instead of what I intended to return: an array containing other, associative, arrays.
For example, where it should return
[0] > Array ('key1'=>'value1','key2'=>'value2')
is now returning something to the effect of:
stdClass (Array([item]=>stdClass (Arr....etc. etc.
I've seen several references to this problem elsewhere but I have yet to see an applicable solution. The interesting thing is that I tried using nusoap instead of the built in PHP5 client but it returned the same strangely organized array hierarchy. So it seems that the problem lies in the server and perhaps the wsdl file.
Has anyone else experienced this problem?
Thanks for your help,
Karim