Configuring the precedence rules WebServiceClient component

The WebServiceClient component must be configured with the WSDL of the MDEX Engine's Configuration Web service.

In addition, you must add a config-service:putPrecedenceRules operation to the request structure of the component.

To configure the WebServiceClient component in the precedence rules graph:

  1. Make sure that the MDEX Engine is running and the Configuration Web service is available by issuing this URL command from your browser (be sure to use the correct port number for your MDEX Engine):
    http://localhost:5555/ws/config?wsdl
    The URL command returns the WSDL of the Web service.
  2. In the Graph window, double-click the WebServiceClient component. The Writer Edit Component dialog is displayed.

  3. In the WSDL URL field, enter the same URL as in Step 1.
  4. In the Operation name field, click the ... browse button, which displays the Choose WS operation dialog:

  5. In the Choose WS operation dialog, select DoConfigTransaction and then click OK. The name of the Web service operation is entered in the Operation name field.
  6. Click inside the Request structure field, which causes the ... browse button to be displayed. Then click the browse button to display the Edit request structure dialog:

  7. Add this text to the Generate request field:
    <config-service:putPrecedenceRules  
       xmlns:config-service="http://www.endeca.com/MDEX/config/services/types"
       xmlns:mdex="http://www.endeca.com/MDEX/XQuery/2009/09">
    $xmlString
    </config-service:putPrecedenceRules>
    At this point, the Edit request structure dialog should look like this example:

  8. After adding the request text in the Edit request structure dialog, click OK.
  9. Optionally, you can use the Component name field to provide a customized name (such as "Load Precedence Rules") for this component.
  10. When you have entered all your changes in the Edit Component dialog, click OK.
  11. Save the graph.

After creating the graph and configuring the components, you can run the graph to send the configuration data to the MDEX Engine. You can run the graph by clicking the green circle with white triangle icon in the Tool bar: