Hi,

You just use the FooService (client) as usual. The cxfClient will build up the interceptors each time before it send out the message when you invoke the client proxy method.
I will update the wiki as you suggested.

BTW, You could also add the interceptor through the ClientProxyFactoryBean by calling
clientProxyFactoryBean.getInInterceptor().add(myInterceptor);

Willem.

John-M Baker wrote:
Hi,

Thanks for your response. Having read the Wiki, I still appear to be missing something:

FooService client = ... ; // created from ClientProxyFactoryBean or generated JAX-WS client
MyInterceptor myInterceptor = new MyInterceptor();

Client cxfClient = ClientProxy.getClient(client);
cxfClient.getInInterceptor().add(myInterceptor);

What do I do with cxfClient? How do I make a call on FooService (client) and invoke the interceptor? I'm assuming the call is made through Client. Does it really involve the invoke methods on Client? I think that by adding an example call to the end fo that code sample, the Wiki would make a little more sense.


John Baker

Reply via email to