Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 277759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T01:07:44+00:00 2026-05-12T01:07:44+00:00

What are DataContracts in WCF ? I have an XML file , how can

  • 0

What are DataContracts in WCF ?
I have an XML file , how can I create a DataContract for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T01:07:45+00:00Added an answer on May 12, 2026 at 1:07 am

    The DataContract is how you specify the format of the data that your service will provide/accept.

    If you’re used to working with .NET 2.0 Web Services and are familiar with the WSDL, you can think of it another way. The WSDL is primarily composed of two seperate WCF concepts:

    The ServiceContract would compose the part of the WSDL that specified the service’s endpionts.

    The DataContract would compose the part of the WSDL that specified the format of the data to be passed in and returned from the service.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using WCF's DataContract and DataContractSerializer to read/write objects to XML files. We
Is DataContract attribute is deprecated in ASP.NET 4.0 WCF ? I can see only
I have a WCF service and cannot use DataContracts since I need more control
I've been tasked with writing a WCF service. (have not done this before.) I've
I have converted my web service to wcf service which has some datacontracts. As
This is making me crazy... I'm trying to have a custom WCF auth token
Can anyone explain how to control the XML generated ? I have a simple
I have WCF rest service returning XML/RSS feeds. Some methods return data contracts, some
I have a WCF service which basically returns [DataContract(IsReference = true)] public class Person
This is real simple. I have a wcf service (nothing fancy, just New Project->

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.