如何在现有项目中使用Web服务 [英] How to Use Web Sevice in our exising Project

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

问题描述

我想在当前项目中使用Web服务.

我知道所有过程如何创建Web服务,然后如何添加对我的项目的引用,但是在尝试在当前项目中使用时创建Web服务后,我无法获得该创建的Web服务.

我在同一项目中创建Web服务的位置.

请建议我我做错了.

I want to Use Web service in my current project.

I know all Procedure How to Create Web Service Then How to add Reference to my Project but After Creating Web Service When I Was Try to use in my Current Project I''m unable to get that created Web service.

Where As I Created the Web Service in Same Project.

Please Suggest me What I''m doing Wrong.

推荐答案

您是否已通过webreference添加了对它的引用?

设置为您的 *.asmx 文件的启动项目,并检查其是否在浏览器中成功运行.

如果成功运行,则复制URL,然后在此URL的帮助下添加Web参考.
have you add reference it through webreference ?

set as startup project to your *.asmx file and check if it run successully in browser.

if it run successfully then copy URL and then add web reference with the help of this URL.


您可以点击链接,它详细说明了如何在asp.net中使用Web服务.项目

构建XML Web服务客户端

如果您遇到任何特定的错误,请更新您的问题.可以专门解决.
You can follow the link, it explains in detail how to use web services in your asp.net project

Building XML Web Service Clients

If you are getting any specific error update your question. It can be specifically addressed.




在这里,我为asp.net中的Web服务提供了一些链接

因此,只需检查这些链接即可.

http://www.codeproject.com/KB/webservices/WebServiceConsumer.aspx

还有

http://www. asp.net/general/videos/how-do-i-create-and-call-a-simple-web-service-in-aspnet

最好的
Hi,

Here I''m providing some links for webservices in asp.net

so just check these links.

http://www.codeproject.com/KB/webservices/WebServiceConsumer.aspx

And

http://www.asp.net/general/videos/how-do-i-create-and-call-a-simple-web-service-in-aspnet

All the Best


这篇关于如何在现有项目中使用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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