...
- JBI compliant Binding Component
- Usable in a lightweight mode in servicemix.xml configuration files
- SOAP 1.1 and 1.2 support
- MIME attachments
- Support for all MEPs as consumers or providers
- SSL support
- WS-Security support
- WS-Policy support
- WS-RM support
- WS-Addressing support
Maven Archetype
Consumer Service Unit Archetype
This archetype creates a CXF BC Consumer Service Unit, including consumer and provider sample:
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-cxf-bc-consumer-service-unit
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
Provider Service Unit Archetype
This archetypes creates a CXF BC Provider Service UnitOnce you've customized the service unit, simply install the SU:
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-cxf-bc-provider-service-unit \
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
...
install
|
Info | ||
---|---|---|
Remember that to be deployable in ServiceMix, the ServiceUnit has to be embedded in a Service Assembly: only the Service Assembly zip file can be deployed in ServiceMix.
|
Endpoints Configuration
Consumer Endpoint
A consumer endpoint is a server-side CXF endpoint that will consume plain HTTP+SOAP requests and send them into the NMR to a given JBI endpoint, which is called the proxied endpoint.
...
Code Block |
---|
[target namespace][delimiter][interface name][delimiter][operation name] |
where:
...
- \[delimiter\] is ":" when the \ [target namespace\] is a URN, otherwise "/".unmigrated-wiki-markup
- \[target namespace\] is the namespace of the interface.
Wiki Markup - \[interface name\] is the name of the interface.unmigrated-wiki-markup\
- [operation name\] is the name of the operation.
For example, the following header
...
will be used to address the JBI exchange with the following properties:
- interface name: {http://example.com/stockquote\
}StockQuoteInterface
- operation name: {http://example.com/stockquote\
}GetLastTradePrice
...
Code Block |
---|
[target namespace][delimiter][service name][delimiter][endpoint name] |
where:
...
- \[delimiter\] is ":" when the \ [target namespace\] is a URN, otherwise "/".unmigrated-wiki-markup
- \[target namespace\] is the namespace of the interface.unmigrated-wiki-markup
- \[service name\] is the name of the service.unmigrated-wiki-markup\
- [endpoint name\] is the name of the endpoint.
For example, the following header
...