S
S
seriogja2015-11-24 07:24:42
PHP
seriogja, 2015-11-24 07:24:42

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)

How can I ensure that after receiving the SOAP message, the response is converted into a full-fledged object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
seriogja, 2015-12-08
@seriogja

Not a single answer... As a result, I did everything myself, through zend-soap.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question