HTTPAPI setoption

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
papavask
Posts: 6
Joined: Wed Mar 15, 2023 4:20 pm

HTTPAPI setoption

Post by papavask »

Hi, I am using HTTPAPI to consum a web service, I also need to set a header option (SoapAction).
Try to use the setoption() but it looks our system does not include that function (maybe an early product installation 19/07/12).
My question: is there another way to set this option but not to install a newer version of the API?

PS: the message is :
RNF7030 30 1 The name or indicator is not defined.
RNF7503 30 1 Expression contains an operand that is not defined.
and on error line
*RNF7030 30 2448 011900 The name or indicator HTTP_SE... is not defined.
*RNF7503 30 2448 011900 Expression contains an operand that is not defined.
where line is:
http_setOption('SoapAction' : spact); (***spact is a local variable)

Thank you for your time
Kostas
jonboy49
Posts: 200
Joined: Wed Jul 28, 2021 8:18 pm

Re: HTTPAPI setoption

Post by jonboy49 »

You need to update for many, many reasons. Scott has maintained upward compatibility so why wouldn't you? Not as if it will cost anything except a minimal amount of time.

I have no doubt that there is a way to do it - have you studied all the early examples? When I needed stuff like this I just upgraded - didn't waste time reinventing the wheel.
papavask
Posts: 6
Joined: Wed Mar 15, 2023 4:20 pm

Re: HTTPAPI setoption

Post by papavask »

Thank jonboy49 for your recommendation, Due to company's policy we install the newest version to a library with a different name in order to keep both versions.
Post Reply