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
Ports when making request to external API from IBMi
-
- Posts: 109
- Joined: Thu Feb 11, 2016 12:01 am
Re: Ports when making request to external API from IBMi
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).
Re: Ports when making request to external API from IBMi
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
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
Re: Ports when making request to external API from IBMi
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.
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
Servias LLC
Re: Ports when making request to external API from IBMi
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.
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.
Re: Ports when making request to external API from IBMi
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?
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
Servias LLC