When would I use Serializing/Deserializing in .Net WCF?

Posted on 2012-09-02
Last Modified: 2012-09-02

I'm relatively new to the world of WCF and have been working through several online tutorials.

Currently, I'm looking at the aspect of serialization/deserialization and am trying to get my head around it. So far I've been using basic DataContracts and passing objects directly in my WCF service calls.

WCF provides the ability to serialize/deserialize objects (DataContract & XML).

It's not clear to me as to why I would need to do this.
In what instances would I need to do this?
What are the benefits of doing this?

Any overview would be awesome.

Question by:jxbma
    LVL 43

    Expert Comment

    When you want to save (objects) to a file or read from a file for instance.
    LVL 1

    Author Comment

    I mean more specifically in terms contracts, schemas and/or messages in the WCF service/client architecture.
    LVL 29

    Accepted Solution

    Have a look at the topic. It also contains a reference to a good article.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now