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

RE: HTTP/1.1 500 Internal Server Error



Tony,

The fault string in the log says: <faultstring>Error validating Account
Number. Invalid Account Number format. </faultstring>

Check to see how you are formatting the Account Number in program-C
before it is passed to program-A. 

Karl B. Woods  

-----Original Message-----
From: Tony.Davis2@xxxxxxx [mailto:Tony.Davis2@xxxxxxx] 
Sent: Wednesday, September 02, 2009 9:17 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: HTTP/1.1 500 Internal Server Error


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
-----------------------------------------------------------------------