LibraryToggle FramesPrintFeedback

To configure a provider endpoint do the following:

  1. Add a provider element to your xbean.xml file.

  2. Add a wsdl attribute to the provider element.

    See Specifying the WSDL.

  3. If your WSDL defines more than one service, you will need to specify a value for the service attribute.

    See Specifying the endpoint details.

  4. If the service you choose defines more than one endpoint, you will need to specify a value for the endpoint attribute.

    See Specifying the endpoint details.

  5. If your endpoint is going to be receiving binary attachments set its mtomEnabled attribute to true.

    See Using MTOM to Process Binary Content.

  6. If your endpoint does not need to process the JBI wrapper set its useJbiWrapper attribute to false.

    See Working with the JBI Wrapper.

  7. If you are using any of the advanced features, such as WS-Addressing or WS-Policy, specify a value for the busCfg attribute.

    See Part III.

If the endpoint's WSDL document defines a single service with a single endpoint, the ESB can easily determine which endpoint to use. It will use the values from the WSDL document to specify the service name, endpoint name and interface name for the instantiated endpoint.

However, if the endpoint's WSDL document defines multiple services or if it defines multiple endpoints for a service, you will need to provide the provider endpoint with additional information so that it can determine the proper definition to use. What information you need to provide depends on the complexity of the WSDL document. You may need to supply values for both the service name and the endpoint name, or you may only have to supply one of these values.

If the WSDL document contains more than one 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 you would use the configuration shown in Example 10.3.



If the WSDL document's service definition contains more than one endpoint, then you will need to provide a value for the provider's 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 you would use the configuration shown in Example 10.5.



Comments powered by Disqus
loading table of contents...