Instead of:

 Client client = ClientProxy.getClient(port);

cast the Dispatch to our org.apache.cxf.jaxws.DispatchImpl and call the 
getClient() method on that.   The rest should be exactly the same.

Dan


On Dec 17, 2013, at 3:50 AM, Raagu <[email protected]> wrote:

> Hi Daniel and Andrie, 
> 
> Thanks a lot for the reply. I have followed the links and information you
> had given and understood how it works. Since I am more interested in
> connecting to MicroSoft Dynamics CRM webservices from Apache CXF, I have
> followed the link
> http://groovyjava-tom.blogspot.com.ar/2012/01/cxf-and-ms-crm-2011.html. 
> Here and in the above tutorials of Apache CXF, the registration of
> AssetionInterceptor and AssertionBuilder will be done using 
> org.apache.cxf.frontend.ClientProxy and  org.apache.cxf.Bus. 
> 
> But I am not using generated code from the wsdl instead using dispatch API
> to make web service calls from my Java application. 
> 
> With the approach of dispatch API, how do I register Assertion Builder and
> Interceptor to the Apache CXF framework ? 
> 
> Thanks 
> Raagu
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/How-to-parse-wsdl-policies-in-java-tp5737761p5737898.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to