Z
zhanweixin
Unregistered / Unconfirmed
GUEST, unregistred user!
调用C#写的Web Service,返回类型为XmlNode,在Delphi里的声明如下:
GetBrandResult = type WideString;
TCBGSoap = interface(IInvokable)
function GetBrand: GetBtandResult; stdcall;
end;
调用成功后返回值为
<RESP>
<RESULT>OK</RESULT>
<BRAND>
<ID>1</ID>
<NAME>神州行</NAME>
</BRAND>
<BRAND>
<ID>2</ID>
<NAME>全球通</NAME>
</BRAND>
</RESP>
请问,如何在Delphi中接收到后,如何将RESULT结点值为OK的BRAND里的ID、NAME值提取出来呢?
GetBrandResult = type WideString;
TCBGSoap = interface(IInvokable)
function GetBrand: GetBtandResult; stdcall;
end;
调用成功后返回值为
<RESP>
<RESULT>OK</RESULT>
<BRAND>
<ID>1</ID>
<NAME>神州行</NAME>
</BRAND>
<BRAND>
<ID>2</ID>
<NAME>全球通</NAME>
</BRAND>
</RESP>
请问,如何在Delphi中接收到后,如何将RESULT结点值为OK的BRAND里的ID、NAME值提取出来呢?