Jump to content

SOAP response not complete (object only contains first node...)


nikefido

Recommended Posts

Hi all -

I get this from $client->__getLastResponse():

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://somesite.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:Agent.Agent_Bean_List_Agents>
        <serviceParameters>
                <partName>Agent.List_Agents</partName>
               <partTokens>0</partTokens>
               <logonUserid>webservice</logonUserid>
               <logonPassword>webservice</logonPassword>
        </serviceParameters>
        <serviceData>
               <Master_Agent_Code>MSTR001</Master_Agent_Code>
               <Password_Text>mstr001</Password_Text>
        </serviceData>
</ns1:Agent.Agent_Bean_List_Agents>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

However, my $result from the soap call contains only this:

array(4) {
  ["partName"]=>
  string(28) "Agent.List_Agents"
  ["partTokens"]=>
  string(1) "0"
  ["logonUserid"]=>
  string(10) "webservice"
  ["logonPassword"]=>
  string(10) "webservice"
}

 

Any ideas on what might be happening?? I'm totally missing the important part of the response! And I really can't feasabily parse the string of "__getLastResponse();" because the web service responds with different parameters.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.