NonStop SOAP 4.1 User's Manual

Table 4 The DDL Comments values (continued)
DescriptionDDL Comment
This generates the <xsd:base64binary> element in the WSDL file.
For example:
@SOAP_BASE64
DDL file:
* @SOAP_BASE64 15 CH2 type character 13
WSDL file translation:
<!-- The following xsd:base64Binary type,
represents a xsd:type="xsd:string"
type -->
<xsd:element name="ch2base64Binary"
type="xsd:base64Binary"
minOccurs="1"
maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="13" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
This marks the field as an element in the WSDL file. All the DDL fields appear as
elements in the WSDL file.
If the SoapDDLAttribute value is set to yes, this comment forces the particular field
to appear as an element.
@SOAP_ELEMENT
For example:
DDL file:
* @SOAP_ELEMENT 10 mystr TYPE character 10
WSDL file translation:
<xsd:sequence>
<xsd:element name="mystr" minOccurs="1" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
This exposes the DDL field as an attribute in the WSDL file.
For example:
@SOAP_ATTRIBUTE
DDL file:
* @SOAP_ATTRIBUTE 10 mystr TYPE character 10
WSDL file translation:
<xsd:attribute name="mystr" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
SoapDDLAttribute
The SoapDDLAttribute specifies whether all the leaf fields of the request and response DDL
definitions of the particular service must be represented as XML attributes in the generated
WSDL file. The specified value is yes or no; the default value is no. This attribute is optional.
166 NonStop SOAP 4 Service Description Language