<cxf:jaxws-client serviceClass="com.mulesoft.example.HelloWorld"
operation="sayHello" port="HelloWorldPort">
<cxf:inInterceptors>
<spring:bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<spring:bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
</cxf:outInterceptors>
</cxf:jaxws-client>
CXF Module Configuration Reference
When sending requests to an external web service, the recommended approach is to use the Web Service Consumer rather than the CXF Module. |
This page provides reference information about the elements and attributes you can configure for the CXF Module Reference .
Configuration
Attributes of configuration
Name | Description |
---|---|
|
The location of a CXF configuration file, if any needs to be supplied. |
|
Whether or not CXF should write Mule SOAP headers which pass along the correlation and ReplyTo information. This is true by default, but the Mule SOAP headers are only triggered in situations where there is an existing correlation ID and the ReplyTo header is set. (As of 2.2.1) |
|
Deprecated. Setting this to false could raise security concerns from the CXF HTTP transport. |
|
Type: |
|
- |
No child elements of configuration.
Jaxws service
Attributes of jaxws-service
Name | Description |
---|---|
|
The binding that should be used for this endpoint. It defaults to the SOAP binding by default. |
|
The WSDL port name of your service. |
|
The service namespace. (As of 2.2.1) |
|
The WSDL service name of your service. |
|
The class CXF should use to construct its service model. This is optional, and by default it uses the implementation class of your component, on inbound CXF endpoint. But it is mandatory for outbound endpoint when using "aegis" frontend. |
|
Whether or not validation should be enabled on this service. Validation only occurs on inbound server messages. |
|
The soapVersion that is going to be used for this endpoint. The specified version is translated into the corresponding bindingId value. This attribute is useful when there’s need to avoid the creation of the endpoint with the default binding. In case the bindingId attribute is set this attribute overrides it. If not set and not specified otherwise CXF defaults to SOAP 1.1 binding. |
|
Whether or not MTOM (attachment support) is enabled for this endpoint. |
|
The location of the WSDL for your service. If this is a server side endpoint, it is served to your users. |
|
Whether or not this endpoint should write Mule SOAP headers which pass along the correlation and ReplyTo information. This is true by default, but the Mule SOAP headers are only triggered in situations where there is an existing correlation ID and the ReplyTo header is set. (As of 2.2.1) |
|
The CXF configuration that should be used. |
Child Elements of jaxws-service
Name | Cardinality | Description |
---|---|---|
|
0..1 |
- |
|
0..1 |
Configuration to enable WS-Security |
|
0..1 |
Additional properties for this service. |
|
0..1 |
The databinding implementation that should be sed. By default, this is JAXB for the JAX-WS frontend and Aegis for the simple frontend. A placeholder for arbitrary extensions as children of the Mule element. Other transports and modules can extend this if they need to add global elements to the configuration (but consider the more specific elements like abstract-connector first). |
|
0..1 |
Any CXF features you want to apply to the client/server.ee the CXF documentation for more information on features. |
|
0..1 |
Additional incoming interceptors for this service. |
|
0..1 |
Additional incoming fault interceptors. |
|
0..1 |
Additional outgoing interceptors. |
|
0..1 |
Additional outgoing fault interceptors. |
Jaxws client
Attributes of jaxws-client
Name | Description |
---|---|
|
The soapVersion used for this endpoint. The specified version is translated into the corresponding bindingId value. This attribute is useful when there’s need to avoid the creation of the endpoint with the default binding. In case the bindingId attribute is set, this attribute overrides it. If not set and not specified, otherwise CXF defaults to the SOAP 1.1 binding. |
|
Whether or not MTOM (attachment support) is enabled for this endpoint. |
|
The location of the WSDL for your service. If this is a server side endpoint, it is served to your users. |
|
Whether or not this endpoint should write Mule SOAP headers which pass along the correlation and ReplyTo information. This is true by default, but the Mule SOAP headers are only triggered in situations where there is an existing correlation ID and the ReplyTo header is set. (As of 2.2.1.) |
|
The CXF configuration that should be used. |
|
The class CXF should use to construct its service model for the client. |
|
The reply to endpoint for clients which have WS-Addressing enabled. |
|
The operation you want to invoke on the outbound endpoint. |
|
The name of the client class that CXF generated using CXF’s wsdl2java tool. You must use wsdl2java if you do not have both the client and the server in the same JVM. Otherwise, this can be optional if the endpoint address is the same in both cases. |
|
The WSDL port you want to use to communicate with the service. |
Child Elements of jaxws-client
Name | Cardinality | Description |
---|---|---|
|
0..1 |
- |
|
0..1 |
Additional properties for this service. |
|
0..1 |
The databinding implementation that should be used. By default, this is JAXB for the JAX-WS frontend and Aegis for the simple frontend. A placeholder for arbitrary extensions as children of the Mule element. Other transports and modules can extend this if they need to add global elements to the configuration (but consider the more specific elements like abstract-connector first). |
|
0..1 |
Any CXF features you want to apply to the client/server. See the CXF documentation for more information on features. |
|
0..1 |
Additional incoming interceptors for this service. |
|
0..1 |
Additional incoming fault interceptors. |
|
0..1 |
Additional outgoing interceptors. |
|
0..1 |
Additional outgoing fault interceptors. |
Common CXF Elements
Following are the sub-elements you can set on CXF service and client. For further information on CXF interceptors, see the CXF documentation.
Name | Description |
---|---|
|
The databinding implementation that should be used. By default, this is JAXB for the JAX-WS frontend and Aegis for the simple frontend. This should be specified in the form of a Spring bean. |
|
Any CXF features you want to apply to the client and server. See the CXF documentation for more information on features. |
|
Additional incoming interceptors for this service. |
|
Additional incoming fault interceptors. |
|
Additional outgoing interceptors. |
|
Additional outgoing fault interceptors. |