Topic
  • 3 replies
  • Latest Post - ‏2012-07-23T09:35:10Z by Danilo_Cussini
Danilo_Cussini
Danilo_Cussini
21 Posts

Pinned topic Retrieve client IP address in RPG web service.

‏2011-11-04T14:40:39Z |
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
    scott_klement
    263 Posts

    Re: Retrieve client IP address in RPG web service.

    ‏2011-11-08T18:05:20Z  
    There are perhaps 25 different ways of creating a web service. Can you tell us how you are creating yours?
  • Danilo_Cussini
    Danilo_Cussini
    21 Posts

    Re: Retrieve client IP address in RPG web service.

    ‏2011-11-09T10:33:31Z  
    There are perhaps 25 different ways of creating a web service. Can you tell us how you are creating yours?
    > scott_klement wrote:
    > There are perhaps 25 different ways of creating a web service. Can you tell us how you are creating yours?

    http://www-03.ibm.com/systems/i/software/iws/quickstart_server.html
  • Danilo_Cussini
    Danilo_Cussini
    21 Posts

    Re: Retrieve client IP address in RPG web service.

    ‏2012-07-23T09:35:10Z  
    The 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.