NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
3 replies Latest Post - 2012-07-23T09:35:10Z by Danilo_Cussini
Pinned topic Retrieve client IP address in RPG web service.
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I'm writing my first RPG web service using PGMINFO parameter. Everything goes. There's a way to retrieve the client IP address?
Updated on 2012-07-23T09:35:10Z at 2012-07-23T09:35:10Z by Danilo_Cussini
scott_klement 2700007QFX242 Posts
Re: Retrieve client IP address in RPG web service.2011-11-09T10:33:31Z in response to scott_klement> scott_klement wrote:
> There are perhaps 25 different ways of creating a web service. Can you tell us how you are creating yours?
Re: Retrieve client IP address in RPG web service.2012-07-23T09:35:10Z in response to Danilo_CussiniThe answer is here http://www-03.ibm.com/systems/i/software/iws/quickstart_server.html
Step 10. Specify transport information to be passed
Specify what transport information related to the client request is to be passed to the Web service implementation code (see Figure 14). The information is passed as environment variables.
The transport metadata REMOTE_ADDR is passed to Web service implementation code in an environment variable named REMOTE_ADDR.