gsoap webservice

pandayeyuel 2013-04-21 04:04:54
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,各位大神指导一下
...全文
50 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
pandayeyuel 2013-04-22
  • 打赏
  • 举报
回复
大师~您研究的咋样了
derekrose 2013-04-21
  • 打赏
  • 举报
回复
研究一下再和你讨论~

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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