Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,

I have a small doubt on below point. I come across the below point while while learning WCF Vs Web Service, but am not able to understand how this can be done practically.


(1)Web services are not flexible. Where as WCF services are flexible. If you make a new version of the Service then you need to just expose a new end. Therefore, service are agile and which is a very practical approach looking at the current business trends.

This means Web service can't be updated to newer version(Client can update the webservice right?)

Can anybody explain this with a practical example...
Posted
Updated 30-Jun-12 20:23pm
v3

1 solution

In simplest terms, WCF can do everything Web Services can do and WCF can do even more. Web services are easy to develop, but the only do a limited set of data transports and methods. WCF has a wide range of web standard and .NET-specific transports that can be used in combination. Here is an article that will help you out:

What's the Difference between WCF and Web Services?[^]

Even though Web Services are easier to do, unless you are comfortable locking yourself into one way of doing things, go with WCF. You can still do what the Web Services would have done for you but now you can be more flexible for the future. For example, I recently created a WCF service at work. Right now, all of our clients are using HTTPS to connect to it for testing. However, once we deploy it live, we will use Named Pipes since it is much faster (WCF and the front-end will be on the same server). However, down the road I am planning for us to provide access to the WCF service to mobile clients directly. This would mean adding HTTPS access. To do so, it will simply require us to add info to the config file. A five-minute change will allow us to provide different access to different clients.
 
Share this answer
 

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