NonStop SOAP 4.1 User's Manual

Example 17 shows that the occurrence of the fiction-details element in the SOAP message
depends on the value of the fiction_count element.
Example 17 A Sample DDL file with the @SOAP_OCCURS_DEP_ON Tag
?comments
DEF books-in-lib.
02 fiction_count PIC 9(4) COMP.
02 libraries_fic PIC 9(4) COMP.
02 magazines_count PIC 9(4) COMP.
02 libraries_mag PIC 9(4) COMP.
* @SOAP_OCCURS_DEP_ON fiction_count
02 fiction-details OCCURS 1000 TIMES.
03 call-num PIC 9(10).
END
Among other valid field types for the integer variable, the following are frequently used:
TYPE BINARY 16,2
TYPE BINARY 32
TYPE BINARY 32, UNSIGNED
PIC 9
PIC S9
PIC 9(10)
PIC 9(4) COMP
PIC S9(5)
PIC S9(5) COMP
Some of the invalid field types are:
PIC X
PIC X(10)
PIC 9999V99
TYPE FLOAT
TYPE FLOAT 64
TYPE LOGICAL 4
Example 18 shows the DDL file that shows the use of the SOAP_OCCURS_DEP_ON comment.
DDL Comments 227