Difference between Web services and WCF

5 pts.
Tags:
.NET
.NET development
WCF
Web services
Windows Communication Foundation
What is the difference between WCF and Web Services in .NET? Why are we using WCF in place of WebServices?

Answer Wiki

Thanks. We'll let you know when a new response is added.

<b>Windows Communication Foundation (WCF) has an ASP.NET compatibility mode option to enable WCF applications to be programmed and configured like ASP.NET Web services, and mimic their behavior.

Major Difference is That Web Services Use XmlSerializer But WCF Uses
DataContractSerializer which is better in Performance as Compared to XmlSerializer.
Key issues with XmlSerializer to serialize .NET types to XML

* Only Public fields or Properties of .NET types can be translated into XML.
* Only the classes which implement IEnumerable interface.
* Classes that implement the IDictionary interface, such as Hash table can not be serialized.

Important difference between DataContractSerializer and XMLSerializer.

* A practical benefit of the design of the DataContractSerializer is better performance over Xmlserializer.
* XML Serialization does not indicate the which fields or properties of the type are serialized into XML where as DataCotratSerializer Explicitly shows the which fields or properties are serialized into XML.
* The DataContractSerializer can translate the HashTable into XML.</b>

<img src=”http://keithelder.net/blog/images/keithelder_net/blog/WindowsLiveWriter/WCFvsASMXWebServices_ABC2/image_6.png” alt=”What WCF Can Replace?” />

More thing we can host the WCF services in number of hosting applications, unlike Asp.net webservices, which support only iis hosting.

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Srikyan06
    web service can have only one end point. but WCF have multiple end points to communicate with the source.
    10 pointsBadges:
    report
  • KishITKT
    more secure, fault / error configuration
    15 pointsBadges:
    report
  • WCFF
    Web services can only be invoked by HTTP. While Service or a WCF component can be invoked by any protocol and any transport type. Second web services are not flexible. But Services are flexible. If you make a new version of the service then you need to just expose a new end point. So services are agile and which is a very practical approach looking at the current business trends. For more details please check out this link... http://mindstick.com/Interview/252/What%20is%20the%20difference%20WCF%20and%20Web%20services
    10 pointsBadges:
    report
  • Fff
    Asp.net web services can use only HTTP chanenel. Not supports msmq and tcp binding... WCF is flexible because its services can be hosted in different types of applications. The following lists several common scenarios for hosting WCF services: IIS WAS Self-hosting Managed Windows Service WCF = Web services + .Net Remoting + MSMQ + (COM+
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following