在asp.net中使用Web服务的问题? [英] problem using in web service in asp.net ?

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

问题描述

我搜索了我的问题,但没有找到任何严肃的答案...



我创建了一个Web服务。当我创建另一个网站使用我的网络服务时,



有两种选择......



1)。添加网页参考...



2)。添加服务参考...



两者都工作正常,而不是这两种情况之间的差异?



Thanx提前dudes .... :)

i googled my problem but not find any serious answer ...

i create a web service . and when i create an other web site for using this my web services ,

there are two options are given ......

1). add web refrence...

2). add service refrence...

both are worked fine , than whats the difference between those two otions ?

Thanx in advance dudes .... :)

推荐答案

添加Web引用和添加服务引用之间的区别 [ ^ ]


http://raymondxblog.wordpress.com/2011/09/28/002-difference-between-web-reference-and-service-reference/ [ ^ ]


Add Web Reference is the old-style, deprecated ASP.NET webservices (ASMX) technology (using only the XmlSerializer for your stuff) - if you do this, you get an ASMX client for an ASMX web service. You can do this in just about any project (Web App, Web Site, Console App, Winforms - you name it).

Add Service Reference is the new way of doing it, adding a WCF service reference, which gives you a much more advanced, much more flexible service model than just plain old ASMX stuff.

Since you're not ready to move to WCF, you can also still add the old-style web reference, if you really must: when you do a "Add Service Reference", on the dialog that comes up, click on the [Advanced] button in the button left corner:





参考: http://stackoverflow.com/questions/2158106/web-reference-vs-service-reference [ ^ ]


这篇关于在asp.net中使用Web服务的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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