NonStop SOAP 4.1 User's Manual
For example, use the following command to generate synchronous client stubs using the
WSDL2PWY tool:
OSS> WSDL2PWY –o "/home/nssoap/test/client" –s
–uri "/home/nssoap/test/services/test_service/SoapPW_test.wsdl"
where,
/home/nssoap/test/client
is the output location where the client stubs and the Makefile (Makefile_client) are
generated. The client stubs are placed in the src directory in the output location. If the
-o option is not specified, then the files are generated in the src directory under the
current directory.
-uri /home/nssoap/test/services/test_service/SoapPW_test.wsdl
is a WSDL Web address provided to the WSDL2PWY tool.
5. On successful execution, the following files will be generated:
• Client source stub file which needs to implement the main function called when an
executable file is run.
• The header file for the client source stub file that holds the declarations of the functions
that are implemented in the client stub source file.
Generating Service Stubs
The WSDL2PWY tool generates the service stubs based on the WSDL definition. The generated
service stubs are:
• Request and response structure definitions in C programming language.
• Code for TS/MP communication.
• Placeholders for the business logic function for every operation.
To generate the NonStop SOAP 4 service stubs using the WSDL2PWY tool, complete the following
steps:
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
where,
/usr/tandem/nssoap/t0865h01
is the NonStop SOAP 4 installation directory.
2. Add the directory containing the WSDL2PWY executable image to the OSS PATH variable.
OSS> export PATH=<NonStop SOAP 4 Installation Directory>/tools:$PATH
For example:
OSS> export PATH=/usr/tandem/nssoap/t0865h01/tools:$PATH
3. Add the <Java Installation Directory>/bin directory to the PATH environment
variable, using the command:
OSS> export PATH=<Java Installation Directory>/bin:$PATH
For example:
OSS> export PATH=/usr/tandem/java/bin:$PATH
where,
/usr/tandem/java/
is the Java installation directory.
The WSDL2PWY Tool 205










