Search found 652 matches

by Scott Klement
Sat Dec 03, 2022 12:46 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11445

Re: FOPEN(

This code makes no sense. You are writing the code as if you are calling the open() and read() APIs -- but your code says fopen and fread which are different APIs with different parameters.

Also, you posted this in the HTTPAPI forum, and it doesn't appear to be related at all to HTTPAPI.
by Scott Klement
Sat Dec 03, 2022 12:43 am
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20007

Re: XML-INTO XML parser detected error code 2.

When you post code, please put [code] before the first line of the snippet, and [/code] after it. This time around you posted a lot of code with very few explanations, and it is very hard to read. Sorry, I don't have time right now to go through and reformat the messages for you, like I did earlier....
by Scott Klement
Thu Dec 01, 2022 11:09 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20007

Re: XML-INTO XML parser detected error code 2.

I added the code tags because it was hard to read... Maybe that fixed the XML formatting problem, too.
by Scott Klement
Thu Dec 01, 2022 7:28 pm
Forum: YAJL-ILE
Topic: How to set response headers
Replies: 6
Views: 2018

Re: How to set response headers

yajl_writeStdout is pretty simplistic -- and doesn't have code to allow you to customize the headers. I could consider adding that if enough people are interested -- but you are the first one that's ever asked for it. You could, of course, use yajl_copyBufStr() or similar to get the JSON data into y...
by Scott Klement
Thu Dec 01, 2022 7:20 pm
Forum: HTTPAPI
Topic: Server using a single key authentication
Replies: 9
Views: 6945

Re: Server using a single key authentication

Yes, if you're trying to do a bearer token, the token is placed in the "password" field of http_setAuth. The example data you provided does not look like a typical bearer token to me -- but, if that's the correct token for this particular service, then it should work fine if placed in the ...
by Scott Klement
Thu Dec 01, 2022 7:12 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20007

Re: XML-INTO XML parser detected error code 2.

The problem (maybe this was what Jon was saying?) is the path. Your path doesn't include all of the XML elements it needs to get to the "limits" tag. Notice the outermost element of your document is soapenv:Envelope, but for some reason your path starts at "result". To try it out...
by Scott Klement
Thu Dec 01, 2022 6:41 pm
Forum: RPG IV
Topic: XML-INTO XML parser detected error code 2.
Replies: 19
Views: 20007

Re: XML-INTO XML parser detected error code 2.

The XML looks okay to me, aside from some extra linefeeds (that were probably an artifact of the way it was copy/pasted) Here it is reformatted: <?xml version='1.0' encoding='UTF-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns5:getCardRe...
by Scott Klement
Sun Nov 27, 2022 6:04 pm
Forum: HTTPAPI
Topic: DATA-GEN encountering RNX0355 error
Replies: 4
Views: 5721

Re: DATA-GEN encountering RNX0355 error

Inside that ZIP file is an IBMi save file called YAJLLIB72.savf -- if you restore that to your IBM i it will contain all of the YAJL tools.

Read the README.txt file inside that ZIP file for details.
by Scott Klement
Fri Nov 25, 2022 2:40 pm
Forum: HTTPAPI
Topic: DATA-GEN encountering RNX0355 error
Replies: 4
Views: 5721

Re: DATA-GEN encountering RNX0355 error

Is the YAJLDTAGEN program on your system? Is it in your library list? How about the service programs YAJLR4 and YAJL, are they there and in your library list?
by Scott Klement
Thu Nov 24, 2022 2:22 am
Forum: HTTPAPI
Topic: HTTPAPI Error for Ocp-Apim-Subscription-Key
Replies: 2
Views: 2254

Re: HTTPAPI Error for Ocp-Apim-Subscription-Key

Either the server isn't running, or a firewall is blocking access, or you have the wrong URL, or something like that.

A header can't cause the connection to time out.