• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nusoap - Accessing the Repsonse

#1
[eluser]hamiltonian[/eluser]
I am consuming a JAVA webservice through PHP using NuSoap and it works great (finally!). Now I am trying to access the data in the response, but am not having much luck.

The Response I get looks like:

Quote:<?xml version="1.0" ?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getTLResponseSetResponse xmlns:ns2="http://ESP.jbhunt.com/">
<return>
<errorFlag>false</errorFlag>
<responseDetailsArray>
&lt;baseTariff&gt;1305&lt;/baseTariff&gt;
<config>DROP</config>
<customerDerComment></customerDerComment>
<customerDerivative>0</customerDerivative>
<deliveryDay>31</deliveryDay>
<deliveryMonth>7</deliveryMonth>
<deliveryYear>2008</deliveryYear>
<destDrayMiles>0</destDrayMiles>
<destRamp>G$</destRamp>
<equipment>DVN_53</equipment>
<inboundDerivative>0</inboundDerivative>
<laneDerivative>180</laneDerivative>
<minTariff>0</minTariff>
<origDrayMiles>0</origDrayMiles>
<origRamp>C!</origRamp>
<outboundDerivative>0</outboundDerivative>
<pickupDay>29</pickupDay>
<pickupMonth>7</pickupMonth>
<pickupYear>2008</pickupYear>
<totalRate>0</totalRate>
<totalTariff>1485</totalTariff>
<transit>IM_STD</transit>
<transitDays>2</transitDays>
</responseDetailsArray>
<responseDetailsArray>
&lt;baseTariff&gt;1675&lt;/baseTariff&gt;
<config>DROP</config>
<customerDerivative>0</customerDerivative>
<deliveryDay>31</deliveryDay>
<deliveryMonth>7</deliveryMonth>
<deliveryYear>2008</deliveryYear>
<destDrayMiles>0</destDrayMiles>
<equipment>DVN_53</equipment>
<inboundDerivative>0</inboundDerivative>
<laneDerivative>0</laneDerivative>
<minTariff>927</minTariff>
<origDrayMiles>0</origDrayMiles>
<outboundDerivative>0</outboundDerivative>
<pickupDay>29</pickupDay>
<pickupMonth>7</pickupMonth>
<pickupYear>2008</pickupYear>
<totalRate>0</totalRate>
<totalTariff>1675</totalTariff>
<transit>TRK_STD</transit>
<transitDays>2</transitDays>
</responseDetailsArray>
</return>
</ns2:getTLResponseSetResponse>
</S:Body>
</S:Envelope>

Any ideas?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.