作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我们有一个带有 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/
我们有一个带有 WShttpBinding 的现有 Soap HTTPS WCF 服务,安全模式为 TransportWithMessageCredentials。我可以在我的 IOS Xamarin
我是一名优秀的程序员,十分优秀!