Hi,

In this case if you know what's the on-wire soap message looks like, you can use jaxws dispatch which can send a soap message directly to the server. You may need take a look at jaxws_dispatch_provider example shipped with kit.

Freeman
On 2011-11-23, at 下午12:12, [email protected] wrote:

From my webservice , i am calling another WebService .

So inside my webservice code , i am writing the code this way

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(MyWebService.class);
String host = "refers to another webservce/address "
factory.setAddress(host);
    MyWebService client = (MYWebService) factory.create();
    Client clientProxy = ClientProxy.getClient(client);
    HTTPConduit conduit = (HTTPConduit) clientProxy.getConduit();
    HTTPClientPolicy policy = new HTTPClientPolicy();
    policy.setConnectionTimeout(0L);
    policy.setReceiveTimeout(0L);
    conduit.setClient(policy);
The problem is that , we dont have MyWebService class with us . my question
can we write a client , without dependencies ??


--
View this message in context: 
http://cxf.547215.n5.nabble.com/Writing-Webservice-client-without-any-dependencies-tp5015504p5015504.html
Sent from the cxf-user mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to