【发布时间】:2011-07-04 07:49:55
【问题描述】:
我们第一次在 SOAP 1.1 上使用 SAP NetWeaver Web 服务,该服务需要通过 HTTPS 进行用户名和密码身份验证。
我目前正在对 WCF 应用程序进行原型设计,并且我可以通过这两种绑定配置成功使用 SAP Web 服务。
<basicHttpBinding>
<binding name="SapEndpoint">
<security mode="Transport">
<transport clientCredentialType="Basic" />
</security>
</binding>
</basicHttpBinding>
<customBinding>
<binding name="SapSoap11Endpoint">
<textMessageEncoding messageVersion="Soap11" />
<httpsTransport authenticationScheme="Basic" />
</binding>
</customBinding>
只要它提供所需的功能,我倾向于使用标准绑定而不是自定义绑定。但我想了解使用一种或另一种绑定会有什么不同。
如果您以前使用过 SAP 网络服务,任何建议都会很有帮助。
谢谢!
【问题讨论】:
标签: wcf soap soap-client wcf-binding