Answer the question
In order to leave comments, you need to log in
PHP SOAP. How to convert server response to objects?
Hello!
There is a SOAP server and a client interacting with each other according to the WSDL scheme. Standard SoapServer - SoapClient are used . The classmap describes the corresponding classes. When a response is received from the server, it is converted to an object of the desired type using the classmap . But nested objects are still of type stdObject , although their description is present in the classmap .
object(path\to\MyClassResponse)[82]
public 'Result' =>
object(stdClass)[83]
public 'CodeError' => string '0' (length=1)
public 'TextError' => string 'good' (length=4)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question