...
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, 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
|
...
NOTE In Camel 2.x we change to use {{http://camel.apache.org/schema/cxf}} as the CXF endpoint's target namespace.
...
Name | Description | Type | Required? | Default Value | In/Out | Examples |
---|
CamelHttpCharacterEncoding (before 2.0-m2: CamelCxfBeanCharacterEncoding ) | Character encoding | String | No | None | In | ISO-8859-1 |
CamelContentType (before 2.0-m2: CamelCxfBeanContentType ) | Content type | String | No | */* | In | text/xml |
CamelCxfBeanRequestBasePath | The value of this header will be set in the CXF message as the Message.BASE_PATH property. It is needed by CXF JAX-RS processing. Basically, it is the scheme, host and port portion of the request URI. | String | Yes | The Endpoint URI of the source endpoint in the Camel exchange | In | http://localhost:9000 |
CamelHttpPath (before 2.0-m2: CamelCxfBeanRequestPat h) | Request URI's path | String | Yes | None | In | consumer/123 |
CamelHttpMethod (before 2.0-m2: CamelCxfBeanVerb ) | RESTful request verb | String | Yes | None | In | GET , PUT , POST , DELETE |
...
First, create a route as follows. The from
endpoint is a Jetty HTTP endpoint that is listening on port 9000. Notice that the matchOnUriPrefix
option must be set to true
because RESTful request URI will not match the endpoint's URI {{http://localhost:9000}} exactly.
Wiki Markup |
---|
{snippet:id=routeDefinition|lang=java|url=camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/cxfbean/CxfBeanTest.java} |
...