[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Call to HTTP_URL_P ended in error
Scott,
I made the change, nothing crashed and rc returned a 1. Now that StartofElement and EndofElement procedures are not part of the parameter list, what replaces these procedures ?
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: Scott Klement [mailto:sk@xxxxxxxxxxxxxxxx]
Sent: Sunday, May 13, 2012 11:50 AM
To: Naresh Mistry
Cc: HTTPAPI and FTPAPI Projects
Subject: Re: Call to HTTP_URL_P ended in error
Hi Naresh,
http_url_post() saves the output from the HTTP server to a stream file on disk. Since we're just doing this as a test, I suggest saving it to a filename in the /tmp directory, and then just deleting it afterwards.
Example: '/tmp/httpapi_test.txt'
Then delete it after you run your test.
On 5/13/2012 10:34 AM, Naresh Mistry wrote:
> Scott
>
> The error I am getting is ‘Open(): – no such path or directory’. I am
> not putting anything in the file name parameter, don’t know what to
> put in that parameter.
>
> 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 <http://www.nulogx.com/> | Transportation Management
> Solutions | www.cgfi.ca <http://www.cgfi.ca/> | Canadian General
> Freight Index – Register Today
>
> *From:*Scott Klement [mailto:sk@xxxxxxxxxxxxxxxx]
> *Sent:* Saturday, May 12, 2012 2:26 PM
> *To:* Naresh Mistry
> *Cc:* HTTPAPI and FTPAPI Projects
> *Subject:* 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 <naresh.mistry@xxxxxxxxxx
> <mailto: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
>
> www.nulogx.com <http://www.nulogx.com> | Transportation Management
> Solutions | www.cgfi.ca <http://www.cgfi.ca> | Canadian General
> Freight Index – Register 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
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------