I've found that to be the case with many, many APIs. They have updated the API and (sometimes) updated the samples - but the docs are often not updated. You have to check the release history ion there is one. I have actually had to interpret the Java (our whatever) examples sometimes to see the difference.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 4, 2019, at 3:23 PM, Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

It doesn't help our case when the API documentation is not accurate...

I just wasted half my day getting an error response from a REST API... documentation said the query string (in the body) had to be URL encoded. So that's what I was doing. On a whim, I removed the encoding and sent the request "as-is". It worked.

What a joke.

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Kerwin Crawford via RPG400-L
Sent: Tuesday, June 04, 2019 2:57 PM
To: 'rpg400-l@xxxxxxxxxxxxxxxxxx' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: Kerwin Crawford <kcrawford@xxxxxxxxxxx>
Subject: Re: HTTPAPI question

Greg and John, I am currently fighting the same battle with a SOAP Web Service. I am so close but...

Both of you have hit the nail on the head.

translating their online documentation into what I actually need to do
(with the tools that I have).

It has been hard and they assume we are using a tool they have and send instructions for it.
I am getting where I have a good understand HTTPAPI but giving them what they want in the exact format, a lot of trial and error.

I think that is the case for a lot of us. It is one of the reasons I
think it is worth exploring the open source PASE options. Node.js in
particular but also Python are closer to "speaking the same language"
as what you're likely to encounter in the documentation

John (or anyone), can you recommend a starting point to self-train myself using one of these open source options. And what one to use. I know my company will not pay for any product at this time so the free open source is the way to go.


P#
Kerwin Crawford --
IBMi Programming Team Leader

--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].