You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Johannes Brauner <jo...@uni-muenster.de> on 2007/05/31 09:28:20 UTC

Resolve remote host full path

Hi all,

I have a servlet using axis to send a soap message to a soap service.
The soap service should do something and also include the requesting
servlet's url.
And I do not want to send the servlet url in the soap message.

I can only get the servlet's host machine's ip address by

ServletRequest request = (ServletRequest)
MessageContext.getCurrentContext().getProperty(
"transport.http.servletRequest" );
String remoteHost = request.getRemoteHost();

How can I achieve to get the servlet's full path, like
123.456.789.012:8080/servlet/whatever and not only 123.456.789.012 ?

Thanks

Johannes Brauner

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org