[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Call to HTTP_URL_P ended in error



Hi Scott,
         I have attached soap request SoapRequestA.txt file that causes the crash, along with the dump. The crash happens when I send an invalid country code 'US', however the soap response does send back an error code '28'. I have also attached the soap request SoapRequestB.txt file that does not cause the crash, this is when I send a valid country code 'USA'. I hope this helps you to debug the issue. Let me know if you want any further information.

Naresh     

Naresh Mistry | TM Architect | Nulogx Inc. | 5090 Explorer Dr, Suite 203, Mississauga, ON L4W 4T9 | T: 905-486-1162 x 238 | F: 905-267-3164 | C: 416-820-5231
www.nulogx.com | Transportation Management Solutions | www.cgfi.ca | Canadian General Freight Index - Register Today


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Friday, May 11, 2012 5:18 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Call to HTTP_URL_P ended in error

Hi Naresh,

This is a strange problem... I haven't seen it before.

How can I reproduce it, so I can debug it further?


On 5/9/2012 2:05 PM, Naresh Mistry wrote:
>            I am trying to monitor for error messages from the soap
>     response, i.e. if an element had the wrong value sent an error code
>     would be returned. When I check the dump the error code is returned but
>     I get the following error when calling  http_url_post_xml:
>
>     Length or start position is out of range for the string operation.
>
>     The call to HTTP_URL_P ended in error (C G D F).
>
>     I have attached the dump. I would be grateful if someone could look
>     into this.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V6R1M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: corp.nulogx.com
DNS server found: 10.1.2.10
DNS server found: 10.100.1.9
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /AdminManager/services/RateWareXL HTTP/1.1
Host: demo.smc3.com
User-Agent: http-api/1.23
Content-Type: text/xml
Expect: 100-continue
Content-Length: 2444


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web="http://webservices.smc.com"; xmlns:web1="http://web.ltl.smc.com";><soapenv:Header> <web:AuthenticationToken><web:licenseKey>T38SI7AWZg98</web:licenseKey><web:password>IYKL34K3</web:password><web:username>naresh.mistry@xxxxxxxxxx</web:username></web:AuthenticationToken></soapenv:Header><soapenv:Body><web:LTLRateShipment><web:LTLRateShipmentRequest><web1:LTL_Surcharge> </web1:LTL_Surcharge><web1:TL_Surcharge> </web1:TL_Surcharge><web1:destinationCity> </web1:destinationCity><web1:destinationCountry>US</web1:destinationCountry><web1:destinationPostalCode>40111       </web1:destinationPostalCode><web1:destinationCity> </web1:destinationCity><web1:details><web1:LTLRequestDetail><web1:nmfcClass> 65 </web1:nmfcClass><web1:weight>    498.0000</web1:weight></web1:LTLRequestDetail></web1:details><web1:discountApplication>c</web1:discountApplication><web1:mcDiscount>60</web1:mcDiscount><web1:orgDestToGateWayPointFlag> </web1:orgDestToGateWayPointFlag><web1:originCity> </web1:originCity><web1:originCountry>US</web1:originCountry><web1:originPostalCode>30344       </web1:originPostalCode><web1:originState> </web1:originState><web1:rateAdjustmentFactor>1.0</web1:rateAdjustmentFactor><web1:shipmentDateCCYYMMDD>20110110</web1:shipmentDateCCYYMMDD><web1:shipmentID> </web1:shipmentID><web1:stopAlternationWeight> </web1:stopAlternationWeight><web1:surchargeApplication> </web1:surchargeApplication><web1:tariffName>DEMOLTLA  </web1:tariffName><web1:useDiscounts> </web1:useDiscounts><web1:useSingleShipmentCharges> </web1:useSingleShipmentCharges><web1:userMinimumChargeFloor> </web1:userMinimumChargeFloor><web1:weightBreak_Discount_1> </web1:weightBreak_Discount_1><web1:weightBreak_Discount_10> </web1:weightBreak_Discount_10><web1:weightBreak_Discount_11> </web1:weightBreak_Discount_11><web1:weightBreak_Discount_2> </web1:weightBreak_Discount_2><web1:weightBreak_Discount_3> </web1:weightBreak_Discount_3><web1:weightBreak_Discount_4> </web1:weightBreak_Discount_4><web1:weightBreak_Discount_5> </web1:weightBreak_Discount_5><web1:weightBreak_Discount_6> </web1:weightBreak_Discount_6><web1:weightBreak_Discount_7> </web1:weightBreak_Discount_7><web1:weightBreak_Discount_8> </web1:weightBreak_Discount_8><web1:weightBreak_Discount_9> </web1:weightBreak_Discount_9></web:LTLRateShipmentRequest></web:LTLRateShipment></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Date: Fri, 11 May 2012 22:33:06 GMT
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked


SetError() #13: HTTP/1.1 200 OK
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
101e

chunk size = 4126
get_chunk_size returned 4126
calling comm_blockread
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soap:Body><ns1:LTLRateShipmentResponse xmlns:ns1="http://webservices.smc.com";><ns1:LTLRateShipmentResponse><LHGrossCharge xmlns="http://web.ltl.smc.com";>0</LHGrossCharge><LTL_Surcharge xmlns="http://web.ltl.smc.com";></LTL_Surcharge><RBNO xmlns="http://web.ltl.smc.com";></RBNO><TL_Surcharge xmlns="http://web.ltl.smc.com";></TL_Surcharge><absoluteMCFloor xmlns="http://web.ltl.smc.com";>0</absoluteMCFloor><actualWgt xmlns="http://web.ltl.smc.com";>0</actualWgt><billedWgt xmlns="http://web.ltl.smc.com";>0</billedWgt><deficitCharge xmlns="http://web.ltl.smc.com";>0</deficitCharge><deficitRate xmlns="http://web.ltl.smc.com";>0</deficitRate><deficitWeight xmlns="http://web.ltl.smc.com";>0</deficitWeight><destinationCity xmlns="http://web.ltl.smc.com";></destinationCity><destinationCountry xmlns="http://web.ltl.smc.com";>US</destinationCountry><destinationPostalCode xmlns="http://web.ltl.smc.com";>40111</destinationPostalCode><destinationState xmlns="http://web.ltl.smc.com";></destinationState><details xmlns="http://web.ltl.smc.com";><LTLResponseDetail><charge></charge><error>0</error><nmfcClass>65</nmfcClass><rate></rate><weight>498.0000</weight></LTLResponseDetail></details><discountAmount xmlns="http://web.ltl.smc.com";>0</discountAmount><discountApplication xmlns="http://web.ltl.smc.com";>C</discountApplication><discountPctUsed xmlns="http://web.ltl.smc.com";>0</discountPctUsed><effectiveDate xmlns="http://web.ltl.smc.com";></effectiveDate><errorCode xmlns="http://web.ltl.smc.com";>28</errorCode><mcDiscount xmlns="http://web.ltl.smc.com";>60</mcDiscount><minimumCharge xmlns="http://web.ltl.smc.com";>0</minimumCharge><orgDestToGateWayPointFlag xmlns="http://web.ltl.smc.com";></orgDestToGateWayPointFlag><originCity xmlns="http://web.ltl.smc.com";></originCity><originCountry xmlns="http://web.ltl.smc.com";>US</originCountry><originPostalCode xmlns="http://web.ltl.smc.com";>30344</originPostalCode><originState xmlns="http://web.ltl.smc.com";></originState><rateAdjustmentFactor xmlns="http://web.ltl.smc.com";>1.0</rateAdjustmentFactor><rateApplication xmlns="http://web.ltl.smc.com";></rateApplication><shipmentDateCCYYMMDD xmlns="http://web.ltl.smc.com";>20110110</shipmentDateCCYYMMDD><shipmentID xmlns="http://web.ltl.smc.com";></shipmentID><stopAlternationWeight xmlns="http://web.ltl.smc.com";></stopAlternationWeight><suffix xmlns="http://web.ltl.smc.com";></suffix><surchargeAmount xmlns="http://web.ltl.smc.com";>0</surchargeAmount><surchargeApplication xmlns="http://web.ltl.smc.com";>N</surchargeApplication><surchargePercentUsed xmlns="http://web.ltl.smc.com";>0</surchargePercentUsed><tariffName xmlns="http://web.ltl.smc.com";>DEMOLTLA</tariffName><tblno xmlns="http://web.ltl.smc.com";></tblno><totalCharge xmlns="http://web.ltl.smc.com";>0</totalCharge><useDiscounts xmlns="http://web.ltl.smc.com";>Y</useDiscounts><useSingleShipmentCharges xmlns="http://web.ltl.smc.com";>N</useSingleShipmentCharges><userMinimumChargeFloor xmlns="http://web.ltl.smc.com";></userMinimumChargeFloor><weightBreak_Discount_1 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_1><weightBreak_Discount_10 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_10><weightBreak_Discount_11 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_11><weightBreak_Discount_2 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_2><weightBreak_Discount_3 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_3><weightBreak_Discount_4 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_4><weightBreak_Discount_5 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_5><weightBreak_Discount_6 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_6><weightBreak_Discount_7 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_7><weightBreak_Discount_8 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_8><weightBreak_Discount_9 xmlns="http://web.ltl.smc.com";></weightBreak_Discount_9></ns1:LTLRateShipmentResponse></ns1:LTLRateShipmentResponse></soap:Body></soap:Envelope>
comm_blockread returned 4126
<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:web="http://webservices.smc.com"; xmlns:web1="http://web.ltl.smc.com";>
  <soapenv:Header>
    <web:AuthenticationToken>
      <web:licenseKey>T38SI7AWZg98</web:licenseKey>
      <web:password>IYKL34K3</web:password>
      <web:username>naresh.mistry@xxxxxxxxxx</web:username>
    </web:AuthenticationToken>
  </soapenv:Header>
  <soapenv:Body>
    <web:LTLRateShipment>
      <web:LTLRateShipmentRequest>
        <web1:LTL_Surcharge> </web1:LTL_Surcharge>
        <web1:TL_Surcharge> </web1:TL_Surcharge>
        <web1:destinationCity> </web1:destinationCity>
        <web1:destinationCountry>US</web1:destinationCountry>
        <web1:destinationPostalCode>40111       </web1:destinationPostalCode>
        <web1:destinationCity> </web1:destinationCity>
        <web1:details>
          <web1:LTLRequestDetail>
            <web1:nmfcClass> 65 </web1:nmfcClass>
            <web1:weight>    498.0000</web1:weight>
          </web1:LTLRequestDetail>
        </web1:details>
        <web1:discountApplication>c</web1:discountApplication>
        <web1:mcDiscount>60</web1:mcDiscount>
        <web1:orgDestToGateWayPointFlag> </web1:orgDestToGateWayPointFlag>
        <web1:originCity> </web1:originCity>
        <web1:originCountry>US</web1:originCountry>
        <web1:originPostalCode>30344       </web1:originPostalCode>
        <web1:originState> </web1:originState>
        <web1:rateAdjustmentFactor>1.0</web1:rateAdjustmentFactor>
        <web1:shipmentDateCCYYMMDD>20110110</web1:shipmentDateCCYYMMDD>
        <web1:shipmentID> </web1:shipmentID>
        <web1:stopAlternationWeight> </web1:stopAlternationWeight>
        <web1:surchargeApplication> </web1:surchargeApplication>
        <web1:tariffName>DEMOLTLA  </web1:tariffName>
        <web1:useDiscounts> </web1:useDiscounts>
        <web1:useSingleShipmentCharges> </web1:useSingleShipmentCharges>
        <web1:userMinimumChargeFloor> </web1:userMinimumChargeFloor>
        <web1:weightBreak_Discount_1> </web1:weightBreak_Discount_1>
        <web1:weightBreak_Discount_10> </web1:weightBreak_Discount_10>
        <web1:weightBreak_Discount_11> </web1:weightBreak_Discount_11>
        <web1:weightBreak_Discount_2> </web1:weightBreak_Discount_2>
        <web1:weightBreak_Discount_3> </web1:weightBreak_Discount_3>
        <web1:weightBreak_Discount_4> </web1:weightBreak_Discount_4>
        <web1:weightBreak_Discount_5> </web1:weightBreak_Discount_5>
        <web1:weightBreak_Discount_6> </web1:weightBreak_Discount_6>
        <web1:weightBreak_Discount_7> </web1:weightBreak_Discount_7>
        <web1:weightBreak_Discount_8> </web1:weightBreak_Discount_8>
        <web1:weightBreak_Discount_9> </web1:weightBreak_Discount_9>
      </web:LTLRateShipmentRequest>
    </web:LTLRateShipment>
  </soapenv:Body>
</soapenv:Envelope>
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <soap:Body>
    <ns1:LTLRateShipmentResponse xmlns:ns1="http://webservices.smc.com";>
      <ns1:LTLRateShipmentResponse>
        <LHGrossCharge xmlns="http://web.ltl.smc.com";>156.60</LHGrossCharge>
        <LTL_Surcharge xmlns="http://web.ltl.smc.com"/>
        <RBNO xmlns="http://web.ltl.smc.com";>00008019</RBNO>
        <TL_Surcharge xmlns="http://web.ltl.smc.com"/>
        <absoluteMCFloor xmlns="http://web.ltl.smc.com";>0</absoluteMCFloor>
        <actualWgt xmlns="http://web.ltl.smc.com";>498</actualWgt>
        <billedWgt xmlns="http://web.ltl.smc.com";>500</billedWgt>
        <deficitCharge xmlns="http://web.ltl.smc.com";>.63</deficitCharge>
        <deficitRate xmlns="http://web.ltl.smc.com";>31.32</deficitRate>
        <deficitWeight xmlns="http://web.ltl.smc.com";>2</deficitWeight>
        <destinationCity xmlns="http://web.ltl.smc.com"/>
        <destinationCountry xmlns="http://web.ltl.smc.com";>USA</destinationCountry>
        <destinationPostalCode xmlns="http://web.ltl.smc.com";>40111</destinationPostalCode>
        <destinationState xmlns="http://web.ltl.smc.com";>KY</destinationState>
        <details xmlns="http://web.ltl.smc.com";>
          <LTLResponseDetail>
            <charge>155.97</charge>
            <error>0</error>
            <nmfcClass>65</nmfcClass>
            <rate>31.32</rate>
            <weight>498.0000</weight>
          </LTLResponseDetail>
        </details>
        <discountAmount xmlns="http://web.ltl.smc.com";>0</discountAmount>
        <discountApplication xmlns="http://web.ltl.smc.com";>C</discountApplication>
        <discountPctUsed xmlns="http://web.ltl.smc.com";>0</discountPctUsed>
        <effectiveDate xmlns="http://web.ltl.smc.com";>20070703</effectiveDate>
        <errorCode xmlns="http://web.ltl.smc.com";>0</errorCode>
        <mcDiscount xmlns="http://web.ltl.smc.com";>60</mcDiscount>
        <minimumCharge xmlns="http://web.ltl.smc.com";>181.43</minimumCharge>
        <orgDestToGateWayPointFlag xmlns="http://web.ltl.smc.com"/>
        <originCity xmlns="http://web.ltl.smc.com"/>
        <originCountry xmlns="http://web.ltl.smc.com";>USA</originCountry>
        <originPostalCode xmlns="http://web.ltl.smc.com";>30344</originPostalCode>
        <originState xmlns="http://web.ltl.smc.com";>GA</originState>
        <rateAdjustmentFactor xmlns="http://web.ltl.smc.com";>1.0</rateAdjustmentFactor>
        <rateApplication xmlns="http://web.ltl.smc.com";>R</rateApplication>
        <shipmentDateCCYYMMDD xmlns="http://web.ltl.smc.com";>20110110</shipmentDateCCYYMMDD>
        <shipmentID xmlns="http://web.ltl.smc.com"/>
        <stopAlternationWeight xmlns="http://web.ltl.smc.com"/>
        <suffix xmlns="http://web.ltl.smc.com"/>
        <surchargeAmount xmlns="http://web.ltl.smc.com";>0</surchargeAmount>
        <surchargeApplication xmlns="http://web.ltl.smc.com";>N</surchargeApplication>
        <surchargePercentUsed xmlns="http://web.ltl.smc.com";>0</surchargePercentUsed>
        <tariffName xmlns="http://web.ltl.smc.com";>DEMOLTLA</tariffName>
        <tblno xmlns="http://web.ltl.smc.com";>00018</tblno>
        <totalCharge xmlns="http://web.ltl.smc.com";>156.60</totalCharge>
        <useDiscounts xmlns="http://web.ltl.smc.com";>Y</useDiscounts>
        <useSingleShipmentCharges xmlns="http://web.ltl.smc.com";>N</useSingleShipmentCharges>
        <userMinimumChargeFloor xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_1 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_10 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_11 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_2 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_3 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_4 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_5 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_6 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_7 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_8 xmlns="http://web.ltl.smc.com"/>
        <weightBreak_Discount_9 xmlns="http://web.ltl.smc.com"/>
      </ns1:LTLRateShipmentResponse>
    </ns1:LTLRateShipmentResponse>
  </soap:Body>
</soap:Envelope>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------