NonStop SOAP User's Manual
NonStop SOAP Features and Functions
NonStop SOAP User’s Manual—520501-012
4-54
Sample XML, Schema, and WSDL Files
The first group shows an invalid @SOAP_OCCURS_DEP_ON clause because 
fiction_count is not an integer value. 
The ** @SOAP_OCCURS_DEP_ON libraries_fic shows an invalid 
OCCURS_DEP_ON clause because libraries_fic is not defined.
The 02 author PIC X(64) shows an invalid OCCURS_DEP_ON clause because author 
is not an OCCURS field.
The 03 other-books PIC X(64) OCCURS 0 to 100 shows an invalid use of the 
OCCURS_DEP_ON clause because other books is a valid OCCURS_DEP_ON field.
Sample XML, Schema, and WSDL Files
The sample XML, schema, and WSDL data generated for fields corresponding to the 
valid @SOAP_OCCURS_DEP_ON comment tags is the same as that generated for a 
valid OCCURS_DEP_ON field.
Example 4-39. Invalid use of @SOAP_OCCURS_DEP_ON
DEF books-in-lib.
 02 fiction_count PIC X(4).
 02 num_count PIC 9(8).
* @SOAP_OCCURS_DEP_ON fiction_count
 02 fiction-details OCCURS 1000 TIMES.
 03 call-num PIC 9(10).
** @SOAP_OCCURS_DEP_ON libraries_fic
 03 library PIC X(40) OCCURS 50 TIMES.
* @SOAP_OCCURS_DEP_ON num_count
 02 author PIC X(64).
** @SOAP_OCCURS_DEP_ON num_count
 03 other-books PIC X(64) OCCURS 0 to 100
DEPENDING ON num_count.
END.










