Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Description

Example

Required?

Default Value

wsdlURL

The location of the WSDL.

file://local/wsdl/hello.wsdl or wsdl/hello.wsdl

No

WSDL is obtained from endpoint address by default.

serviceClass

The name of the SEI (Service Endpoint Interface) class. This class can have, but does not require, JSR181 annotations. 
Since 2.0, this option is only required by POJO mode.   If the wsdlURL option is provided, serviceClass is not required for PAYLOAD and MESSAGE mode.  When wsdlURL option is used without serviceClass, the serviceName and portName (endpointName for Spring configuration) MUST be provided.

Since 2.0, it is possible to use # notation to reference a serviceClass object instance from the registry.  E.g. serviceClass=#beanName.

Please be advised that the referenced object cannot be a Proxy (Spring AOP Proxy is OK) as it relies on Object.getClass().getName() method for non Spring AOP Proxy.

org.apache.camel.Hello

Yes

 

serviceClassInstance

In 1.6 or later (will be deprecated in 2.0), serviceClassInstance works like serviceClass=#beanName, which looks up a serviceObject instance from the registry.

serviceClassInstance=beanName

No (use either serviceClass or serviceClassInstance)

 

serviceName

The service name this service is implementing, it maps to the wsdl:service@name.

{http:­//org.apache.camel}ServiceName

Only if more than one serviceName in WSDL present

 

portName

The port name this service is implementing, it maps to the wsdl:port@name.

{http:­//org.apache.camel}PortName

Only if more than one portName under the serviceName is present

 

dataFormat

Which data type messages the CXF endpoint supports

POJO, PAYLOAD, MESSAGE

No

POJO

relayHeaders

Available since 1.6.1. Please see the Description of relayHeaders option section for this option in 2.0. Should a CXF endpoint relay headers along the route. Currently only available when dataFormat=POJO

true, false

No

true

wrapped

Which kind of operation that CXF endpoint producer will invoke

true, false

No

false

setDefaultBus

Will set the default bus when CXF endpoint create a bus by itself

true, false

No

false

bus

New in 2.0, use # notation to reference a bus object from the registry. The referenced object must be an instance of org.apache.cxf.Bus.

bus=#busName

No

Default bus created by CXF Bus Factory

cxfBinding

New in 2.0, use # notation to reference a CXF binding object from the registry. The referenced object must be an instance of org.apache.camel.component.cxf.CxfBinding.

cxfBinding=#bindingName

No

An instance of org.apache.camel.component.cxf.DefaultCxfBinding

headerFilterStrategy

New in 2.0, use # notation to reference a header filter strategy object from the registry. The referenced object must be an instance of org.apache.camel.spi.HeaderFilterStrategy.

headerFilterStrategy=#strategyName

No

An instance of org.apache.camel.component.cxf.CxfHeaderFilterStrategy

...

Code Block
java
java
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
        xsi:schemaLocation="
                http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 
                http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/camel-cxf-1.6.0.xsd
                http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd     ">
     <cxf:cxfEndpoint id="routerEndpoint" address="http://localhost:9003/CamelContext/RouterPort"
     		serviceClass="org.apache.hello_world_soap_http.GreeterImpl"/>
     <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9000/SoapContext/SoapPort"
     		wsdlURL="testutils/hello_world.wsdl"
     		serviceClass="org.apache.hello_world_soap_http.Greeter"
     		endpointName="s:SoapPort"
     		serviceName="s:SOAPService"
     	xmlns:s="http://apache.org/hello_world_soap_http" />
     <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
       <route>
         <from uri="cxf:bean:routerEndpoint" />
         <to uri="cxf:bean:serviceEndpoint" />
       </route>
    </camelContext>
  </beans>

...