本文介绍了网络服务响应 - 的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i want this web service reponse in dataset or array of string.
xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle
="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV
="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd
="http://www.w3.org/2001/XMLSchema"
xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC
="http://schemas.xmlsoap.org/soap/encoding/"
>
<SOAP-ENV:Body
>
<ns1:getDIDAreaResponse
xmlns:ns1
="urn:getDIDArea "
>
<return
xsi:type
="SOAP-ENC:Array"
SOAP-ENC:arrayType
="SOAP-ENC:Array[2]"
>
<item
xsi:type
="SOAP-ENC:Array"
SOAP-ENC:arrayType
="xsd:string[2]"
>
<item
xsi:type
="xsd:string"
>AreaCode</item
>
<item
xsi:type
="xsd:string"
>Description</item
>
</item
><item
xsi:type
="SOAP-ENC:Array"
SOAP-ENC:arrayType
="xsd:string[2]"
>
<item
xsi:type
="xsd:string"
>51</item
>
<item
xsi:type
="xsd:string"
>Islamabad</item
></item
>
</return
>
</ns1:getDIDAreaResponse
></SOAP-ENV:Body
></SOAP-ENV:Envelope
>
i tried to use it like this,because i m consuming a webservice ,
StringReader sr = new StringReader(objHTTP.responseText);
ds.ReadXml(new XmlTextReader(sr));
but getting this error:
Cannot add a nested relation or an element column to a table containing a SimpleContent column.
Thanks in advance
推荐答案
这篇关于网络服务响应 - 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!