动态创建WCF服务代理分类并从服务调用方法 [英] Dynamically create WCF service proxy classed and call methods from service
本文介绍了动态创建WCF服务代理分类并从服务调用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个服务URL,我想在运行时从服务中动态创建一个代理类,并希望从服务中调用方法.该服务可能是Web服务或WCF服务,但我不确定.我所拥有的只是服务网址.
如何创建代理类来访问C#和ASP.Net应用程序中的服务方法?
谢谢,
Avinash Patil
解决方案
以下一些链接可能会有所帮助...
http://social.msdn.microsoft.com /forums/zh-CN/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54/ [ http://stackoverflow.com/questions/3581451/dynamically-invoke-web-service-运行时 [ ^ ]
在没有Web参考的情况下调用Web服务 [ ^ ]
Hi All,
I have a service url, and I want to create a proxy class from the service dynamically in runtime and want to call the methods from service. The service may be web service or WCF service I am not confirm about it. All I am having is service url.
How I can create a proxy classes to access the service methods in C# and ASP.Net application?
Thanks,
Avinash Patil
解决方案
Here are a few links that might be helpful...
http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/39138d08-aa08-4c0c-9a58-0eb81a672f54/[^]
http://stackoverflow.com/questions/3581451/dynamically-invoke-web-service-at-runtime[^]
Invoking a Web Service Without Web Reference[^]
这篇关于动态创建WCF服务代理分类并从服务调用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文