NonStop SOAP User's Manual
NonStop SOAP Features and Functions
NonStop SOAP User’s Manual—520501-012
4-31
Setting the SoapDDLAttribute in the SDL
For example, this message is an attribute centric XML fragment for the same DDL.
The DDL fields can be represented in XML in an attribute centric or an element centric 
manner, using:
•
Setting the SoapDDLAttribute in the SDL
•
Flagging a DDL field with SOAP DDL comment tags
Setting the SoapDDLAttribute in the SDL
The SDL provides an attribute at the Service element level, called SoapDDLAttribute. 
This XML attribute can have a value of “yes” or “no”. A value of “yes” specifies to 
NonStop SOAP that all the leaf fields of the request and response DDL definitions of 
that service are to be represented as XML attributes. A value of “no” specifies that no 
fields are to be represented as XML attributes. This provides an easy way for tagging 
all the DDL fields of a definition without actually having to make any changes to the 
DDL dictionary. The default value is “no.”
For example, the SDL's sample DTD and XML representations containing the 
SOAPDDLAttribute is:
Note. DDL leaf fields which are REDEFINED are always treated as elements. The attribute 
related features described in this section will be ignored for such DDL leaf fields.
Example 4-19. Attribute Centric XML Message
<AccountDetails AccountNumber="120012">
 <MemberName First="John" Middle="K" Last="Doe"/>
</AccountDetails>
Example 4-20. Sample DTD
<!ELEMENT Service (SvcDescription, RequestInfo, ResponseInfo+)>
<!ATTLIST Service ServiceName ID #REQUIRED
…
 SoapDDLAttribute (yes | no) "no">










