Search found 732 matches

by Scott Klement
Thu Jul 18, 2024 11:03 pm
Forum: General
Topic: creating a file using DDS
Replies: 5
Views: 106

Re: creating a file using DDS

I've never done anything like that in DDS, so I don't know the answer to #2.

Is there a reason you're using DDS for this instead of SQL?

Or for that matter, just do it in a program?
by Scott Klement
Thu Jul 18, 2024 4:20 pm
Forum: General
Topic: creating a file using DDS
Replies: 5
Views: 106

Re: creating a file using DDS

You can use + to continue data on the next line

Code: Select all

      A            FIELD6    R               REFFLD(RECORDB/FLD6 +
      A                                      LIB1/FILE4)          
by Scott Klement
Thu Jul 18, 2024 4:08 pm
Forum: HTTPAPI
Topic: API call with Headers
Replies: 13
Views: 595

Re: API call with Headers

Move the cursor to the error message and press F1 to get more details about what the error is.

Most likely it's mapping data to the DS until it gets the error, then stops -- so you have only a partial one filled in.
by Scott Klement
Thu Jul 18, 2024 2:56 pm
Forum: YAJL-ILE
Topic: How do I tell HTTP Server where "parameters" begin in URI?
Replies: 10
Views: 660

Re: How do I tell HTTP Server where "parameters" begin in URI?

In order to help you with that, I'd need to be trained in how your network is set up, which type/model of equipment you have and how to use it, and so forth. So this isn't really something I can help with. I can tell you what the most common setup is... Your ISP has a line run to your building. Ther...
by Scott Klement
Wed Jul 17, 2024 10:46 pm
Forum: HTTPAPI
Topic: Client sites rejects request for new bearer token after existing bearer token has Expired.
Replies: 7
Views: 101

Re: Client sites rejects request for new bearer token after existing bearer token has Expired.

Is "access token" the same as refresh token?

Again, I'm not familiar with the API. Please give me info on what you want to do, and I can tell you how to do it with HTTPAPI. There are 1000 ways to design this... I need to know how they designed it to work for this API.
by Scott Klement
Wed Jul 17, 2024 9:53 pm
Forum: HTTPAPI
Topic: Building Listener API to get the incoming data to IFS
Replies: 1
Views: 73

Re: Building Listener API to get the incoming data to IFS

Your question is not related to HTTPAPI. You are writing an RPG program, presumably to use in conjunction with the IBM HTTP Server (Powered By Apache) based on your description. You are not using HTTPAPI. Please post your message in the RPG programming forum, and describe your setup better. The info...
by Scott Klement
Wed Jul 17, 2024 9:48 pm
Forum: HTTPAPI
Topic: Client sites rejects request for new bearer token after existing bearer token has Expired.
Replies: 7
Views: 101

Re: Client sites rejects request for new bearer token after existing bearer token has Expired.

My understanding is that i need to get a new bearer token after the 30 minutes expiration period as a json request "You either use basic authentication for a token, or you send the login details in the request body, or you use a refresh token.." The sentence you quoted here was me asking ...
by Scott Klement
Wed Jul 17, 2024 8:56 pm
Forum: HTTPAPI
Topic: Client sites rejects request for new bearer token after existing bearer token has Expired.
Replies: 7
Views: 101

Re: Client sites rejects request for new bearer token after existing bearer token has Expired.

Okay, so that is where the extra space is coming from. Please remove the extra space after "Authorization". headers = 'Authorization: Bearer ' + %Trim(TokenDs.token) + crlf + 'Correlation-Id: ' + %trim(CORID) + crlf; Technically that space is not valid. However, i don't think it's directly...
by Scott Klement
Wed Jul 17, 2024 7:04 pm
Forum: HTTPAPI
Topic: Client sites rejects request for new bearer token after existing bearer token has Expired.
Replies: 7
Views: 101

Re: Client sites rejects request for new bearer token after existing bearer token has Expired.

Okay, let's take a minute and review what is happening here since you sent a LOT of code, and it can be hard to find the needle in the haystack. You are making the following HTTP request (from the log file). POST /oauth2/v1/token HTTP/1.1 Host: api-uat.onesourcetax.com User-Agent: http-api/1.45 Cont...
by Scott Klement
Wed Jul 17, 2024 6:32 pm
Forum: HTTPAPI
Topic: API call with Headers
Replies: 13
Views: 595

Re: API call with Headers

YAJLOPTS='{"value_null":"0"}'; DATA-INTO Dsjson %DATA( response : 'case=convert + allowextra=yes + allowmissing=yes') %PARSER('YAJLINTO': YAJLOPTS); But this way the issue remains for char fields. How do I pass the option for both numeric and char fields? The way DATA-INTO was d...