John, When you call: Client cxfClient = ClientProxy.getClient(client); all you are really doing is pulling out the InvokationHandler and some of the settings that it uses from the Java generated proxy. Thus, by modifying the Client object, you are modifying the "real" object that the proxy is using to make the invokation. So basically, just add your interceptors there and then you can discard it. All calls on your proxy (FooService client) go throught the "Client" object and thus any interceptors you add.
Dan On Tuesday 04 March 2008, 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 -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog