如何在没有服务参考的情况下动态调用WCF服务 [英] How to call dynamically WCF service without service reference

查看:206
本文介绍了如何在没有服务参考的情况下动态调用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/[^]


这篇关于如何在没有服务参考的情况下动态调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆