NonStop SOAP 4.1 User's Manual
C SoapAdminCL DDL datatype to XML datatype conversion
SoapAdminCL converts the DDL datatypes to the corresponding XML schema type to generate the
WSDL. This maps the data structure defined in DDL to the XML schema in the WSDL.
Table 25 SoapAdminCL conversion table for DDL datatype to XML datatype Conversion:
Schema datatypeDDL Datatype
xsd:string maxLength = 10PIC A(10)
xsd:string maxLength = 10PIC X(10)
xsd:unsignedLong totalDigits=10PIC 9(10)
xsd:string maxLength = 19PIC A(2)X(10)9(2)A(5)
xsd:decimal totalDigits = 3, fractionDigits = 3PIC SV9(3)
xsd:decimal totalDigits = 3, fractionDigits = 2PIC 9V9(2)
xsd:decimal totalDigits = 2, fractionDigits = 1PIC T9V9
xsd:short totalDigits = 2PIC 9(2)T
xsd:string maxLength = 20PIC N(10)
xsd:unsignedShortPIC 9(4) COMP
xsd:shortPIC S9(4) COMP
xsd:unsignedIntPIC 9(5) COMP
xsd:intPIC S9(5) COMP
xsd:unsignedLong. Not supported for COBOL.PIC 9(10) COMP
xsd:longPIC S9(10) COMP
xsd:string maxLength=lenTYPE CHARACTER len
xsd:byteTYPE BINARY 8
xsd:unsignedByteTYPE BINARY 8 UNSIGNED
xsd:shortTYPE BINARY 16
xsd:unsignedShortTYPE BINARY 16 UNSIGNED
xsd:short for C, and for COBOL, xsd:decimal totalDigits =
4, fractionDigits = 2
TYPE BINARY 16,2
xsd:intTYPE BINARY 32
xsd:unsignedIntTYPE BINARY 32 UNSIGNED
xsd:longTYPE BINARY 64
xsd:long for C, and for COBOL xsd:decimal totalDigits = 18,
fractionDigits = 16
TYPE BINARY 64,16
xsd:unsignedLong. Not supported for COBOL.TYPE BINARY 64 UNSIGNED
xsd:floatTYPE FLOAT 32
xsd:doubleTYPE FLOAT 64
xsd:string maxLength = 1TYPE LOGICAL 1
xsd:shortTYPE LOGICAL 2
314 SoapAdminCL DDL datatype to XML datatype conversion










