Retrieve calling url in Java Webservice?

Have you taken a look at: @Resource WebServiceContext wsContext; This will return the context of the current message sent to your webservice. I've been able to get the IP address of the user from that. This is assuming that you are using Java.

You might look into something like OWSM (Oracle Web Services Manager)... there may be open source alternatives. OWSM creates a virtual endpoint that it handles and routes to the actual service hosts. This way, your service hosts can be hidden behind the firewall, with only the OWSM host visible to the world.

When a user hits the virtual endpoint, OWSM can authenticate and pass them along to the balanced service host.

An alternative might be to use servlet filters on the real endpoints. The filter could do a couple of different things. It could simply log the requested URL from the HttpServletRequest, or it could even redirect to the correct URL for you (I'm not sure what the implications of that are for a web service, though).

All you would have to do is have the filter mapped to the same context path as the web service (axis uses /services/* for example).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions