NonStop SOAP 4.1 User's Manual
Example 5 A Sample DDL file with the @SOAP_OPTIONAL Tag
?comments
DEF PATIENT.
02 PATIENT-DATA.
03 ID PIC 9(5).
03 AGE PIC 9(3).
* @SOAP_OPTIONAL
03 HOSPITAL.
04 HOSP-NAME PIC X(30).
04 ADDRESS.
05 STREET PIC X(50).
05 CITY PIC X(25).
05 STATE PIC X(2).
05 ZIP PIC 9(5).
04 COUNTY.
05 CODE PIC 9(6).
05 Details.
06 COUNTY-NAME PIC X(15).
06 STATUS PIC X.
05 DESCRIPTION PIC X(100).
END
Example 6 shows the corresponding WSDL file generated using the SoapAdminCL tool. In the
WSDL file and the XML schema file, the highlighted attribute entry minOccurs ="0" specifies
that the corresponding fields are optional.
DDL Comments 219










