Extend javax.rpc.xml.handler.GenericHandler class,
override handleRequest() method and register the handler within the Service object
Override onMessage() method of the JaxRpcPortProxyFactoryBean object
Implement javax.rpc.xml.handler.ChainItem interface and register it within the chain
returned by service.getHandlerRegistry().getHandlerChain() method
The only way to catch all SOAP messages is redirect SOAP traffic to some local port,
listen and handle the traffic and then redirect it to the remote machine
Override onMessage() method of the Service object
Implement javax.rpc.xml.Handler interface and register the handler within the Service object
|