C# 使用HTTPS WCF服务连接xamarin(使用安全模式MessageWithtransport的WShttpbinding)

C# 使用HTTPS WCF服务连接xamarin(使用安全模式MessageWithtransport的WShttpbinding),c#,ios,wcf,xamarin,C#,Ios,Wcf,Xamarin,我们有一个现有的Soap HTTPS WCF服务,该服务具有安全模式为TransportWithMessageCredentials的WShttpBinding。我可以在IOS Xamarin应用程序中使用此WCF服务吗?在Ios应用程序中创建WCF服务的代理后,我已经使用了basichttpbinding WCF服务。有人能告诉我如何将HTTPS WShttpBinding WCF服务用于我的Xamarin应用程序吗?据我所知,您不能使用WShttpBinding: PCL: Web.conf

我们有一个现有的Soap HTTPS WCF服务,该服务具有安全模式为TransportWithMessageCredentials的WShttpBinding。我可以在IOS Xamarin应用程序中使用此WCF服务吗?在Ios应用程序中创建WCF服务的代理后,我已经使用了basichttpbinding WCF服务。有人能告诉我如何将HTTPS WShttpBinding WCF服务用于我的Xamarin应用程序吗?

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

PCL:

Web.config绑定:


你找到解决办法了吗?我有完全相同的挑战。我认为,没有直接的方法将WShttpBinding与Xamarin结合使用。我将HttpBinding与安全模式传输结合使用。
 BasicHttpBinding bind= new BasicHttpBinding(BasicHttpSecurityMode.Transport);
  <basicHttpBinding>
    <binding name="BasicSecure">
      <security mode="Transport" />
    </binding>
  </basicHttpBinding>