NonStop SOAP 4.1 User's Manual

The math service can implement the following mathematical operations:
Addition of two integers
Subtraction of two integers
Multiplication of two integers
Division of two integers
NOTE: The source file for the math service is available in the <NonStop SOAP 4
Installation Directory>/sample_services/math directory.
To develop NonStop SOAP 4 services, use one of the following:
The service API stack
The service API stack enables you to develop NonStop SOAP 4 services manually. This
approach provides higher flexibility to customize the services based on your business
requirement.
The WSDL2C tool
The WSDL2C tool is a Java-based tool that is distributed with NonStop SOAP 4. You can use
this tool to generate the client and service skeleton files in the C programming language,
based on the WSDL file for the service. Your application business logic must be integrated
with the skeleton files.
For most applications, the WSDL2C tool is an optimal way to generate the service skeleton
files because you do not need to write the skeleton files. For more information on the WSDL2C
tool, see “NonStop SOAP Tools” (page 194).
Developing and deploying NonStop SOAP 4 services, involves the following tasks:
1. “Defining the XML Request and Response Payload” (page 96)
2. “Creating the SDL File for the Service (page 98)
3. “Generating the WSDL File and the services.xml File” (page 99)
4. “Generating the Service Skeleton Files (page 100)
5. “Implementing the Business Logic in the Service Skeleton Files (page 102)
6. “Compiling the Service Code and Deploying the Service (page 102)
7. “Testing the Service (page 103)
Defining the XML Request and Response Payload
To develop a NonStop service, you must specify the XML request and response payload in the DDL
file of the service. The XML payload helps to specify the parameters and their relationship in the
XML tree structure.
To define the XML request and response payload and to compile the DDL file, complete the following
steps:
96 NonStop SOAP 4 Service APIs