NonStop SOAP 4.1 User's Manual

The WSDL2C Tool
The WSDL2C tool is a standalone Java-based command-line tool that runs in the OSS environment
on NonStop systems. This tool uses a WSDL file as an input to generate the client stubs and service
skeleton files. The generated service skeleton files implement the basic interface code required
while developing a service using NonStop SOAP 4 service APIs.
NOTE:
The WSDL2PWY tool must be used when developing services implemented as Pathway
applications.
The WSDL2C tool must be used when developing services implemented as dynamic-link libraries
using NonStop SOAP 4 service APIs.
Figure 16 shows the files generated by the WSDL2C tool.
Figure 16 Files Generated by the WSDL2C Tool
WSDL
Clients stubs
(using client APIs)
Service skeleton
WSDL2C
This section describes the following topics:
“Generating NonStop SOAP 4 Client Stubs (page 211)
“Generating NonStop SOAP 4 Service Skeleton Files (page 213)
Generating NonStop SOAP 4 Client Stubs
The WSDL2C tool generates the NonStop SOAP 4 client stubs in the C programming language.
The generated client stubs contain the basic interface code to be implemented when developing
a client using NonStop SOAP 4 client APIs.
To generate the NonStop SOAP 4 client stubs using the WSDL2C tool, complete the following steps:
NOTE: Ensure that the WSDL file for your service is located in <NonStop SOAP 4 Deployment
Directory>. If the WSDL file is not present, use the SoapAdminCL tool to create a WSDL file
for your service. For information on generating the WSDL file, see NonStop SOAP 4 Configuration
Files (page 177).
1. Set the OSS environment variable NSSOAP_HOME to the OSS location where the NonStop
SOAP 4 installation directory is located:
OSS> export NSSOAP_HOME=<NonStop SOAP 4 Installation Directory>
For example:
OSS> export NSSOAP_HOME=/usr/tandem/nssoap/t0865h01
The WSDL2C Tool 211