Unable to compile the program which uses Httpapi

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
Post Reply
Ezhil
Posts: 2
Joined: Wed May 08, 2024 4:05 pm

Unable to compile the program which uses Httpapi

Post by Ezhil »

Hi,

I'm unable to compile the rpgbnd program in which im trying to use httpapi. I have downloaded the libhttp library and added it to my list before compiling. I'm getting the error 'RNF5409' - The prototyped call returns a value which is lost when CALLP is used.

When i look into the log im getting the below messages. It looks like authority issue.

Message . . . . : *SRVPGM object HTTPAPIR4 in library *LIBL not found.
Cause . . . . . : *SRVPGM object HTTPAPIR4 in library *LIBL was specified in
binding directory HTTPAPI in library LIBHTTPU, but was not found for
binding. Recovery . . . : Contact your application provider or service
representative.

Same error messages for 'HTTP_ERROR', 'HTTP_REQ' etc..,

Message . . . . : Not authorized to service program QCSTCTL in library QSYS.
Cause . . . . . : The user is not authorized to service program QCSTCTL in
library QSYS. Recovery . . . : Have the security officer or the owner of
service program QCSTCTL give the user authority to the object.

Could anyone please help!

Thanks in advance!
stefan@tageson.se
Posts: 15
Joined: Wed Jul 28, 2021 7:55 am
Location: Viken, Sweden
Contact:

Re: Unable to compile the program which uses Httpapi

Post by stefan@tageson.se »

And you rub the install?
stefan@tageson.se
Posts: 15
Joined: Wed Jul 28, 2021 7:55 am
Location: Viken, Sweden
Contact:

Re: Unable to compile the program which uses Httpapi

Post by stefan@tageson.se »

run
jonboy49
Posts: 210
Joined: Wed Jul 28, 2021 8:18 pm

Re: Unable to compile the program which uses Httpapi

Post by jonboy49 »

Ezhil wrote: Wed May 08, 2024 4:11 pm <snip>
I'm getting the error 'RNF5409' - The prototyped call returns a value which is lost when CALLP is used.
That is not an error It is a warning and should be ignored.
Ezhil wrote: Wed May 08, 2024 4:11 pm When i look into the log im getting the below messages. It looks like authority issue.

Message . . . . : *SRVPGM object HTTPAPIR4 in library *LIBL not found.
Cause . . . . . : *SRVPGM object HTTPAPIR4 in library *LIBL was specified in
binding directory HTTPAPI in library LIBHTTPU, but was not found for
binding. Recovery . . . : Contact your application provider or service
representative.

Same error messages for 'HTTP_ERROR', 'HTTP_REQ' etc..,

Message . . . . : Not authorized to service program QCSTCTL in library QSYS.
Cause . . . . . : The user is not authorized to service program QCSTCTL in
library QSYS. Recovery . . . : Have the security officer or the owner of
service program QCSTCTL give the user authority to the object.
The authority warnings are normal and appear in any situation where the binder cannot find the required procedures. The real error appears to be that it cannot locate the HTTPAPI Binding directory and consequently doesn't know which Service Program to use.

I notice that it says "LIBHTTPU" - normally the HTTPAPI library name is LIBHTTP - did you install to a different library? Or did you mis-type the name of the binding directory?

You haven't shown you Ctl-Opt (H-spec) so I can't tell.
Scott Klement
Site Admin
Posts: 674
Joined: Sun Jul 04, 2021 5:12 am

Re: Unable to compile the program which uses Httpapi

Post by Scott Klement »

It's looking for HTTPAPIR4 and not finding it in your library list.

Type the following:

Code: Select all

WRKOBJ *ALL/HTTPAPIR4
This will tell you which library it is found in. Add this to your library list. If this doesn't show an object named HTTPAPIR4, it means that you didn't follow the instructions properly when installing HTTPAPI.

As far as I can tell, this isn't an authority issue. You are sending us messages such as "The prototyped call returns a value..." and "not authorized to QCSTCTL" that aren't relevant to the problem, and imply that you are brand new to the RPG and IBM i environment (because otherwise you'd be very familiar with these and see them every day...) So, I want to say... WELCOME!
Ezhil
Posts: 2
Joined: Wed May 08, 2024 4:05 pm

Re: Unable to compile the program which uses Httpapi

Post by Ezhil »

Thanks for the response.
Yes i have downloaded it in different library 'LIBHTTPU'. My H spec & cpybook is :
H BNDDIR('LIBHTTPU/HTTPAPI') DftActGrp(*No)
*
D/Copy qrpglesrc,httpapi_h

Yes RNF5409 is a warning and the severity is 0 only. But still my pgm ends in Comp-Fail since it couldn't able to locate my httpapi binding directory.

I tried to install it once in libhttp. When i call Install I'm getting RNQ1299 error. Kindly refer the attached screenshots and help me to resolve.

Thanks!
htttpapi install error ss.pdf
Installation error
(240.36 KiB) Downloaded 39 times
Scott Klement
Site Admin
Posts: 674
Joined: Sun Jul 04, 2021 5:12 am

Re: Unable to compile the program which uses Httpapi

Post by Scott Klement »

You don't have authority to overwrite the CONFIG_H member in libhttp.

But if LIBHTTPU works for you, theres no reason not to use that. Have you looked to see where the HTTPAPIR4 service program is located like I asked you to?
Post Reply