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
As an Amazon Associate we earn from qualifying purchases.