如何调用安全的 Web 服务

How to make call out to secured web service

尝试使用 BizTalk 2013 在“https://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php”调用 Web 服务时收到消息 "System.Net.WebException: The HTTP request was forbidden with client authentication scheme 'Anonymous'."。

我直接从站点导入了 wsdl,创建了架构和绑定以进行调用。发送端口设置为 WCF-BasicHttp,安全模式:传输,传输客户端凭据类型:None。我可以使用 SOAP-UI 从 BizTalk 服务器调用该服务,不提供任何形式的身份验证。

已阅读大量帖子和文档,但到目前为止我所做的一切都无济于事。我确定我错过了什么;只是不确定那是什么东西!

从 WSDL 的外观来看:<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>它是一个 RPC 类型的网络服务

喜欢文档specifies:'The WCF adapters do not support consuming Remote Procedure Call (RPC)-style Web services because the message parts in RPC-style Web services are referring to the message types rather than the message elements where WCF adapters are using elements for the message parts. We recommend that you add the RPC-style Web services through Add Web Reference wizard for consuming the Web services in BizTalk projects.'