Re: obtaining consumer IP
Great! Thanks for your advice as well. What I am doing now is purely academic, so it doesn't have to pass the real-world test :-) Rob On 4/26/05, Tim K. (Gmane) [EMAIL PROTECTED] wrote: From the MessageContext you can get the HttpServletRequest and from that the IP: HttpServletRequest req = (HttpServletRequest) msgContext.getProperty(org.apache.axis.transport.http.HTTPConstants.MC_HTTP_SERVLETREQUEST); String ip = req.getRemoteAddr(); However, keep in mind that the IP address may be misleading if the client is going through a proxy or you have a load balancer in front of your server or a caching server, etc. I know in a real production system you will most likely get a local IP address. Also, if you want to do security based on the IP address, keep in mind that IP addresses can be easily spoofed. For this reason I find relying on the IP address to be a bad plan. Tim Robert Gombotz wrote: Hi! I would need to obtain the IP address of clients/consumers that make calls to my Web services, preferably using a SOAP handler. So far, I have not found a way of achieving this. The MessageContext seems to be the only data I have in a handler, and from what I understand it does not contain the client's IP. Any hints and ideas are greatly appreciated. Rob
obtaining consumer IP
Hi! I would need to obtain the IP address of clients/consumers that make calls to my Web services, preferably using a SOAP handler. So far, I have not found a way of achieving this. The MessageContext seems to be the only data I have in a handler, and from what I understand it does not contain the client's IP. Any hints and ideas are greatly appreciated. Rob
SOAP message content in the service implementation
Hi. This is more of a general question I am afraid. I would need to have access to some parts of my SOAP message in the service implementation. More precise, I am sending some info to a WS A in SOAP headers. This service A in turn makes a call to another WS B( in doing so WS A is acting as a client/consumer). Now I would like to include the information, which WS A received in the form of SOAP headers, to the message that WS A sends to WS B. I am aware of handlers being able to process messages, but is it possible to get a hold of the message inside the WS implementation? I am pretty sure that it is not possible with Axis. After all, the implementation of the WS would only be working when used as a WS. So if I am right and it is not possible, does anybody know of other SOAP enabled application servers that allow you to do something like that? Or any hints as to how I could alter the Axis code so that it migh be possible (I know, that would be a mission and and half, anyway.) Thanks in advance Rob