gpt4 book ai didi

c# - 将 xamarin 与 HTTPS WCF 服务连接(WShttpbinding 与安全模式 MessageWithtransport)

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:42:29 24 4
gpt4 key购买 nike

我们有一个带有 WShttpBinding 的现有 Soap HTTPS WCF 服务,安全模式为 TransportWithMessageCredentials。我可以在我的 IOS Xamarin 应用程序中使用这个 WCF 服务吗?在 Ios 应用程序中创建 WCF 服务的代理后,我已经使用了 basichttpbinding WCF 服务。谁能告诉我如何使用 HTTPS WShttpBinding 绑定(bind) WCF 服务到我的 Xamarin 应用程序?

最佳答案

据我所知,您不能使用 WSHttpBinding:

From this Question I would use:

PCL:

 BasicHttpBinding bind= new BasicHttpBinding(BasicHttpSecurityMode.Transport);

Web.config 绑定(bind):

  <basicHttpBinding>
<binding name="BasicSecure">
<security mode="Transport" />
</binding>
</basicHttpBinding>

关于c# - 将 xamarin 与 HTTPS WCF 服务连接(WShttpbinding 与安全模式 MessageWithtransport),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25440832/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com