.net - Visual Studio/SOAP - 'Add Service Reference' vs 'Add Web Service Reference' -
I have found that I can import a SOAP / WSDL service which I call "a web service reference" in my solution System web services) or "service reference" (system. Service model / WCF).
I was wondering what was the difference. I understand that 'Add Service Reference' / WCF is new, it can be used to use any harm to the system. Web. Is the preferred mode of service or SOAP services in the net now? met?
The preferred and most useful way is to actually use add a service reference
. This will add your service as a WCF client side proxy.
Add Web Reference
Things to do is "old-style" ASMX / ASP.NET webservice way.
WCF is a better choice than ASMX because:
- It is new and will be supported in the future (ASMX is exiting); If you learn it now, you will have to learn it later when the ASMX has gone definitely
- It provides more flexibility in every aspect
- You only have one ASMX IIS can host the service, using HTTP as your protocol; WCF can be hosted in ICS; Self hosted in a Windows NT service; WCF can use HTTP, NetTCP, MSMQ and many other protocols
- WCF provides more security and other settings, makes it more powerful to use
Yes, there is a bad rap about being really tough to learn WCF - I'm not really getting this truth. Check out the initial resources - really useful!
- Everything from the Beginner's tutorial to the article and the sample code
- - All the way to "" and "
- Dotnet Rocks TV Show # 122:
- Dotnet Rocks TV Show # 135:
- ul >
Comments
Post a Comment