关于donet的webservice返回数据集问题 ( 积分: 100 )

  • 主题发起人 主题发起人 陌上花开
  • 开始时间 开始时间

陌上花开

Unregistered / Unconfirmed
GUEST, unregistred user!
我用的toup.xtr
<XmlTransformation Version=&quot;1.0&quot;><Transform Direction=&quot;ToCds&quot; DataEncoding=&quot;utf-8&quot;><SelectEach dest=&quot;DATAPACKET/ROWDATA/ROW&quot; from=&quot;DataSet/diffgram/NewDataSet/Table&quot;><Select dest=&quot;@文件名&quot; from=&quot;/文件名&quot;/><Select dest=&quot;@上传时间&quot; from=&quot;/上传时间&quot;/><Select dest=&quot;@业务类型&quot; from=&quot;/业务类型&quot;/><Select dest=&quot;@备注&quot; from=&quot;/备注&quot;/></SelectEach></Transform><XmlSchema RootName=&quot;DataSet&quot;><![CDATA[<xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;>
<xs:element name=&quot;DataSet&quot; type=&quot;DataSetType&quot;/>
<xs:complexType name=&quot;DataSetType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:schema&quot; type=&quot;xs:schemaType&quot;/>
<xs:element name=&quot;diffgr:diffgram&quot; type=&quot;diffgr:diffgramType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;schema&quot; type=&quot;schemaType&quot;/>
<xs:complexType name=&quot;schemaType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;id&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:xs&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:msdata&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:complexType&quot; type=&quot;xs:complexTypeType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;complexType&quot; type=&quot;complexTypeType&quot;/>
<xs:complexType name=&quot;complexTypeType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:choice&quot; type=&quot;xs:choiceType&quot;/>
<xs:element name=&quot;xs:sequence&quot; type=&quot;xs:sequenceType&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;choice&quot; type=&quot;choiceType&quot;/>
<xs:complexType name=&quot;choiceType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;maxOccurs&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:complexType&quot; type=&quot;xs:complexTypeType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;sequence&quot; type=&quot;sequenceType&quot;/>
<xs:complexType name=&quot;sequenceType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence/>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;type&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;minOccurs&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;diffgram&quot; type=&quot;diffgramType&quot;/>
<xs:complexType name=&quot;diffgramType&quot;>
<xs:sequence>
<xs:element name=&quot;NewDataSet&quot; type=&quot;NewDataSetType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns:msdata&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:diffgr&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;NewDataSet&quot; type=&quot;NewDataSetType&quot;/>
<xs:complexType name=&quot;NewDataSetType&quot;>
<xs:sequence>
<xs:element name=&quot;Table&quot; type=&quot;TableType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;Table&quot; type=&quot;TableType&quot;/>
<xs:complexType name=&quot;TableType&quot;>
<xs:sequence>
<xs:element name=&quot;文件名&quot; type=&quot;文件名Type&quot;/>
<xs:element name=&quot;上传时间&quot; type=&quot;上传时间Type&quot;/>
<xs:element name=&quot;业务类型&quot; type=&quot;业务类型Type&quot;/>
<xs:element name=&quot;备注&quot; type=&quot;备注Type&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;文件名&quot; type=&quot;文件名Type&quot;/>
<xs:simpleType name=&quot;文件名Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;上传时间&quot; type=&quot;上传时间Type&quot;/>
<xs:simpleType name=&quot;上传时间Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;业务类型&quot; type=&quot;业务类型Type&quot;/>
<xs:simpleType name=&quot;业务类型Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;备注&quot; type=&quot;备注Type&quot;/>
<xs:simpleType name=&quot;备注Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
</xs:schema>]]></XmlSchema><CdsSkeleton/><XslTransform/><Skeleton><![CDATA[<?xml version=&quot;1.0&quot;?><DATAPACKET Version=&quot;2.0&quot;><METADATA><FIELDS><FIELD attrname=&quot;文件名&quot; fieldtype=&quot;string&quot; WIDTH=&quot;21&quot;/><FIELD attrname=&quot;上传时间&quot; fieldtype=&quot;string&quot; WIDTH=&quot;18&quot;/><FIELD attrname=&quot;业务类型&quot; fieldtype=&quot;string&quot; WIDTH=&quot;8&quot;/><FIELD attrname=&quot;备注&quot; fieldtype=&quot;string&quot; WIDTH=&quot;12&quot;/></FIELDS><PARAMS/></METADATA><ROWDATA/><METADATA><FIELDS><FIELD attrname=&quot;文件名&quot; fieldtype=&quot;string&quot; WIDTH=&quot;21&quot;/><FIELD attrname=&quot;上传时间&quot; fieldtype=&quot;string&quot; WIDTH=&quot;18&quot;/><FIELD attrname=&quot;业务类型&quot; fieldtype=&quot;string&quot; WIDTH=&quot;8&quot;/><FIELD attrname=&quot;备注&quot; fieldtype=&quot;string&quot; WIDTH=&quot;12&quot;/></FIELDS><PARAMS/></METADATA><ROWDATA/></DATAPACKET>
]]></Skeleton></XmlTransformation>
转换的为空集
 
我用的toup.xtr
<XmlTransformation Version=&quot;1.0&quot;><Transform Direction=&quot;ToCds&quot; DataEncoding=&quot;utf-8&quot;><SelectEach dest=&quot;DATAPACKET/ROWDATA/ROW&quot; from=&quot;DataSet/diffgram/NewDataSet/Table&quot;><Select dest=&quot;@文件名&quot; from=&quot;/文件名&quot;/><Select dest=&quot;@上传时间&quot; from=&quot;/上传时间&quot;/><Select dest=&quot;@业务类型&quot; from=&quot;/业务类型&quot;/><Select dest=&quot;@备注&quot; from=&quot;/备注&quot;/></SelectEach></Transform><XmlSchema RootName=&quot;DataSet&quot;><![CDATA[<xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;>
<xs:element name=&quot;DataSet&quot; type=&quot;DataSetType&quot;/>
<xs:complexType name=&quot;DataSetType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:schema&quot; type=&quot;xs:schemaType&quot;/>
<xs:element name=&quot;diffgr:diffgram&quot; type=&quot;diffgr:diffgramType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;schema&quot; type=&quot;schemaType&quot;/>
<xs:complexType name=&quot;schemaType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;id&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:xs&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:msdata&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:complexType&quot; type=&quot;xs:complexTypeType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;complexType&quot; type=&quot;complexTypeType&quot;/>
<xs:complexType name=&quot;complexTypeType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:choice&quot; type=&quot;xs:choiceType&quot;/>
<xs:element name=&quot;xs:sequence&quot; type=&quot;xs:sequenceType&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;choice&quot; type=&quot;choiceType&quot;/>
<xs:complexType name=&quot;choiceType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;maxOccurs&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:complexType&quot; type=&quot;xs:complexTypeType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;sequence&quot; type=&quot;sequenceType&quot;/>
<xs:complexType name=&quot;sequenceType&quot;>
<xs:sequence>
<xs:element name=&quot;xs:element&quot; type=&quot;xs:elementType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;element&quot; type=&quot;elementType&quot;/>
<xs:complexType name=&quot;elementType&quot;>
<xs:sequence/>
<xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;type&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;minOccurs&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;diffgram&quot; type=&quot;diffgramType&quot;/>
<xs:complexType name=&quot;diffgramType&quot;>
<xs:sequence>
<xs:element name=&quot;NewDataSet&quot; type=&quot;NewDataSetType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns:msdata&quot; type=&quot;xs:string&quot;/>
<xs:attribute name=&quot;xmlns:diffgr&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;NewDataSet&quot; type=&quot;NewDataSetType&quot;/>
<xs:complexType name=&quot;NewDataSetType&quot;>
<xs:sequence>
<xs:element name=&quot;Table&quot; type=&quot;TableType&quot;/>
</xs:sequence>
<xs:attribute name=&quot;xmlns&quot; type=&quot;xs:string&quot;/>
</xs:complexType>
<xs:element name=&quot;Table&quot; type=&quot;TableType&quot;/>
<xs:complexType name=&quot;TableType&quot;>
<xs:sequence>
<xs:element name=&quot;文件名&quot; type=&quot;文件名Type&quot;/>
<xs:element name=&quot;上传时间&quot; type=&quot;上传时间Type&quot;/>
<xs:element name=&quot;业务类型&quot; type=&quot;业务类型Type&quot;/>
<xs:element name=&quot;备注&quot; type=&quot;备注Type&quot;/>
</xs:sequence>
</xs:complexType>
<xs:element name=&quot;文件名&quot; type=&quot;文件名Type&quot;/>
<xs:simpleType name=&quot;文件名Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;上传时间&quot; type=&quot;上传时间Type&quot;/>
<xs:simpleType name=&quot;上传时间Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;业务类型&quot; type=&quot;业务类型Type&quot;/>
<xs:simpleType name=&quot;业务类型Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
<xs:element name=&quot;备注&quot; type=&quot;备注Type&quot;/>
<xs:simpleType name=&quot;备注Type&quot;>
<xs:restriction base=&quot;xs:string&quot;/>
</xs:simpleType>
</xs:schema>]]></XmlSchema><CdsSkeleton/><XslTransform/><Skeleton><![CDATA[<?xml version=&quot;1.0&quot;?><DATAPACKET Version=&quot;2.0&quot;><METADATA><FIELDS><FIELD attrname=&quot;文件名&quot; fieldtype=&quot;string&quot; WIDTH=&quot;21&quot;/><FIELD attrname=&quot;上传时间&quot; fieldtype=&quot;string&quot; WIDTH=&quot;18&quot;/><FIELD attrname=&quot;业务类型&quot; fieldtype=&quot;string&quot; WIDTH=&quot;8&quot;/><FIELD attrname=&quot;备注&quot; fieldtype=&quot;string&quot; WIDTH=&quot;12&quot;/></FIELDS><PARAMS/></METADATA><ROWDATA/><METADATA><FIELDS><FIELD attrname=&quot;文件名&quot; fieldtype=&quot;string&quot; WIDTH=&quot;21&quot;/><FIELD attrname=&quot;上传时间&quot; fieldtype=&quot;string&quot; WIDTH=&quot;18&quot;/><FIELD attrname=&quot;业务类型&quot; fieldtype=&quot;string&quot; WIDTH=&quot;8&quot;/><FIELD attrname=&quot;备注&quot; fieldtype=&quot;string&quot; WIDTH=&quot;12&quot;/></FIELDS><PARAMS/></METADATA><ROWDATA/></DATAPACKET>
]]></Skeleton></XmlTransformation>
转换的为空集
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
937
SUNSTONE的Delphi笔记
S
后退
顶部