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.Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 29. Provider Endpoints
Abstract
Overview Copier lienLien copié sur presse-papiers!
Figure 29.1. Provider Endpoint
Procedure Copier lienLien copié sur presse-papiers!
- Add a
providerelement to yourxbean.xmlfile. - Add a
wsdlattribute to theproviderelement. - If your WSDL defines more than one service, you will need to specify a value for the
serviceattribute. - If the service you choose defines more than one endpoint, you will need to specify a value for the
endpointattribute. - If your endpoint is going to be receiving binary attachments set its
mtomEnabledattribute totrue. - If your endpoint does not need to process the JBI wrapper set its
useJbiWrapperattribute tofalse. - If you are using any of the advanced features, such as WS-Addressing or WS-Policy, specify a value for the
busCfgattribute.See ???.
Specifying the WSDL Copier lienLien copié sur presse-papiers!
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 29.1. Minimal Provider Endpoint Configuration
Specifying the endpoint details Copier lienLien copié sur presse-papiers!
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 29.2, “WSDL with Two Services” you would use the configuration shown in Example 29.3, “Provider Endpoint with a Defined Service Name”.
Example 29.2. WSDL with Two Services
Example 29.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 29.4, “Service with Two Endpoints” you would use the configuration shown in Example 29.5, “Provider Endpoint with a Defined Endpoint Name”.
Example 29.4. Service with Two Endpoints
Example 29.5. Provider Endpoint with a Defined Endpoint Name