网络服务响应 - [英] webservice response -

查看:206
本文介绍了网络服务响应 - 的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

您是否尝试过使用"添加网络参考"?参考服务?如果是这样,代理方法的返回类型是什么?
Did you try just using "Add Web Reference" to refer to the service? If so, what's the return type of the proxy method?


这篇关于网络服务响应 - 的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆