Example: Interface to another system

This is an example for interfacing the Service Manager ServiceCatalog with Micro Focus’s PPM Demand service via Web Services.

When writing an interface to a different system, it is very important to understand the data structure and the methods available, as well as understand how to interpret the generated JavaScript code. In this example, we will not only discuss the methods and fields published by the WSDL, but reading the generated code to successfully write the invoking code as well.

  1. Determine the correct URL to enter into the WSDL to JS tool, check with the PPM administrator.
  2. In Service Manager, go to Menu Navigator and click Utilities > Tools > Web Services. Click Run WSDL to JS.
  3. Enter the URL to the WSDL, such as http://<hostname>:8080/itg/ppmservices/DemandService?wsdl.
  4. Click Proceed.
  5. Click Add to add the new ScriptLibrary record called DemandService.
  6. Write an interfacing JavaScript record in the ScriptLibrary called DemandServiceInvoke.