如何在桌面应用程序中添加Web服务参考 [英] How to add Web services reference in desktop application

查看:86
本文介绍了如何在桌面应用程序中添加Web服务参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我已经创建了一个上传文件的网络服务....
现在我正在处理桌面应用程序,在其中我有任务要上传文件.
为此,我想使用该Web服务.
所以请任何人告诉我如何在桌面应用程序中添加Web参考.


问候,
Nilesh

hello to all of you

I have created a web services to upload files....
and now I m working on desktop application in which i have d task to upload files.
For this i want to use that web service.
so please anybody tell me how to add web reference in desktop application


Regards,
Nilesh

推荐答案

在任何应用程序中添加Web服务都是相同的,无论是Web还是台式机.如果您使用的是VS 2008或更高版本-请执行以下

1.右键单击该项目.单击添加服务参考"
2.单击高级->.单击添加Web参考
3.在Url中提供WSDL的路径
4.然后,IDE将为Web服务生成代理类. 5.使用代理类访问Web服务
Adding Web Services is same in any application, whether Web or desktop. If you are using VS 2008 or above - do the following

1. Right Click on the project.Click Add Service Reference
2. Click Advanced --> Click Add Web Reference
3. In the Url provide the path of the WSDL
4. The IDE will then generate a proxy class for the Web Service
5. Use the proxy class to access the Web Service


这篇关于如何在桌面应用程序中添加Web服务参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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