[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reason for 500 Error (was Re: searching for string on IFS)
Hi Daniel,
The 500 error is not coming from HTTPAPI. It's coming from the HTTP
server that you're connected to. There's not much I can do about it --
HTTPAPI is just relaying what the server told it.
However, you might take a look at the data that's returned to you. The
downloaded data might contain a clue as to the cause of the 500 error.
According to the standards, there should be a 'Fault' element returned
in the SOAP document if the web service is reporting the error to you.
So http_url_post() should return 500, but the data that it has received
should contain an XML SOAP message, and the message should contain a
"soap:Fault" message that contains the reason for the failure.
If the 500 error is coming from a proxy that fails to the connect, the
fault message is more likely to be an HTML message (because the proxy
doesn't know that you're not a web browser).
That's just a guess... you particular scenario might be different. But,
it's something to look for.
Imgrund, Daniel wrote:
> We are using your API to call an internal java web service which in
> turn calls a google time and distance web service, which is working
> great with your API (Our Iseries is blocked from the internet). The
> problem is, as far as we can tell, we get a 500 error for both a
> connection problem, and a bad address return.
>
> I need to know the difference, so I can either mark the address as bad
> so it can get fixed, or I can mark the address as a com failure so
> another attempt will be made later. Lance found that the ifs log/debug
> file specifically states 'invalid address' on address issues, so that
> is what we were going to use it for.
>
> If you have a better solution, we would like it.
>
> Thanks for your help.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------