我使用WCF客户端(和服务引用方法)调用Java SOAP Web服务 - 我在尝试创建服务客户端实例时遇到以下异常:
Could not find default endpoint element that references contract 'name of the service'
in the ServiceModel client configuration section. This might be because no configuration
file was found for your application, or because no endpoint element matching this contract
could be found in the client element.
在网络配置中产生的很少:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="***SOAP" />
</basicHttpBinding>
</bindings>
</system.serviceModel>
我也试过Service Reference =&gt; Adnanced =&gt;失败的网络参考:
{"Unable to connect to the remote server"}
在调用非WCF Web服务时,服务引用是否为死路径?或者我如何使其工作?
答案 0 :(得分:0)
您可以在浏览器中调用WSDL(http://....?wsdl)吗? WSDL文件是合同如何描述,Web服务提供什么(带参数和返回值的方法),以及您以何种方式访问服务。 - http://www.w3.org/TR/wsdl