So I have a wcf service that is using soap requests to return data. This data is returned in xml format. What I was wanting to do was add attributes to the returned xml for a certain class.
For example
public class CustomClass
{
private string key = "testKey";
private string value = "100";
}
Would be returned as
<CustomClass key="testKey">100</CustomClass>
I have been looking around but cant find a solid answer.