I'm passing the following data in to a Web API. When it gets to my API call I have the "Client" section of the data and I have the "Status" container but it has no information in it.
<Client>
<ContactNumber>1</ContactNumber>
<Name>Test Name</Name>
<ProcessLevel>Complete</ProcessLevel>
<ResponseLevel>Minimal</ResponseLevel>
</Client>
<Status>
<MyId>010111111</MyId>
<MyId>010122211</MyId>
</Status>
The class that I am expecting on the web API:
public partial class StatusRequest
{
public StatusRequest()
{
this.Client = new Client();
this.Status = new List<string>();
}
public Client Client { get; set; }
[XmlArrayItem("MyId")]
public List<string> Status { get; set; }
}
The results come in as
<Client>
<ContactNumber>1</ContactNumber>
<Name>Test Name</Name>
<ProcessLevel>Complete</ProcessLevel>
<ResponseLevel>Minimal</ResponseLevel>
</Client>
<Status></Status>
What am I missing? Why is the Status section empty?