Hi Willem,

If i use the client program example from camel cxf examples and set the
content type in HTTPClientPolicy,
but could you please tell me how to set the same in Exchange type when
calling the webservice by creating a CXFendpoint


*CLient Program:-*

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
.
.
.
 Client client = ClientProxy.getClient(port);
       HTTPConduit http = (HTTPConduit) client.getConduit();
        HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
       * httpClientPolicy.setContentType("application/soap+xml");*
        http.setClient(httpClientPolicy);
....
...
..
client.retrieve(arg1,arg2,arg3);



*Cxf Endpoint:-*

from("direct:test").process(new Processor(){
public void processor(Exchange exchange)
{
Object[] objectarray=new Object[3];
.
.
.
exchange.getOut().setBody(objarry);
}
}).to("cxf://http://10.103.91.55:5555/FinEdge-General/xrmServices/2011/Organization.svc?serviceClass=com.hcl.flsl.integration.msdn.crmwcf.IOrganizationService&defaultOperationName=Retrieve";)




--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-multiple-parameters-to-CXF-endpoint-tp5744345p5744416.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to