Hey Donna,When it sends "500" as a response, this doesn't tell us anything specific. It simply means that the web service noticed an error. Nothing more specific than that...
However, the web service should have sent a response containing more information. This may be in the form of an XML or JSON document containing the error message -- so you might check the document you received back to see if it has the error message in it (in place of the normal WS response.)
You can also create an HTTPAPI debug/trace file that contains a lot of technical information about what is going on under the covers. To do that, you can add a line of code to your program (before calling HTTPAPI routines) like this:
callp httpapi_debug(*on)When you run your program again, it will produce a file in the IFS named /tmp/httpapi_debug.txt that contains the aforementioned technical info. Please look that over and see if you can figure this out,. If not, download the file to your PC, obscure any sensitive info (especially any passwords... remove any authorization/authenticate lines) and attach the file to an e-mail in reply to this mailing list. This will give us information that we can use to try to understand what is going on.
Hope that helps On 10/2/2015 9:16 AM, Donna Herald wrote:
Please see the prior email On 10/2/15, Donna Herald <donna.g.herald@xxxxxxxxx> wrote:Hello, I am trying to create a program to call a REST WS but I am getting an error, ‘HTTP/1.1 500 Internal Server Error’. I am new to REST WS and API’s. I have debugged my program several times but I cannot find the problem. I think it must be with the parameters I am using for the post but I cannot find the problem. I have attached my program and would appreciate any available assistance. Donna G Herald----------------------------------------------------------------------- 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 -----------------------------------------------------------------------