What is the difference between a web link and a service link?

What is the difference between a web link and a service link?

+6
visual-studio wcf asmx
source share
3 answers

Web reference

is a wrapper over wsdl.exe and can be used to create proxies for .NET 1.1 or 2.0 clients. Of course, this means that when you point to the WCF service, you must point to an endpoint that uses basicHttpBinding.

Service Help

is a wrapper over svcutil.exe, and also creates client proxies. However, only .NET 3.0+ clients can consume these proxies.

Refer to: Difference between "Web Reference" and "Service Reference" for more details.

+6
source share

If you mean the Microsoft function of providing services. A web link is an older way of delivering services. See this link: http://blogs.msdn.com/lifenglu/archive/2007/06/20/add-an-old-8-0-style-web-reference-into-an-orcas-vs-9 -project.aspx

Basically, he does the same by providing services over the Internet, but WCF provides you with more options for your application.

+1
source share

One refers to the settings.cs file [which does not automatically update from app.config if you do not open it and save it — if you edit the app.config file, and one refers to the app.config file, the configuration block in the app file. config is slightly different, and the structure of the service is slightly different from the scene. Your code will interact with objects a little differently, but the end result is that they essentially do the same. Web links are based on version 2.0 and the service link appeared in .NET 3.0 or 3.5 [I'm not sure which one].

You can still write code for web links, but if your application is aimed at environment 2.0, you cannot use links to services.

0
source share

All Articles