以文本方式查看主题

-  W3CHINA.ORG讨论区 - 语义网·描述逻辑·本体·RDF·OWL  (http://bbs.xml.org.cn/index.asp)
--  『 Web Services & Semantic Web Services 』  (http://bbs.xml.org.cn/list.asp?boardid=10)
----  gsoap webservice  (http://bbs.xml.org.cn/dispbbs.asp?boardid=10&rootid=&id=126166)


--  作者:yeyuel
--  发布时间:4/21/2013 11:12:00 AM

--  gsoap webservice
环境 win8,              vs2010,gsoap2.
       winxp(虚拟机)

用webservice studio测试gsoap自带的计算器中加法的webservice,winxp中发现只有服务用80端口能访问服务,win8中80端口被占用。win8和winxp 中用其他端口报错如下

win8:System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.InvalidOperationException: 客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。
请求失败,错误信息为:

winxp:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: 由于目标机器积极拒绝,无法连接。

能够得到wsdl文档,调用add方法时报错,第一次用gsoap,各位大神指导一下


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms