在不使用“添加引用"窗口的情况下为WebService创建代理 [英] Proxy creation for WebService without using Add Reference window
本文介绍了在不使用“添加引用"窗口的情况下为WebService创建代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以在不使用.Net应用程序中的添加引用窗口"的情况下帮助动态创建Proxy类.
例如:1)我有一个由网址托管的服务:http://somepath \ Service.asmx
2)需要通过代码在客户端应用程序中创建代理,而无需使用添加引用"窗口.
谢谢
Sarath
Hi,
Can anybody help in creating a Proxy class dynamically without using the Add Reference Window in .Net application.
Ex: 1)I have a service hosted with the Url: http://somepath\Service.asmx
2)Proxy needs to be created in client application through code without using the Add Reference window.
Thanks
Sarath
推荐答案
使用WSDL工具为您创建类.
http://msdn.microsoft.com/en-us/library/ms155134.aspx [ ^ ]
您可以稍后将代码文件添加到您的项目中.
Use WSDL tool to create the class for you.
http://msdn.microsoft.com/en-us/library/ms155134.aspx[^]
You can add code file to your project later.
您好,Prerak Patel,感谢您的答复,您能否举个例子.
关于通过代码或语法添加Web引用并创建代理.
谢谢
萨拉斯
Hi Prerak Patel, thanks for ur reply, could u show me with an example.
About adding a webreference and creating the proxy, through code or syntax.
Thanks
Sarath
这篇关于在不使用“添加引用"窗口的情况下为WebService创建代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文