Does anyone know how to specify a dataset ( or diffgram) as an element
in a schema?
For example and empty schema is defined as
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema id="NewDataSet " xmlns="" xmlns:xsd="http ://www.w3.org/2001/
XMLSchema" xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xsd:element name="NewDataSe t" msdata:IsDataSe t="true"
msdata:UseCurre ntLocale="true" >
<xsd:complexTyp e>
<xsd:choice minOccurs="0" maxOccurs="unbo unded" />
</xsd:complexType >
</xsd:element>
</xsd:schema>
Now if I have a schema defined as follows, how do I specify that the
"data" element has a dataset type
<?xml version="1.0" encoding="utf-8"?>
<wsschema xmlns="http://www.general.com/WebServiceSchem a">
<xs:schema xmlns:gen_ws="h ttp://www.general.com/WebServiceSchem a"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://www.general.com/WebServiceSchem a"
elementFormDefa ult="qualified" attributeFormDe fault="unqualif ied">
<!-- Define types used by AIX Generalized Web Services -->
<xs:simpleTyp e name="DataTypeC hoice">
<xs:restricti on base="xs:string ">
<xs:enumerati on value="boolean"/>
<xs:enumerati on value="datetime "/>
<xs:enumerati on value="decimal"/>
<xs:enumerati on value="integer"/>
<xs:enumerati on value="long"/>
<xs:enumerati on value="short"/>
<xs:enumerati on value="string"/>
</xs:restriction>
</xs:simpleType>
<xs:complexTy pe name="ParamterT ype">
<xs:all>
<xs:element name="name" type="xs:string "/>
<xs:element name="dataType" type="gen:DataT ypeChoice"
default="string "/>
<xs:element name="value" type="xs:string " />
</xs:all>
</xs:complexType>
<xs:complexTy pe name="ResponseT ype">
<xs:all>
<xs:element name="method" type="xs:string "/>
<xs:element name="returnVal ue" type="xs:intege r" />
<xs:element name="parms" minOccurs="0">
<xs:complexType >
<xs:sequence maxOccurs="unbo unded">
<xs:element name="parm" type="gen_ws:Pa ramterType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="data" type="xs:anyTyp e" minOccurs="0"
maxOccurs="1"/>
</xs:all>
</xs:complexType>
<xs:element name="Response" type="gen_ws:Re sponseType"/>
</xs:schema>
</wsschema>
in a schema?
For example and empty schema is defined as
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema id="NewDataSet " xmlns="" xmlns:xsd="http ://www.w3.org/2001/
XMLSchema" xmlns:msdata="u rn:schemas-microsoft-com:xml-msdata">
<xsd:element name="NewDataSe t" msdata:IsDataSe t="true"
msdata:UseCurre ntLocale="true" >
<xsd:complexTyp e>
<xsd:choice minOccurs="0" maxOccurs="unbo unded" />
</xsd:complexType >
</xsd:element>
</xsd:schema>
Now if I have a schema defined as follows, how do I specify that the
"data" element has a dataset type
<?xml version="1.0" encoding="utf-8"?>
<wsschema xmlns="http://www.general.com/WebServiceSchem a">
<xs:schema xmlns:gen_ws="h ttp://www.general.com/WebServiceSchem a"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace ="http://www.general.com/WebServiceSchem a"
elementFormDefa ult="qualified" attributeFormDe fault="unqualif ied">
<!-- Define types used by AIX Generalized Web Services -->
<xs:simpleTyp e name="DataTypeC hoice">
<xs:restricti on base="xs:string ">
<xs:enumerati on value="boolean"/>
<xs:enumerati on value="datetime "/>
<xs:enumerati on value="decimal"/>
<xs:enumerati on value="integer"/>
<xs:enumerati on value="long"/>
<xs:enumerati on value="short"/>
<xs:enumerati on value="string"/>
</xs:restriction>
</xs:simpleType>
<xs:complexTy pe name="ParamterT ype">
<xs:all>
<xs:element name="name" type="xs:string "/>
<xs:element name="dataType" type="gen:DataT ypeChoice"
default="string "/>
<xs:element name="value" type="xs:string " />
</xs:all>
</xs:complexType>
<xs:complexTy pe name="ResponseT ype">
<xs:all>
<xs:element name="method" type="xs:string "/>
<xs:element name="returnVal ue" type="xs:intege r" />
<xs:element name="parms" minOccurs="0">
<xs:complexType >
<xs:sequence maxOccurs="unbo unded">
<xs:element name="parm" type="gen_ws:Pa ramterType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="data" type="xs:anyTyp e" minOccurs="0"
maxOccurs="1"/>
</xs:all>
</xs:complexType>
<xs:element name="Response" type="gen_ws:Re sponseType"/>
</xs:schema>
</wsschema>