Skip to Content
avatar image
Former Member

Is it Possible to call a WebDynpro Application from WebServices?

Hi Gurus,

I have the following problem:

I have an application in which the user sent information from a webdynpro application to BD, we use a web service to pass the information from the dynpro app to BD. The user send the information using an iView in the dynpro app, and dynpro app gets de IP address of the user implementing the statement "WDProtocolAdapter.getProtocolAdapter().getRequestObject().getClientHostAddress()" this is with the purpose of knowing in which IP is executing the app.

The problem is that sometimes the user doesn't use the dynpro app and sent the information using the web service directly, then when de user executes the web services in DB the record doesn't have de IP address, and there aren't way to know from which IP was sent the information.

I tried to use the statement "InetAddress.getLocalHost().getHostAddress()", but; when the web service is executed it retrieves the IP address from the server where the webservice is exposed, but i don't can't get the IP address from the Client.

Then my question is: is it possible to create an small dynpro app which being executed by my webservice for obtaining the IP address of the client?

Thanks in advance.

I hope you could help me.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • May 29, 2014 at 08:37 PM

    Your design is fundamentally flawed. That said the answer to your question is no, the Web Dynpro runtime expects the client to be one of the supported browsers. In case users call the Web Service directly, you can get the client IP address from the request.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2014 at 04:39 AM

    In case you are on NW 7.3, webwdigetui provides you flexibility to incorporate custom javascript in WD apps. This can be leveraged to access client IP address. Otherwise there is no way you will be able to get client information.

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2014 at 08:55 AM

    why not just refuse the request if no ip is provided?

    Add comment
    10|10000 characters needed characters exceeded