Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 .... :)
Posted

 
Share this answer
 
Comments
GDdixit 8-Jan-14 4:25am    
here it is says that web refrence can be used to create proxies for .NET 1.1 or 2.0 clients
i think tgis 1.1. and 2.0 is dot net framework ), if than i was used this web refrence in my 3.5 framework .. and it working fine .... ?
thatraja 8-Jan-14 4:28am    
Backward support.
GDdixit 8-Jan-14 4:37am    
can u explain in two lines what backward support ?
thatraja 8-Jan-14 4:42am    
Please try to use google.

Alright, the new framework still supports the old option. In past, we used 'Add web reference' option for ASMX & nowadays we use 'Add Service reference' for WCF. Didn't you notice wsdl & svcutil mentioned in that page(URL)
GDdixit 9-Jan-14 4:17am    
thnx , something clear
ASM
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:


Reference : http://stackoverflow.com/questions/2158106/web-reference-vs-service-reference[^]
 
Share this answer
 
Comments
GDdixit 9-Jan-14 4:26am    
thnx , explain nicely :)
Gandalf_TheWhite 9-Jan-14 4:32am    
you're welcome! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900