【问题标题】:Multiple WCF connections in Xamarin FormsXamarin 表单中的多个 WCF 连接
【发布时间】:2015-06-09 16:17:11
【问题描述】:

我正在开发一个与 WCF 服务连接以加载数据的应用程序。我直接从 Visual Studio 添加了一个 Web 服务引用,并且运行得很好。

但是,我现在的问题是:我必须根据登录应用程序的用户连接不同的 WCF 服务。

有没有办法通过代码做到这一点??我正在使用 Xamarin Forms Portable 应用程序。


已解决:

最后,我通过代码更改服务的url:

service = new ServicioWebClient(binding, new EndpointAddress("http://myurl/wsdl"));

【问题讨论】:

    标签: c# wcf xamarin.forms


    【解决方案1】:

    最后,我通过代码更改服务的url:

    service = new ServicioWebClient(binding, new EndpointAddress("http://myurl/wsdl"));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 2023-03-18
      • 2014-06-22
      • 1970-01-01
      相关资源
      最近更新 更多