Configuring the plan management adapter

The custom plan management adapter typically communicates with a plan management vendor over a web service using stubs that have been generated from the plan management vendor's wsdl file. To get to that point, the following steps are required.

Procedure

  1. Create a directory named axis in a custom component
  2. Add a ws_outbound.xml file to this directory. This file should reference the wsdl file provided by a plan management vendor. For example,
    <?xml version="1.0" encoding="UTF-8"?>
    <services>
    <service
    location="components/CustomComponent/axis/PlanMgmtWebService/PlanManagementVendor.wsdl"
        name="PlanManagementVendor"
      />
    </services>
  3. From a command prompt under EJBServer, run ‘build wsconnector2’ – this will generate the stubs to the build directory. These stubs will then be available to call in the custom PlanManagementAdapter implementation.
  4. Create an implementation of the plan management adapter interface and bind it using a Guice module. For example:
    @Override
    protected void configure() {
      bind(PlanManagementAdapter.class).to(CustomPlanManagementAdapter.class);
    }
    For more information about bindings in Guice, see the Persistence Cookbook.
  5. Code the custom implementation of the plan management adapter using the stubs that are were previously generated.

    For more information about web services in Cúram, see the Cúram Web Services Guide.