[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: REST WS Problem
Should be
http_debug(*ON);
Charles
On Fri, Oct 2, 2015 at 2:36 PM, Donna Herald
<[1]donna.g.herald@xxxxxxxxx> wrote:
Scott,
I appologize for my issues...if I add 'callp httpapi_debug(*on)' my
program will not compile.� I get the following error,, the name or
indicator is not defined (HTTPAPI).� I have libhttp added to my
library list.� I did find this in my link, Error 500:
java.lang.NullPointerException
The purpose of the project is to send data over to the webservice.
The java programmer created a service web service program which
takes
you to a web page for testing.� I cannot access this as I am on a
virtual and do not have access, however I have had someone else
paste
in the xml and it seems to work right from there.
From SOAPUI I asked someone to try and it will not work from SOAPUI.
I dont have the authority to try from SOAPUI either.
I am not sure if I should even be using the http_url_post or the
http_url_post_xml.� The service I was given by the java programmer
says he is expecting one paramether but the http commands expects
more
which I am passing.
I think it must have to do with the wrong values in the paramets I
am
passing.� Were you able to open up my attachments to see my
program.
Scott, thanks so much for your help.� I am at a loss of what to do
and
no one here seems to know either.
Donna
On 10/2/15, Scott Klement <[2]sk@xxxxxxxxxxxxxxxx> wrote:
> 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 <[3]donna.g.herald@xxxxxxxxx> wrote:
>>> Hello,
>>>
>>> I am trying to create a program to call a REST WS but I am getting
an
>>> error, �TP/1.1 500 Internal Server Error� I am new to REST WS
and
>>> API�� 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:
>> [4]http://www.scottklement.com/mailman/listinfo/ftpapi
>>
-----------------------------------------------------------------------
>>
>
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list.� To unsubscribe, please go to:
> [5]http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.� To unsubscribe, please go to:
[6]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. mailto:donna.g.herald@xxxxxxxxx
2. mailto:sk@xxxxxxxxxxxxxxxx
3. mailto:donna.g.herald@xxxxxxxxx
4. http://www.scottklement.com/mailman/listinfo/ftpapi
5. http://www.scottklement.com/mailman/listinfo/ftpapi
6. 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
-----------------------------------------------------------------------