[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTP/1.1 500 Internal Server Error
Hi Tony,
Most web services that send a 500 error will also send an XML document
explaining the cause of the error. You may be thinking that because
http_post_xml() returned 500 that it didn't get any document from the
web service -- but that's not true!
If you look at the debug file you posted, you'll see that it contains an
XML message in response. That XML message contains the string:
"Error validating Account Number. Invalid Account Number format."
When I look at the XML you are sending to the web service, you are
sending ? for the account number.
Tony.Davis2@xxxxxxx wrote:
> I have written a program (program-A) that uses http_post_xml() and returns results as expected. I wrote two others that call this program, one RPGLE program (program-B) that displays the data on my green screen, and another SQLRPGLE program (program-C) that returns the data via a results set.
>
> The RPGLE process works perfectly (program-B calls program-A and displays the data in a subfile).
>
> The SQLRPGLE process does not work (program-C calls program-A). I am testing this process using iSeries Navigator. From iSeries Navigator, I call a stored procedure, whose associated external program is the SQLRPGLE program (program-C).
>
> The process is not bombing, it simply returns an error after executing the http_post_xml() statement (I execute http_crash() as in the example that I cloned). The value of rc is 500. I do have debug turned on; that is, creating a log on the IFS. The message in the IFS log is "SetError() #13: HTTP/1.1 500 Internal Server Error".
>
> The entire log is attached.
> Any advice is appreciated.
>
> Thank you,
> Tony Davis
>
>
>
>
>
> ------------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------