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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:56:00+00:00 2026-05-13T11:56:00+00:00

I have a POST with a WebMessageFormat.Xml. It’s a simple method that takes in

  • 0

I have a POST with a WebMessageFormat.Xml. It’s a simple method that takes in a Company object. Aside from simple types containing “CompanyId”, “CompanyName”, “CompanyDescription etc., inside the XML there is a series of the same element containing tons of metadata involving contacts. I wanted to pop that into a List.

[DataContract(Namespace = "http://www.testcompany.com/2010/01")]
public class Company
{
     ...
     ...
     [DataMember] public List<CompanyContact> CompanyContacts;
}

The request goes through fine but the list is empty. The other fields are populated from the request without issue. Any ideas of what step I’m missing?

Here’s a snapshot of my svc file:

<%@ ServiceHost Language="C#" 
                Debug="true" 
                Service="CompanyService"
                Factory="Microsoft.ServiceModel.Web.WebServiceHost2Factory"%>

Using the “/help”, I doubled checked the schema I’m passing in with the examples provided by the help page.

Any suggestions would be appreciated!

  • 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-13T11:56:00+00:00Added an answer on May 13, 2026 at 11:56 am

    Still reviewing the demo code I created but the issue was resolved. I created a Contact class for all the metadata in the XML. I added a List to the Company object. I wrote the XML and created a request through Fiddler. Everything worked accordingly.

    Now I’m going back to my original app to see if I can track why the collection is empty. I need to review that the XML is correct and that my data contracts are proper.

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

Sidebar

Ask A Question

Stats

  • Questions 317k
  • Answers 317k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Difference between DELETE and DROP commands Delete: The DELETE command… May 13, 2026 at 11:41 pm
  • Editorial Team
    Editorial Team added an answer I would suggest you have a class representing a site,… May 13, 2026 at 11:41 pm
  • Editorial Team
    Editorial Team added an answer Charlie Griefer probably has the best documented tutorial on this… May 13, 2026 at 11:41 pm

Related Questions

I have a C# WCF REST Service which allows the addition of a bookmark,
I'm truly stumped. I've tried every tool imaginable, checked every resource I can, and
I have a Web site with a message board. The board lets people post
I have a simple C (of CRUD) function, and I'd like to send a
I have a project with a post build event: copy $(ProjectDir)DbVerse\Lunaverse.DbVerse.*.exe $(TargetDir) It works

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.