Please see the following wiki pages: http://cxf.apache.org/docs/how-do-i-develop-a-client.html http://cxf.apache.org/docs/developing-a-consumer.html http://cxf.apache.org/docs/jax-ws-configuration.html
Also you could take a look at one of the CXF samples, for example: https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/wsdl_first https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/java_first_jaxws Colm. On Tue, Jul 17, 2018 at 1:39 PM, nitin gupta <[email protected]> wrote: > Hi, > > I am using CXF to consume a WS, and I am creating client in JAVA by using > following line of code. > > ConfiguratorService service = new ConfiguratorService(); > ConfiguratorServiceProxy newProxyService; > LoggingFeature loggingFeature = new LoggingFeature(); > loggingFeature.setPrettyLogging(true); > newProxyService = > service.getBasicHttpBindingConfiguratorServiceProxy(loggingFeature); > Client client = ClientProxy.getClient(newProxyService); > HTTPConduit http = (HTTPConduit) client.getConduit(); > HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); > httpClientPolicy.setConnectionTimeout(connectionTimeout * 1000l); > httpClientPolicy.setAllowChunking(false); > httpClientPolicy.setReceiveTimeout(connectionTimeout * 1000l); > http.setClient(httpClientPolicy); > //here I am calling the webservice > summary = newProxyService .configure(Parameters); > > When I deployed the above code websphere 9, I am getting error > org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler incompatible with > org.apache.cxf.frontend.ClientProxy. > > I did some R&D on google and the recommended approach is to use > JaxWsProxyFactoryBean. > > Please guide me what code changes are required in above code snippet to use > JaxWsProxyFactoryBean. > > Regards, > Nitin Gupta > > > > > > -- > Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
