I am finally able to do it with below configuration

<cxf:cxfEndpoint id="printPersonNameServiceEndpoint"
address="http://localhost:9080/SampleWebService/PrintPersonNameService";
                wsdlURL="com/test/service/echo/PrintPersonNameService.wsdl"
                endpointName="s:PrintPersonNamePort"
                serviceName="s:PrintPersonNameService"
        xmlns:s="http://echo.service.test.com/";>

                    <cxf:properties>
                        <entry key="dataFormat" value="PAYLOAD"/>
                        <entry key="setDefaultBus" value="true"/>
                </cxf:properties>
</cxf:cxfEndpoint>

where .. xmlns:cxf="http://camel.apache.org/schema/cxf";

And then creating routes as below

<camel:route>
       <camel:from uri="direct:startPrintPerson"></camel:from>
       <to uri="cxf:bean:printPersonNameServiceEndpoint" />
</camel:route>

Thanks for the help

--
View this message in context: 
http://camel.465427.n5.nabble.com/getting-error-while-calling-external-web-service-from-camel-route-tp5603573p5709023.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to