This defines a new complex SOAP datatype (usually array of structure) named 'name'.
The schema_string string represents definition as complexType element from XML Schema. The only complexContent, all and sequence elements can be used within the complexType. This means that optional elements in the defined datatype are not supported as a variant of the SOAP parameter datatype. If the schema descriptions contains an unsupported element , the SQL error will be signalled and error message will explain what element is wrong.
This function returns a varchar of the name of the registered SOAP type.
This function can generate the following errors:
<!-- file float_array.xsd --> <complexType name="ArrayOffloat" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="services.wsdl"> <complexContent> <restriction base="enc:Array"> <sequence> <element name="item" type="float" minOccurs="0" maxOccurs="unbounded" nillable="true"/> </sequence> <attributeGroup ref="enc:commonAttributes"/> <attribute ref="enc:offset"/> <attribute ref="enc:arrayType" wsdl:arrayType="float[]"/> </restriction> </complexContent> </complexType> <!-- eof float_array.xsd --> can be defined from ISQL tool or in the PL procedure SQL> DB.DBA.soap_dt_define ('ArrayOffloat', file_to_string ('float_array.xsd'));
<!-- file struct.xsd --> <complexType name="PERSON" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="services.wsdl"> <sequence> <element name="firstName" type="string"/> <element name="lastName" type="string"/> <element name="ageInYears" type="int"/> <element name="weightInLbs" type="float"/> <element name="heightInInches" type="float"/> </sequence> </complexType> <!-- eof struct.xsd --> can be defined from ISQL tool or in the PL procedure SQL> DB.DBA.soap_dt_define ('PERSON', file_to_string ('struct.xsd'));
<!-- file array_struct.xsd --> <complexType name="ArrayOfPERSON" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="services.wsdl"> <complexContent> <restriction base="enc:Array"> <sequence> <element name="item" type="tns:PERSON" minOccurs="0" maxOccurs="unbounded" nillable="true"/> </sequence> <attributeGroup ref="enc:commonAttributes"/> <attribute ref="enc:offset"/> <attribute ref="enc:arrayType" wsdl:arrayType="tns:PERSON[]"/> </restriction> </complexContent> </complexType> <!-- eof array_struct.xsd --> can be defined from ISQL tool or in the PL procedure SQL> DB.DBA.soap_dt_define ('ArrayOfPERSON', file_to_string ('array_struct.xsd'));