I have a WCF service with a DataContract, "Employee". In my service, I create some employee instance and add them into an ArrayList, "Employees"; and then I serialize the ArrayList; the issue is that xml tag is not my expected, the output as follow:
<anyType d2p1:type="Employee" xmlns:d2p1="http://www.w3.org/2001/XMLSchema-instance">............</anyType>
My expected output should be:
If I use an Array Employee instead of ArrayList in my service, the output is exactly what I expected.
Is there any way to make ArrayList output same as Array?
View Complete Post