Hi Glen, that worked pretty well if the message is a response, as you said.
Thank you very much, José On Mon, Feb 16, 2009 at 6:36 PM, Glen Daniels <[email protected]> wrote: > Hi José: > > José Ricardo da Silva wrote: >> Hi, is there a way to get the client's IP address in a handler located >> in the OutFlow? >> >> messageContext.getProperty("REMOTE_ADDR") works fine in the InFlow, >> but not in the OutFlow. > > If you're talking about the OutFlow on the server side, i.e. sending a > response to an existing request, you can get the IP from the *request* > MessageContext by going up through the OperationContext: > > inMC = messageContext.getOperationContext(). > getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE); > System.out.println(inMC.getProperty("REMOTE_ADDR")); > > Hope that helps, > --Glen >
