Re: [SOAP] Why is response type NOT as specified in WSDL?

[email protected] (Richard Quadling) Mon, 18 Jul 2011 13:37:58 +0100
Newsgroups php.soap
Message-ID <CAKUjMCXw2GmGnmOZDbYtXM5rwOTHO4_sgZ3v_AhJv8CKo=OAMA@mail.gmail.com>
On 18 July 2011 13:07, Shmuel Aharon Kam <[email protected]> wrote:
> Hello all,
> I have a working SOAP client-server (both in PHP). When I look at the
> XML of the response received, I see exactly what I expect:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns1="http://localhost/TestSOAP/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:InsertIDResponse xsi:type="InsertIDResponse">
> <out>44</out>
> </ns1:InsertIDResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> So why is PHP giving me a stdClass instead of an InsertIDResponse object?
> Isn't the classmap supposed to handle exactly these transformations?
>
> thanks,
> Shmuel-Aharon Kam


It certainly should do.

Make sure that the class InsertIDResponse is actually defined and available.

Can you show the SoapClient $wsdl and $options parameters please (edit
security related values).

-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea