7.3.2. How to use camel context instead of HTTP for Web Service interactions ?
Prev | 7.3. Using Apache Camel with Orchestra | Next

### 7.3.2. How to use camel context instead of HTTP for Web Service interactions ?

In the WSDL file of the service you want to invoke or expose in the camel context,

- change to transport defined in the SOAP binding element to http://cxf.apache.org/transports/camel

- change the location of the service defined in the SOAP address element to camel://camel_endpoint (where camel_endpoint is the endpoint you want to expose/invoke in the camel context)

Example of WSDL Service configured to use Camel:

    <wsdl:binding name="helloworldPTSOAPBinding" type="tns:helloworldPT">
      <soap:binding style="document" transport="http://cxf.apache.org/transports/camel"/>
      <wsdl:operation name="submit">
        <soap:operation soapAction="http://orchestra.ow2.org/helloworld/submit"/>
        <wsdl:input>
          <soap:body use="literal" />
        </wsdl:input>
        <wsdl:output>
          <soap:body use="literal"/>
        </wsdl:output>
      </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="helloworldService">
      <wsdl:port name="helloworldPort" binding="tns:helloworldPTSOAPBinding">
        <soap:address location="camel://direct:hello"/>
      </wsdl:port>
    </wsdl:service>

Prev | Up | Next
7.3. Using Apache Camel with Orchestra | Home | 7.4. Process versioning with Orchestra