如何为WCF创建代理 [英] How to create Proxy for WCF
本文介绍了如何为WCF创建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了WCF服务,但我不知道如何为服务创建代理.
i created a WCF service but i dont know how to create a proxy for services
推荐答案
有关SvcUtil.exe @ http://msdn.microsoft.com/en-us/library/aa347733.aspx [
Study about SvcUtil.exe @ http://msdn.microsoft.com/en-us/library/aa347733.aspx[^]
快走吧VS命令提示符并键入以下代码-
svcutil * .wsdl * .xsd/language:C#/out:YourProxyclassName.cs/config:app.config
这将与app.config文件一起创建一个Proxy类.在您的客户端应用程序中引用这些信息,以了解使用WCF服务的方式.
Hi, Just go to the VS command prompt and type the bellow code -
svcutil *.wsdl *.xsd /language:C# /out:YourProxyclassName.cs /config:app.config
This will create one Proxy class along with the app.config file. Refer these in your client appllcation where you what to consume your WCF servce.
这篇关于如何为WCF创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文