如何在没有服务参考的情况下动态调用WCF服务

如何在没有服务参考的情况下动态调用WCF服务

问题描述:

大家好,
我计划仅使用服务路径URI而不使用Service Reference来调用WCF服务.通过svcutil.exe,我生成了代理类和配置文件.我们可以在编译时轻松地标识代理类名称.但在这里面临挑战,在运行时,我必须检索代理类名称.有没有可能实现.

Hi All,
I planned to call the WCF service using only service path URI and without Service Reference.Through svcutil.exe, i generated the proxy class and config file. we can easily identity proxy class name in compile time. but challenge here, at runtime, i have to retrieve the proxy class name. Is there any possiblity to achieve.

尝试过Google?
http://social.msdn.microsoft.com /Forums/zh-CN/wcf/thread/318adfa1-bba1-4468-9835-4406a34b9b73/ [
Tried Google?
http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/318adfa1-bba1-4468-9835-4406a34b9b73/[^]