1. 配置 IIS 绑定 IP地址

2. 在 SL 中引用 WebService

3. 在需要调用 WebService 的地方写下列代码:

Silverlight 动态调用 WCF And WebService

WCF :

 

 

传统 WebService:

 

这样就可以动态的调用 webservice 了.  完全不需要 ServiceReferences.ClientConfig 文件了.

1. 配置 IIS 绑定 IP地址

2. 在 SL 中引用 WebService

3. 在需要调用 WebService 的地方写下列代码:

Silverlight 动态调用 WCF And WebService

WCF :

 

 

传统 WebService:

 

这样就可以动态的调用 webservice 了.  完全不需要 ServiceReferences.ClientConfig 文件了.

相关文章:

  • 2021-11-02
  • 2022-02-26
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
猜你喜欢
  • 2021-07-16
  • 2021-12-27
  • 2022-12-23
相关资源
相似解决方案