...
Name | Description | Example | Required? | Default Value |
---|---|---|---|---|
| The location of the WSDL. | file://local/wsdl/hello.wsdl or | No | WSDL is obtained from endpoint address by default. |
| The name of the SEI (Service Endpoint Interface) class. This class can have, but does not require, JSR181 annotations. | | Yes |
|
| In 1.6 or later (will be deprecated in 2.0), | | No (use either |
|
| The service name this service is implementing, it maps to the | {{{http://org.apache.camel}ServiceName }} | Only if more than one |
|
| The port name this service is implementing, it maps to the | {{ {http://org.apache.camel}PortName }} | Only if more than one |
|
| Which data type messages the CXF endpoint supports | | No | |
| Available since 1.6.1. Please see the Description of | | No | |
| Which kind of operation that CXF endpoint producer will invoke | | No | |
| Will set the default bus when CXF endpoint create a bus by itself | | No | |
| New in 2.0, use | | No | Default bus created by CXF Bus Factory |
| New in 2.0, use | | No | An instance of |
| New in 2.0, use | | No | An instance of |
...
The serviceName
and portName
are QNames, so if you provide them be sure to prefix them with their {namespace
} as shown in the examples above.
...
Name | Description | Type | Required? | Default Value | In/Out | Examples |
---|---|---|---|---|---|---|
| Character encoding | | No | None | In | ISO-8859-1 |
| Content type | | No | */* | In | |
| The value of this header will be set in the CXF message as the | | Yes | The Endpoint URI of the source endpoint in the Camel exchange | In | |
| Request URI's path | | Yes | None | In | |
| RESTful request verb | | Yes | None | In | |
| HTTP response code | | No | None | Out | 200 |
Note: Currently, CXF Bean component has (only) been tested with Jetty HTTP component it can understand headers from Jetty HTTP component without requiring conversion.
...
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} |
...