2015-08-31 112 views
0

我打电话使用WCF客户端(和服务引用的方法)一个Java SOAP Web服务 - 我得到以下异常试图创建服务端的一个实例:调用通过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. 

很少有在web配置生成:

<system.serviceModel> 
     <bindings> 
      <basicHttpBinding> 
       <binding name="***SOAP" /> 
      </basicHttpBinding> 
     </bindings> 
    </system.serviceModel> 

我也试过服务参考=> Adnanced => Web引用其失败:

{"Unable to connect to the remote server"} 

是服务参考呼叫非WCF Web服务时,死路路线或如何得到它,否则工作?

回答

0

可以调用浏览器内的WSDL(http://....?wsdl)? WSDL文件是如何描述的合同,什么网络服务提供(法参数和返回值),并在其上的方式您可以访问该服务。 - http://www.w3.org/TR/wsdl