NonStop SOAP User's Manual

NonStop SOAP Features and Functions
NonStop SOAP User’s Manual520501-012
4-20
Exposing a Subset of DDL as a Web Service
For a DDL comment to be visible to SOAP Admin before adding the modified DDL
definition, you must specify the directive "?COMMENTS" to the DDL utility. An example
is:
TACL> DDL
?DICT
?COMMENTS
Definition EMPLOYEE-DEF.
02 EMPLOYEE-NUMBER Pic "9999".
02 EMPNAME.
03 FIRST Pic "X(20)".
03 LAST Pic "X(30)".
* @SOAP_OPTIONAL
03 MIDDLE Pic "X".
* @SOAP_SUPPRESS_INOUT
02 REGNUM Pic "99".
* @SOAP_SUPPRESS_INOUT
02 BRANCHNUM Pic "99".
End
Definition EMPLOYEE-ADD.
* @SOAP_SUPPRESS_INOUT
02 REQUEST-CODE Pic "99" VALUE IS 2.
02 EMPLOYEE-INFO Type EMPLOYEE-DEF.
End
Definition EMPLOYEE-REPLY.
02 REPLY-CODE Pic "99".
02 EMPLOYEE-INFO Type EMPLOYEE-DEF.
End
In the design stage, when a DDL definition with such comments is specified then the
SOAP Admin tool processes the comments in the DDL and generates WSDL, and
other files accordingly.