在delphi中调用c#.net编写的xml web service,其中service方法的返回值是dataset.在程序中该如何处理呀?
其中数据集的架构文件如下:
<?xml version="1.0" standalone="yes"?>
<xs:schema id="authors1" targetNamespace="http://www.tempuri.org/authors1.xsd" xmlns:mstns="http://www.tempuri.org/authors1.xsd" xmlns="http://www.tempuri.org/authors1.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="authors1" msdata:IsDataSet="true" msdata:Locale="zh-CN">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="authors">
<xs:complexType>
<xs:sequence>
<xs:element name="au_id" type="xs:string" />
<xs:element name="au_lname" type="xs:string" />
<xs:element name="au_fname" type="xs:string" />
<xs:element name="city" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:authors" />
<xs:field xpath="mstns:au_id" />
</xs:unique>
</xs:element>
</xs:schema>
问题点数:100、回复次数:2Top
1 楼xper2002(xper)回复于 2005-08-10 15:42:53 得分 0
直接返回DataSet有问题,用DataSet.GetXml()Top
2 楼hqhhh(枫叶)回复于 2005-08-10 16:36:45 得分 0
var XMLDoc : OleVariant;
XMLDoc := CreateOleObject('microsoft.xmldom');
XMLDoc.async:= false;
XMLDoc.load('sample.xml');
Top




