动态调用多个Web服务 [英] Call multiple web services dynamically
本文介绍了动态调用多个Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要动态调用由单个客户端托管在多个位置的Same Web服务.
我是WCF的新手,我无法弄清楚是否可以通过动态跳入客户端中的端点地址来做到这一点,以及是否可以动态地提供端点地址.
如果有人可以指导我如何实现这一目标,我将不胜感激.
该应用程序是使用Web服务通过流进行数据传输的方法.
预先感谢.
Hi,
I need to call Same web service hosted in multiple locations by a single client dynamically.
I''m new to WCF and I can not figure out whether by diving end point address in client dynamically, I can do it and if so how to give end point address dynamically.
I would appreciate if someone can guide me about how to achieve this.
The application is data transferring through streams using web services.
Thanks in advance.
推荐答案
通过代码创建端点-然后,您可以根据需要更改服务地址.
Create your endpoint via code - you can then change the service address as per your needs.
这篇关于动态调用多个Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文