Topic
IC4NOTICE: 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.
3 replies Latest Post - ‏2012-07-23T09:35:10Z by Danilo_Cussini
Danilo_Cussini
Danilo_Cussini
16 Posts
ACCEPTED ANSWER

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
    242 Posts
    ACCEPTED ANSWER

    Re: Retrieve client IP address in RPG web service.

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

      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?

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

    Re: Retrieve client IP address in RPG web service.

    ‏2012-07-23T09:35:10Z  in response to Danilo_Cussini
    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.