Web Services for MCP

You can invoke a Web Service in your MCP application through the new Web Service Wizard. The wizard creates an AB Suite class that encapsulates the Web Service functionality ready for use by your Reports and Ispecs.

To create an MCP Web Service, perform the following:

  1. Right-click the segment, and select Add > Add New Item....

  2. In the Add New Item dialog box, select Web Service > Create.

    The Web Service Wizard is displayed.

  3. Enter a name for your Web Service, and click Finish.

The created class contains pre-loaded logic and attributes to exercise the Web Service with the Unisys Weather Service. You can invoke the method from an Ispec or Report by setting the WeatherStnCode to any valid ICAO code to test it. For example, “PHNL” – to view the status of the weather in Hawaii.

Note: The added infrastructure to support the Web Service wizard includes the following classes:

  • Unisys_WebAppSupportLib

    External class configured with all necessary entry points for the Web App Support Service.

  • Unisys_WebAppSupportHelper

    Class to assist with the implementation of the Web Service. Consolidating the common process for establishing and invoking a Web Service.

  • WebAppSupportLibraryBuffers

    Contains the specially configured buffers for invoking the Web App Support entry points.

  • Unisys_WebAppTypes

    All types associated to the Web App Support library.

Pre-Requisites

The XML parser feature for Web App Support must be installed and configured on the host for MCP Web Services. Refer to WebAppSupport (WEBAPPSUPPORT Application Programming (http://www.support.unisys.com/aseries/docs/ClearPath-MCP-17.0/PDF/38265286-006.pdf)) for more information.