Hi ,
I just answer the get source(IP) address question, because Jervis has
showed your the code how to get the wsdl operation.
You can get the client request object from the message context. Then you
can get the client address from the request.
Here are the code snaps
HttpServletRequest request =
(HttpServletRequest)message.get(AbstractHTTPDestination.HTTP_REQUEST);
if (null != request) {
String clientAddress = request.getRemoteAddr();
}
Cheers,
Willem.
James Royalty wrote:
Hi,
I'm trying to write an "in" interceptor, using
org.apache.cxf.interceptor.LoggingInInterceptor as a starting point.
I'm trying to log
- the source (IP) address that originate the (SOAP) Message;
- the SOAP operation that was invoked.
Any hints on how I can obtain either of these?
I've tried adding the interceptor at various phases (RECEIVE,
PRE_INVOKE, INVOKE) and getting several values from the Messsage:
WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE, INVOCATION_CONTEXT,
ENDPOINT_ADDRESS. All these end up being null.
Thanks!