HI, Thanks for your reply. I have already checked that my web service is deployed correctly and I can consume it with Java client.
As per your suggestion I made changes camel-context.xml in as follow <cxf:cxfEndpoint id="HelloService" address="http://localhost:8080/HelloWeb/Hello" wsdlURL="http://localhost:8080/HelloWeb/Hello?wsdl" endpointName="HelloFirstImplService" serviceName="HelloFirstImplService" /> But when I run it I get following error as "Service class" must be specified Exception in thread "main" org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[http://localhost:8080/HelloWeb/Hello]. Reason: java.lang.IllegalArgumentException: serviceClass must be specified at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:395) Caused by: java.lang.IllegalArgumentException: serviceClass must be specified at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:294) For you reference here is my wsdl file.(http://localhost:8080/HelloWeb/Hello?wsdl) ----------------------------------------------------- <?xml version="1.0" ?><wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://server.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="HelloFirstImplService" targetNamespace="http://server.com/"> <wsdl:types> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://server.com/" elementFormDefault="unqualified" targetNamespace="http://server.com/" version="1.0"> <xs:element name="myHello" type="tns:myHello"></xs:element> <xs:element name="myHelloResponse" type="tns:myHelloResponse"></xs:element> <xs:complexType name="myHello"> <xs:sequence> <xs:element minOccurs="0" name="arg0" type="xs:string"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="myHelloResponse"> <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:string"></xs:element> </xs:sequence> </xs:complexType> </xs:schema> </wsdl:types> <wsdl:message name="myHelloResponse"> <wsdl:part element="tns:myHelloResponse" name="parameters"> </wsdl:part> </wsdl:message> <wsdl:message name="myHello"> <wsdl:part element="tns:myHello" name="parameters"> </wsdl:part> </wsdl:message> <wsdl:portType name="HelloFirst"> <wsdl:operation name="myHello"> <wsdl:input message="tns:myHello" name="myHello"> </wsdl:input> <wsdl:output message="tns:myHelloResponse" name="myHelloResponse"> </wsdl:output> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloFirstImplServiceSoapBinding" type="tns:HelloFirst"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"></soap:binding> <wsdl:operation name="myHello"> <soap:operation soapAction="" style="document"></soap:operation> <wsdl:input name="myHello"> <soap:body use="literal"></soap:body> </wsdl:input> <wsdl:output name="myHelloResponse"> <soap:body use="literal"></soap:body> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HelloFirstImplService"> <wsdl:port binding="tns:HelloFirstImplServiceSoapBinding" name="HelloFirstImplPort"> <soap:address location="http://localhost:8080/HelloWeb/Hello"></soap:address> </wsdl:port> </wsdl:service> </wsdl:definitions> What should I put in so that it will work 1) address 2) endpointName 3) serviceName 4) servicClass Thanks , Abhi -- View this message in context: http://camel.465427.n5.nabble.com/How-to-call-CXF-web-service-from-Camel-tp5729692p5729744.html Sent from the Camel - Users mailing list archive at Nabble.com.