The Difference Between “Add Web Reference” and “Add Service Reference”
2011-12-11 00:18
495 查看
Add 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 when you are pointing to a WCF service you have to be pointing to an endpoint that uses basicHttpBinding (as I was).
Add Service Reference is a wrapper over
svcutil.exe and also creates clients proxies (and additionally
web.config entries). These proxies, however, can only be consumed by .NET 3.0+ clients.
It seems to me that a better approach would have been to have a single menu option that allowed you to select the proposed target framework.
wsdl.exe and can be used to create proxies for .NET 1.1 or 2.0 clients. Of course this means when you are pointing to a WCF service you have to be pointing to an endpoint that uses basicHttpBinding (as I was).
Add Service Reference is a wrapper over
svcutil.exe and also creates clients proxies (and additionally
web.config entries). These proxies, however, can only be consumed by .NET 3.0+ clients.
It seems to me that a better approach would have been to have a single menu option that allowed you to select the proposed target framework.
相关文章推荐
- The Difference Between “Add Web Reference” and “Add Service Reference”
- The Difference Between “Add Web Reference” and “Add Service Reference”
- The difference between web container and web server
- What are the differences between WebAPI and WebAPI 2
- Difference between WCF and Web API and WCF REST and Web Service
- What is the difference between max-device-width and max-width for mobile web?
- What’s the difference between <system.web> and <system.webServer>?
- What is the difference between Web Farm and Web Garden?
- FW: Difference between Web Service and WCF Service
- What are the differences between a pointer variable and a reference variable in C++?
- What exactly is the difference between “pass by reference” in C and in C++?
- Difference between WCF and Web API and WCF REST and Web Service[转]
- 我也谈“the difference between Factory, Service, and Provider in Angular”
- what the difference between __weak and __block reference?
- What’s the difference between alignment, de novo assembly, and map to reference
- The difference between the 'Local System' account and the 'Network Service' account?
- Difference between servlet and web service
- The Difference Between @Helpers and @Functions In WebMatrix
- The difference between data references and field symbols
- Difference between WCF and Web API and WCF REST and Web Service