Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Chapter 10. Provider Endpoints
Abstract
Overview Copy linkLink copied to clipboard!
Figure 10.1. Provider Endpoint
Procedure Copy linkLink copied to clipboard!
- Add a
provider
element to yourxbean.xml
file. - Add a
wsdl
attribute to theprovider
element. - If your WSDL defines more than one service, you will need to specify a value for the
service
attribute. - If the service you choose defines more than one endpoint, you will need to specify a value for the
endpoint
attribute. - If your endpoint is going to be receiving binary attachments set its
mtomEnabled
attribute totrue
. - If your endpoint does not need to process the JBI wrapper set its
useJbiWrapper
attribute tofalse
. - If you are using any of the advanced features, such as WS-Addressing or WS-Policy, specify a value for the
busCfg
attribute.
Specifying the WSDL Copy linkLink copied to clipboard!
wsdl
attribute is the only required attribute to configure a provider endpoint. It specifies the location of the WSDL document that defines the endpoint being exposed. The path used is relative to the top-level of the exploded service unit.
Example 10.1. Minimal Provider Endpoint Configuration
Specifying the endpoint details Copy linkLink copied to clipboard!
service
element you will need to specify a value for the provider's service
attribute. The value of the provider's service
attribute is the QName of the WSDL service
element that defines the desired service in the WSDL document. For example, if you wanted your endpoint to use the WidgetInventoryService in the WSDL shown in Example 10.2, “WSDL with Two Services” you would use the configuration shown in Example 10.3, “Provider Endpoint with a Defined Service Name”.
Example 10.2. WSDL with Two Services
Example 10.3. Provider Endpoint with a Defined Service Name
endpoint
attribute. The value of the endpoint
attribute corresponds to the value of the WSDL port
element's name
attribute. For example, if you wanted your endpoint to use the WidgetWesternSalesPort in the WSDL shown in Example 10.4, “Service with Two Endpoints” you would use the configuration shown in Example 10.5, “Provider Endpoint with a Defined Endpoint Name”.
Example 10.4. Service with Two Endpoints
Example 10.5. Provider Endpoint with a Defined Endpoint Name