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 6920697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:10:51+00:00 2026-05-27T10:10:51+00:00

Is there any way to enable a WCF service to accept a request where

  • 0

Is there any way to enable a WCF service to accept a request where order is not significant i.e. can you send in the following and get it to deserialise correctly:

<Request>
   <Field1>Val1</Field1>
   <Field2>Val2</Field2>
   <Field3>Val3</Field3>
</Request> 

or

<Request>
   <Field3>Val3</Field3>
   <Field1>Val1</Field1>
   <Field2>Val2</Field2>
</Request>

or

<Request>
   <Field2>Val2</Field2>
   <Field3>Val3</Field3>
   <Field1>Val1</Field1>
</Request> 

etc …

I know the default behaviour of the data contract serialiser but can I get it to ignore the order altogether? Do I need a different/custom serialiser?

I cant seem to find a definitive answer anywhere.

Cheers,
Billy

  • 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-27T10:10:53+00:00Added an answer on May 27, 2026 at 10:10 am

    If you use the DataContractSerializer Your xml must be in a defined order. Either through the default which is alphabetical. Or through the order you define decorating your members of your definition.

    If you attempt to deserialize some xml and it is in the wrong order, it will only deserialize values which are to the serializer, in the correct place.

    If you use the XMLSerializer instead, this does not rely on the xml being in an order and will deserialize if it finds the correct nodes which is the behaviour you seem to want.

    Have a look at this tutorial on the XmlSerializer as an example.

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

Sidebar

Related Questions

Is there any way we can enable highcharts to display marker value at all
Is there any way to know in Servlet is JS is enable or not
Is there any way to enable horizontal scroll-bar whenever necessary? The situation was as
I am display text in UIWebview as there any way to enable user to
is there any way how to enable Eclipse to show hints for parameters of
Is there any way I can set a formatter on models that will convert
Is there any way we can fetch X509 Public Cetrificates using c# from AD
Is there any way to enable or disable a SQL SERVER trigger programmatically in
Is there any way to enable JavaScript on the client machine using PHP?
Is there any way to enable execution-time variable expansion for cmd.exe (normally done by

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.