...
You can use the servicemix-cxf-se-service-unit archetype to create a CXF SE Service Unit (including a simple sample POJO):
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-cxf-se-service-unit \
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
Once you've customized the service unit, simply install the SU:
Code Block |
---|
mvn 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.
|
Endpoint Configuration
The CXF SE endpoint provides a property named pojo. You can expose any POJO which contains the @WebService annotation.
...
Code Block | ||
---|---|---|
| ||
<cxfse:endpoint> <cxfse:pojo> <bean class="org.apache.servicemix.cxfse.GreeterImplForClientProxy"> <property name="calculator"> <cxfse:proxy service="calculator:CalculatorService" context="#context" type="org.apache.cxf.calculator.CalculatorPortType" /> </property> </bean> </cxfse:pojo> </cxfse:endpoint> |
Info | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
...
MTOM is supported for the following classes:
- DataSource
- DataHandler
byte\[\]Wiki Markup
If you have a bean with the following method:
...
Code Block | ||
---|---|---|
| ||
<cxfse:endpoint> <cxfse:pojo>inFaultInterceptors> <bean class="org.apache.cxf.calculatorinterceptor.CalculatorImplLoggingInInterceptor"/> </bean> </cxfse:pojo>inFaultInterceptors> <cxfse:inInterceptors> <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> </cxfse:inInterceptors> <cxfse:outInterceptors>outFaultInterceptors> <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> </cxfse:outInterceptors>outFaultInterceptors> <cxfse:inFaultInterceptors>outInterceptors> <bean class="org.apache.cxf.interceptor.LoggingInInterceptorLoggingOutInterceptor"/> </cxfse:inFaultInterceptors>outInterceptors> <cxfse:outFaultInterceptors>pojo> <bean class="org.apache.cxf.interceptorcalculator.LoggingOutInterceptor"/>CalculatorImpl"> </bean> </cxfse:outFaultInterceptors>pojo> </cxfse:endpoint> |
Can find document for CXF interceptors here