在C#添加服务引用时:
下载“http://219.146.6.101:9081/SendSmsService”时出错。
请求失败,错误信息为:
--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:comm3="http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1" xmlns:tl1="http://www.chinatelecom.com.cn/schema/ctcc/terminal_location/v2_1/local"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>Client</faultcode><faultstring>500 Internal Server Error</faultstring><detail><comm3:ServiceException xsi:type="comm3:ServiceException"><messageId>SVC0001</messageId><text>Wrong URL</text></comm3:ServiceException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
--.
元数据包含无法解析的引用:“http://219.146.6.101:9081/SendSmsService”。
元数据包含无法解析的引用:“http://219.146.6.101:9081/SendSmsService”。
如果该服务已在当前解决方案中定义,请尝试生成该解决方案,然后再次添加服务引用。
修改引用地址为http://219.146.6.101:9081/SendSmsService?wsdl时还是会报相同错误。
继续修改:
添加服务引用—高级—添加Web引用
下载“http://219.146.6.101:9081/SendSmsService”时出错。
请求失败,错误信息为:
--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml

各位大虾牛人专家帮帮小弟吧

解决方案 »

  1.   

    http://219.146.6.101:9081/SendSmsService?wsdl  这个就可以的啊你在IE里输入这个地址看看能不能连接上
      

  2.   

    你需要咨询下提供这个接口的人怎么调用,
    可以使用HttpWebRequest调用
      

  3.   

    在IE上可以连接的,你说的这个方法适合标准的Java WebServer调用,貌似对方写的不标准用http://219.146.6.101:9081/SendSmsService?wsdl这个方法便会报错