读书人

vb.net 引用webserice出错高手麻烦指

发布时间: 2012-05-08 22:09:41 作者: rapoo

vb.net 引用webserice出错,高手麻烦指教。急。。。
HTML 文档不包含 Web 服务发现信息。
元数据包含无法解析的引用:“http://outbound.gmcc.net/TMS/services/ReceiveWebServiceImpl”。
响应消息的内容类型 text/xml; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 555 个字节为:“<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
<faultstring>no SOAPAction header!</faultstring>
<detail>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">S1-C-GD-APP</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>”。
远程服务器返回错误: (500) 内部服务器错误。
如果该服务已在当前解决方案中定义,请尝试生成该解决方案,然后再次添加服务引用。

在引用的时候出现这个错误,之前我弄一类似的,可以引用,然后删除了,再想引用这个,就不行了。
麻烦知道的指教下,

[解决办法]
UrlEncode编码
可能是你数据传输的时候这个问题导致的
[解决办法]
难道真的是编码问题?
[解决办法]
检查下你的ie,是否用了代理。。。。。
[解决办法]
不像是编码问题
[解决办法]

探讨

检查下你的ie,是否用了代理。。。。。

[解决办法]
响应消息的内容类型 text/xml; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。

这个提示说明了你的编码有问题。

读书人网 >VB Dotnet

热点推荐