NonStop SOAP 4.1 User's Manual
4. Generate the Pathway service skeleton files using the WSDL2PWY command:
OSS> WSDL2PWY [options] –ss –uri [wsdl_path]
where,
[options] includes the following:
-o <output location>
specifies the output location where the Pathway service skeleton files must be generated.
-ss
generates the Pathway service skeleton files.
-uri <wsdl_path>
specifies the location of the WSDL file.
For example, use the following command to generate the Pathway service skeleton files using
the WSDL2PWY tool:
OSS> WSDL2PWY –o "/home/nssoap/test/client" -ss
–uri "/home/nssoap/test/services/test_service/SoapPW_test.wsdl"
where,
/home/nssoap/test/client
is the output location where the Pathway service skeleton files are generated.
-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 WSDL2PWY tool generates the following files for the service stubs::
• DataConverter.c and DataConverter.h – include the utility functions to convert
the XML value to C structure and vice-versa.
• Msg<messagename>SetterGetter.c and Msg<messagename>SetterGetter.h
– include the functions to set and get the value from C structure. The .h and .c files are
generated for each message defined in the WSDL.
• Svc<servicename>SetterGetter.c and Svc<servicename>SetterGetter.h
– implement the interface functions, which identify the request and response structures for
the operation.
• pway<servicename>.c – includes the code to communicate with the NonStop SOAP
4 server.
• pway<servicename>.h – includes the C structure definitions for the messages.
• pway<servicename>Impl.c – includes the skeletons to implement the business logic.
For each WSDL operation, you must add the business logic code in this file.
NOTE: If the -o option is not specified, the files are generated in the src directory under
the current directory.
XML Schema and C Data Types Mapping
The following table lists the WSDL2PWY tool mapping of XML schema and C data types.
Table 14 XML schema to C data type mapping
C data type mappingSample schemaXml schema type
char *Not ApplicableanyType
char *Not ApplicableanySimpleType
206 NonStop SOAP Tools










