当前位置: 代码迷 >> Web Service >> .net引用Java写的WebService的有关问题
  详细解决方案

.net引用Java写的WebService的有关问题

热度:1251   发布时间:2016-05-02 03:11:40.0
.net引用Java写的WebService的问题
自己是初学者
当在.net中引用http://211.144.69.5:8090/axis/services/WmsSend时出现下面问题,望各位大侠鼎力相助。

HTML 文档不包含 Web 服务发现信息。
元数据包含无法解析的引用:“http://211.144.69.5:8090/axis/services/WmsSend”。
响应消息的内容类型 text/xml;charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。如果使用自定义编码器,请确保正确实现 IsContentTypeSupported 方法。响应的前 559 个字节为:“<?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/">powerdek-test01</ns2:hostname>
  </detail>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>”。
远程服务器返回错误: (500) 内部服务器错误。
如果该服务已在当前解决方案中定义,请尝试生成该解决方案,然后再次添加服务引用。

------解决方案--------------------
Add Service Reference 的时候引用地址 http://211.144.69.5:8090/axis/services/WmsSend?wsdl
  相关解决方案