Ports when making request to external API from IBMi

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Joerg Hamacher
Posts: 120
Joined: Thu Feb 11, 2016 12:01 am

Ports when making request to external API from IBMi

Post by Joerg Hamacher »

Hi,

which IBMi ports are used when making an HTTPS request to an external API via #HTTP_Request.DoPost Url(#w_URL.Trim)?
The same port that is defined in Web Administrator's Maintain System window or any standard ports?
Or are the ports defined in a conf.file?

Best rergards,
Joerg
KEC
Posts: 12
Joined: Fri Jun 04, 2021 4:58 pm

Re: Ports when making request to external API from IBMi

Post by KEC »

The source port used is supplied by the operating system. The remote port will be what the URL is using - normally 80(http) or 443(https).
craig-bdk
Posts: 2
Joined: Fri Oct 11, 2024 12:00 am

Re: Ports when making request to external API from IBMi

Post by craig-bdk »

I'm also interested because Port 80 on our IBMi is used by a different web instance.

How do I configure the Port# on the IBMi to listen to a different port (e.g. Port 81) when Publishing an API?

Does anyone have an example config for publishing APIs directly from the IBMi (no Windows server frontend)?

Configuring Port#, Character Set, etc.

Thx
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: Ports when making request to external API from IBMi

Post by adale »

Craig,
I believe Jeorg's request is when the IBM i is the "client" making an outbound request for data.
But it your question, I think you are implying the IBM i will be the "server" side of the request. Up till now, we were always told you had to have a Windows server frontend (which we did not want to do), so we did all of our server API work in CL/RPG and ran directly from the IBM i apache web services.
I have submitted a support case and have made inquiries to my Lansa sales rep to get more information and details, as it looks like EPC 150070 will solve this issue, and no longer require the Windows frontend server.
I will post a follow up once I can get an answer from Lansa support or my sales rep.
Arlyn Dale
Servias LLC
craig-bdk
Posts: 2
Joined: Fri Oct 11, 2024 12:00 am

Re: Ports when making request to external API from IBMi

Post by craig-bdk »

HI,

I did get this working today.

After applying EPC 150070 and restarting the TCP server, everything is working DIRECTLY to/from the IBMi (Model A config).

Also when checking in the Server Module(s), if required, the ../run/conf/webmodules.conf file on the IFS is also updated correctly!

Craig.
adale
Posts: 210
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: Ports when making request to external API from IBMi

Post by adale »

Craig,
That is great news. Are there instructions on how to set up this new feature? I will look at getting 150070 downloaded and installed, but did not see any docs on how to setup or config this?
Arlyn Dale
Servias LLC
dgillette
Posts: 2
Joined: Thu Feb 17, 2022 6:32 pm

Re: Ports when making request to external API from IBMi

Post by dgillette »

Hi Joerg,

Did you solve your issue by applying the epc 150070 only or did you have to follow other procedures?

Cheers
Post Reply