Null SOAP Value

174 Views Asked by At

I'm using Zend's Soap Client to submit a SOAP request to a proxy server and I'm having issues getting the return value.

if i print out the ojbect $response->responseMessage[0] I get the following

Response: SoapVar Object
(
    [enc_type] => 0
    [enc_value] => stdClass Object
        (
            [code] => 126
            [message] => No Field Values 
        )

    [enc_stype] => responseMessage
    [enc_ns] => urn:Turbolink
)

But when I print $response->responseMessage[0]->code I get a null value. What am I doing wrong?

1

There are 1 best solutions below

1
FuzzyTree On BEST ANSWER

Try $response->responseMessage[0]->enc_value->code