gsoap webservice
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,各位大神指导一下