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

RE: HTTP/1.1 500 Internal Server Error ON SERVER RUNNING V5R3



Thank you for responding so quickly. I just posted the correction. I miss formed the SOAP envelope command. I had ended it too soon. 

A different question I was trying to debug the code and in the service program HTTPAPI4 I found a call to "comm_lineread". Where is this procedure? I looked all over for it. 

Thanks

Mark
 
 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Scott Klement
Sent: Friday, January 16, 2009 2:53 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: HTTP/1.1 500 Internal Server Error ON SERVER RUNNING V5R3



Hi Mark,

Mark Sherwood wrote:
>    Ever time I run the attached program I get an error 500 Internal
>    Server Error. Can anyone see what the problem may be?

Looks like you forgot the namespace on your <string> element. The way 
you've coded it, it should be <t:string> not just <string>

Also, when I view the WSDL for that service, it appears to want two 
"string" parameters under <t:ReportType>  so you should have something 
like this:

<t:ReportType>
    <t:string>whatever</t:string>
    <t:string>whatever else</t:string>
</t:ReportType>

Also, make sure that anything in the w_ACCT, w_USER, w_PSW, w_NEWPSW, 
w_BLOB, w_reptype is encoded according to XML standards.

Also -- the 'Add_SOAPACTION' thing you're doing is unnecessary.  It 
should work okay, but it's more code than you needed.  You can simply 
pass your soapaction in the last parameter to http_url_post_xml.  The 
only time you need to use an xproc is when the soapaction exceeds 64 
characters.  (In your example, it's 29 characters)

Furthermore, the error '500 Internal Server Error' means exactly this: 
"An error occurred on the server".   That's all it means.  IT does not 
tell you anything specific.

There should be some data downloaded from the server (check your 
httpapi_debug.txt file) for additional information about the problem.
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------