通过WCF客户端调用Java SOAP Web服务

本文关键字:SOAP Web 服务 Java 调用 WCF 客户端 通过 | 更新日期: 2023-09-27 18:10:26

我正在使用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>

我还尝试了Service Reference=> advanced =>Web Reference,但失败了:

{"Unable to connect to the remote server"}

调用非wcf web服务时,服务引用是一条死胡同路由吗?或者我如何使它正常工作?

通过WCF客户端调用Java SOAP Web服务

可以在浏览器中调用WSDL (http://....?wsdl)吗?WSDL文件是关于如何描述、web服务提供什么(带有参数和返回值的方法)以及以何种方式访问服务的契约。——http://www.w3.org/TR/wsdl