Webserveice数据读取问题

lukalea 2010-09-24 08:51:26
调用外部的webservice接口,前半部分应该是调通了。显示了200 OK。
但是接下来读取数据怎么也读取不出来,按照网上的一些资料做了,也是不行。
请教下应该怎么读取这个webservice数据。

请求的是两个string

下面是soap相应:


HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-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>


...全文
107 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
xujiangmiao 2011-09-19
  • 打赏
  • 举报
回复
顶一下
fujunle 2010-09-25
  • 打赏
  • 举报
回复
http://myitlife.javaeye.com/blog/450430

asp调用Webservice
lukalea 2010-09-25
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 net_lover 的回复:]
你的webservice地址是什么
[/Quote]

就是一个IP地址咯,这个是用在内网的。


再请问下,soap响应传回来是个什么文件??
是不是xml文件?
孟子E章 2010-09-25
  • 打赏
  • 举报
回复
你的webservice地址是什么
lukalea 2010-09-25
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 fujunle 的回复:]
http://myitlife.javaeye.com/blog/450430

asp调用Webservice
[/Quote]

呵,这个我看过,这个数据也取不出来。
哎。
孟子E章 2010-09-24
  • 打赏
  • 举报
回复
xmlns是名称空间,你可以看看xml的基础知识,
可以解析xml获得返回的内容
lukalea 2010-09-24
  • 打赏
  • 举报
回复
另外再问下:
<WebInfoResponse xmlns="http://IP地址/infoService">
响应中的xmlns="http://IP地址/infoService">这句是干嘛用的?

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧