Step 1: Import extension packages

Extension packages include classes and functions necessary for your Web services server application. Use the IMPORT statement to include these packages.

Include the following lines at the top of your module as instructions to import the required libraries:
IMPORT com    # imports the Genero Web Services Extension package
IMPORT util   # imports the util package which provides a set of classes to convert to and from JSON

Methods to create a REST Web Service server application are contained in the classes that make up the com library of the Genero Web Services (GWS). See The com package.

The calculator demo application also uses methods from the util.JSON class for data exchange. See The util package.