NonStop SOAP User's Manual

NonStop SOAP Features and Functions
NonStop SOAP User’s Manual520501-012
4-38
Flagging a DDL Field with SOAP DDL Comment
Tags
Considerations
Tabl e 4-2 lists the results of the XML representation of a DDL definition with respect to
the associated SDL values and DDL comment tags.
Example 4-25. XML Schema - II
<xsd:complexType name="name">
<xsd:sequence>
<xsd:attribute name="first" type="xsd:string" use="required"/>
<xsd:attribute name="middle" type="xsd:string" use="required"/>
<xsd:attribute name="last" type="xsd:string" use="required"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="patient_data">
<xsd:sequence>
<xsd:attribute name="id" type="xsd:string" use="required"/>
<xsd:element name="age" type="xsd:long" minOccurs="1" maxOccurs="1"/>
<xsd:element name="name" type="tns:name" minOccurs="1" maxOccurs="1"/>
<xsd:element name="hospital" type="tns:hospital" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
Table 4-2. SDL Values and DDL Comment Tag Considerations
SOAPDDLAttribute
Value
ProcessSoapDDL
Comments Value
DDL Comment
Tags Present? Effect
Yes No Does not matter All DDL leaf fields,
except OCCURS and
OCCURS_DEP_ON leaf
fields are XML
attributes.
Yes Yes No All DDL leaf fields are
XML attributes.
Yes Yes Yes The DDL fields
overrridden with a
comment tag are
handled appropriately.
All other fields are XML
attributes.
No Yes Yes Only the fields
containing the comment
tags are processed.