cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dilipmd <dilipmysoredeva...@yahoo.com>
Subject Re: ClientProxy issue in Websphere 7
Date Mon, 09 Apr 2012 07:10:44 GMT
This issue got resolved after using JaxWsProxyFactoryBean component.

Earlier, I was using generated class (from WSDL2Java tool) for generating
proxy and it was failing in  Websphere AS. 

Now with this, for creating JAX-WS proxies, slight modification as given
below was done:
 
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setAddress("http://myhost:myport/MyService/MyService?wsdl");
factory.setServiceClass(MyWebService.class);
EngineWebService port = (MyWebService) factory.create();

//and then call ClientProxy as usual but with the object created using
JaxWsProxyFactoryBean
Client client = ClientProxy.getClient(port); 
...

CXF is cool!

--
View this message in context: http://cxf.547215.n5.nabble.com/ClientProxy-issue-in-Websphere-7-tp5614510p5626900.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message