Search found 666 matches

by Scott Klement
Fri Aug 06, 2021 11:48 pm
Forum: HTTPAPI
Topic: Problem Getting Connected (I think)
Replies: 13
Views: 27431

Re: Problem Getting Connected (I think)

Instead of sending JSON data to the server, you're sending a path name. You need to send them the data that's in the file rather than just the name of the file! http_post won't do this for you (and I wouldn't recommend using http_post in 2021, anyway... http_post is an old, outdated, way to do thing...
by Scott Klement
Fri Aug 06, 2021 11:42 pm
Forum: General
Topic: Github or Gitlab for FTPAPI, HTTPAPI and others
Replies: 1
Views: 9252

Re: Github or Gitlab for FTPAPI, HTTPAPI and others

I plan to eventually put it on GitHub. Before doing so, I'd like to change the way its built so that the code is stored in the IFS and you build it with a Makefile... I just haven't had time to do so, I've been very busy... but that's the direction I plan to go.
by Scott Klement
Fri Aug 06, 2021 11:41 pm
Forum: FTPAPI
Topic: Timeout on data connection
Replies: 1
Views: 15778

Re: Timeout on data connection

It sounds like a good idea to me.
by Scott Klement
Thu Aug 05, 2021 3:34 am
Forum: YAJL-ILE
Topic: Reading JSON Problem(s)
Replies: 13
Views: 23294

Re: Reading JSON Problem(s)

Hi Eric, You have 'trackNumber' but the JSON says 'trackingNumber' You have listed 150 'batchClaimResponse' elements (via DIM(150)) however, the JSON only has one. You have listed 300 'claimProcessMsgInfo' elements, but the JSON only has two. Your 'claimProcessMsgInfo' structure is directly inside '...
by Scott Klement
Thu Aug 05, 2021 3:12 am
Forum: YAJL-ILE
Topic: Reading Json Data using Data-INTO
Replies: 4
Views: 11177

Re: Reading Json Data using Data-INTO

There's nothing built-in that will parse that timestamp... you'll have to write something of your own.
by Scott Klement
Wed Aug 04, 2021 9:27 pm
Forum: YAJL-ILE
Topic: Reading Json Data using Data-INTO
Replies: 4
Views: 11177

Re: Reading Json Data using Data-INTO

The JSON has this structure: { data: { ..fields here... }, title: } But the RPG has this structure: data : { ..fields here... title: } So they do not match. Every time you see a { in JSON, you need to have a DCL-DS. Every time you see a }, you need to have an END-DS. I think you want your RPG to loo...
by Scott Klement
Wed Aug 04, 2021 9:19 pm
Forum: YAJL-ILE
Topic: Reading JSON Problem(s)
Replies: 13
Views: 23294

Re: Reading JSON Problem(s)

The names in the RPG have to match the names in the JSON.

The JSON has

Code: Select all

{
  status:
  message:
  interfaceName:
  batchClaimResponse: [
    ... more ...
}
But your RPG has:

Code: Select all

{ 
   status:  (matches)
   message:  (matches)
   interface: (does not match)
   claimResponse: (does not match)
by Scott Klement
Wed Aug 04, 2021 8:27 pm
Forum: FTPAPI
Topic: Does this support SFTP?
Replies: 9
Views: 28964

Re: Does this support SFTP?

By "SFTP", do you mean the FTP-like interface for SSH? If so, that isn't actually FTP, it's just SSH with commands that are similar to FTP. It works really well, though... I'm glad to answer questions about OpenSSH if that's what you're using. But, no, FTPAPI does not support it. There is ...
by Scott Klement
Wed Aug 04, 2021 8:24 pm
Forum: YAJL-ILE
Topic: Reading JSON Problem(s)
Replies: 13
Views: 23294

Re: Reading JSON Problem(s)

YAJLINTO is just a *PGM object that RPG is trying to call. Notice that in your %PARSER it says YAJL/YAJLINTO (uppercase with a library) -- but, in the error it says yajlinto (lowercase without a library) which makes me think you forgot to recompile the program after changing it, or perhaps you're hi...
by Scott Klement
Thu Jul 29, 2021 7:29 pm
Forum: General
Topic: Registration error using Chrome
Replies: 8
Views: 20375

Re: Registration error using Chrome

I was able to register using chrome, with no problems I don't think the problem is related to which browser you use, but rather, relates to which plugins you're running. Since you probably have a "main browser" where you do all your work, it stands to reason that this is where you have yo...