Questo contenuto non è disponibile nella lingua selezionata.
Chapter 29. Provider Endpoints
Abstract
Overview Copia collegamentoCollegamento copiato negli appunti!
Figure 29.1. Provider Endpoint
Procedure Copia collegamentoCollegamento copiato negli appunti!
- 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 Copia collegamentoCollegamento copiato negli appunti!
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 Copia collegamentoCollegamento copiato negli appunti!
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