private IBookstore createClient() { final JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); // On the client-side, we only intercept outgoing requests and incoming // responses. factory.getOutInterceptors() .add(new OperationExecutionSOAPRequestOutInterceptor(this.clientMonitoringController)); factory.getInInterceptors() .add(new OperationExecutionSOAPResponseInInterceptor(this.clientMonitoringController)); factory.setServiceClass(IBookstore.class); factory.setAddress(this.serviceAddress); return (IBookstore) factory.create(); }
private IBookstore createClient() { final JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); // On the client-side, we only intercept outgoing requests and incoming responses. factory.getOutInterceptors().add(new OperationExecutionSOAPRequestOutInterceptor(this.clientMonitoringController)); factory.getInInterceptors().add(new OperationExecutionSOAPResponseInInterceptor(this.clientMonitoringController)); factory.setServiceClass(IBookstore.class); factory.setAddress(TestCXFClientServerInterceptors.SERVICE_ADDRESS); return factory.create(IBookstore.class); }