【问题标题】:Connect xamarin with HTTPS WCF service( WShttpbinding with a security mod MessageWithtransport)使用 HTTPS WCF 服务连接 xamarin(带有安全模块 MessageWithtransport 的 WShttpbinding)
【发布时间】:2014-08-22 06:29:02
【问题描述】:

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

【问题讨论】:

  • 您找到解决方案了吗?我也有同样的挑战。
  • 我认为,没有直接的方法可以将 WShttpBinding 与 Xamarin 一起使用。我已将 HttpBinding 与安全模式“传输”一起使用。

标签: c# ios wcf xamarin


【解决方案1】:

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

From this Question I would use:

PCL:

 BasicHttpBinding bind= new BasicHttpBinding(BasicHttpSecurityMode.Transport);

Web.config 绑定:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-04-02
    • 2012-08-31
    • 1970-01-01
    • 1970-01-01
    • 2017-07-05
    • 2013-12-13
    • 2017-04-03
    相关资源
    最近更新 更多