NonStop SOAP 4.1 User's Manual
?comments
DEF FLD1.
02 FLD11.
03 FLD12.
*@SOAP_ATTRIBUTE
04 FLD13 PIC X(20).
END
• The Operation tag in the SDL file must have the ProcessSoapDDLComments attribute set
to yes.
For example:
<Operation
Name="<operation Name>"
TMFTransactionSupport="[yes | no]"
AbortTransactionOnFault="[yes | no]"
NameSpaceQualified="[yes | no]"
SoapMessageType="[document | rpc]"
ProcessSoapDDLComments="yes"
...>
You can proceed to the following tasks:
• “Specifying DDL Fields as Optional” (page 218)
• “Exposing DDL Fields as XML Attributes” (page 221)
• “Specifying Base64 Encoding” (page 225)
• “Using the SOAP_OCCURS_DEP_ON DDL Comment Tag” (page 226)
Specifying DDL Fields as Optional
NonStop SOAP 4 allows you to flag a DDL field as optional, using the @SOAP_OPTIONAL DDL
comment tag. If this tag is set for a group field in the DDL file, the entire hierarchy of the group
field is treated as optional.
In Example 5, the HOSPITAL group field is tagged as optional (the associated children fields are
also treated as optional).
218 NonStop SOAP 4 Features










