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

Re: Call to HTTP_URL_P ended in error



   Naresh, I can't determine what is wrong from the -1.  You need to call
   http-error to find out the cause of the -1.

   Sent from my iPhone

   On May 12, 2012, at 12:42 PM, Naresh Mistry
   <[1]naresh.mistry@xxxxxxxxxx> wrote:

   Hi Scott,

            I changed the call to http_url_post and changed the parameters
   accordingly, I was not sure if I need to put anything in the filename
   parameter, see screenshot. However, when I run the program variable rc
   returns a -1. What I am doing wrong ?


   <image001.png>




   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

   [2]www.nulogx.com | Transportation Management Solutions |
   [3]www.cgfi.ca | Canadian General Freight Index �egister Today



   -----Original Message-----
   From: Scott Klement [mailto:sk@xxxxxxxxxxxxxxxx]
   Sent: Friday, May 11, 2012 7:22 PM
   To: HTTPAPI and FTPAPI Projects
   Cc: Naresh Mistry
   Subject: Re: Call to HTTP_URL_P ended in error


   Hi Naresh,


   The error you describe is happening when receiving a response, not when
   sending a request. So knowing what your requests look like, by
   themselves, doesn't help me reproduce the problem.


   If I had permission to call the web service (which probably isn't

   possible) and your code, I could potentially use it with the requests
   you posted to reproduce the problem.  But having the request with
   nothing else doesn't do any good.


   Please try this:


   1) Try using http_url_post  (instead of http_url_post_xml) to call the

   web service.   (Change the parameters accordingly) Does it still
   produce

   the error you cite?


   2) If http_url_post() works, but post_xml fails, then try calling

   http_parse_xml_stmf() with the file you downloaded via http_url_post...

     does parse_xml_stmf cause the problem you cite?


   These two tests will, if nothing else, help localize where the error
   would be.


   If the problem occurs during the HTTP request, then we need to find a
   site that I can call that will reproduce the error so I can
   troubleshoot it further.


   If the problem occurs during the XML parse, then you could potentially
   send me the XML document, and I could use that to reproduce the
   problem.


   Thanks!



   On 5/11/2012 5:56 PM, Naresh Mistry wrote:

   > 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

References

   1. mailto:naresh.mistry@xxxxxxxxxx
   2. http://www.nulogx.com/
   3. http://www.cgfi.ca/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------