[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V5R4M0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: corp.cox.com
DNS server found: 10.62.200.11
DNS server found: 10.64.200.11
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
Serial Number: 03
Common Name: *.cox.net
Country: US
State/Province: Georgia
Org Unit: Cox
Issuer CN: default
Issuer Country: US
Issuer State/Province: California
Issuer Locality: San Jose
Issuer Org: Citrix ANG
Issuer Org Unit: NS Internal
Version: 03
not before: 20080716121512
not after: 20180714121512
pub key alg: 1.2.840.113549.1.1.5
Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /idmwebservices/CoxIdentityServices HTTP/1.1
Host: idm.east.dev.cox.net:443
User-Agent: http-api/1.23
Content-Type: text/xml; charset=UTF-8
SOAPAction: 'https://idm.east.dev.cox.net:443/idmwebservices/CoxIdentityServ
Expect: 100-continue
Content-Length: 1028
recvresp(): entered
HTTP/1.1 100 Continue
SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.idm.cox.com/"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-20077295" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">coxcom</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">coxpass</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header><soapenv:Body><web:GetAllAccountInfoAcctNbr>?</web:GetAllAccountInfoAcctNbr><web:GetAllAccountInfoGetIcomsCpni>false</web:GetAllAccountInfoGetIcomsCpni></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Date: Wed, 02 Sep 2009 15:00:53 GMT
Server: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8e
X-Powered-By: Servlet/2.4 JSP/2.0
Cache-Control: max-age=0
Expires: Wed, 02 Sep 2009 15:00:53 GMT
P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"
Connection: close
Transfer-Encoding: chunked
Content-Type: text/xml; charset=UTF-8
SetError() #13: HTTP/1.1 500 Internal Server Error
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
1bf
chunk size = 447
get_chunk_size returned 447
calling comm_blockread
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Error validating Account Number. Invalid Account Number format. </faultstring><detail><ns2:CoxIdentityException xmlns:ns2="http://webservices.idm.cox.com/"><code>800</code><message></message><name>InvalidFormat</name><type></type></ns2:CoxIdentityException></detail></soap:Fault></soap:Body></soap:Envelope>
comm_blockread returned 447
get_chunk_size(): entered
0
chunk size = 0
get_chunk_size returned 0
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------