Hi,

You can use code to do it, something like
        Client client = ClientProxy.getClient(ws);
        client.getInInterceptors().add(your_in_interceptor);
        client.getOutInterceptors().add(your_out_interceptor);

Freeman
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-22, at 下午6:32, Marco Pas wrote:

> Hi there i am trying to add some logging to the inbound / outbound
> traffic of a wsdl2java generated client.
> I have the client generated and using it as follows:
> 
> pseudo code:
> 
> MyService ws = new MyService().getMyServiceSoap12();
> ((BindingProvider)ws).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
> webServiceAddress); // for dynamic endpoints...
> 
> Is there any way i can add some interceptors? I am using it in a
> Spring application by the way!
> 
> Thanks in advance.
> 
> Greetings Marco

Reply via email to