读书人

ASP读取Webservices数据有关问题

发布时间: 2012-03-03 15:33:02 作者: rapoo

ASP读取Webservices数据问题
调用外部的webservice接口,前半部分应该是调通了。显示了200 OK。
但是接下来读取数据怎么也读取不出来,按照网上的一些资料做了,也是不行。
请教下应该怎么读取这个webservice数据。

请求的是两个string

下面是soap响应示例:

HTML code
HTTP/1.1 200 OKContent-Type: text/xml; charset=utf-8Content-Length: length<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">  <soap:Body>    <WebInfoResponse xmlns="http://IP地址/infoService">      <WebInfoResult>string</WebInfoResult>    </WebInfoResponse>  </soap:Body></soap:Envelope>


另外:<WebInfoResponse xmlns="http://IP地址/infoService">中的xmlns="http://IP地址/infoService"是做什么用处的

[解决办法]
参见
http://dotnet.aspx.cc/file/call-aspnet-web-service-using-javascript.aspx

读书人网 >Web Service

热点推荐