I put together a simple REST service in WCF as such:
....
[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "{uid}/{pwd}/{exrcsPrgmId}/{exchEnum}")]
string GetLiftDataExchange(string uid, string pwd, string exrcsPrgmId, string exchEnum);
....
When calling it however I do not get back XML exactly. I get HTXML (my own made up acronym)
Instead of what I expect:
<Exercise>
<AccountName>Joe Muscle</AccountName>
<UserID>8008008</UserID>
I get the XML with html encoding:
<Exercise>
<AccountName>John Bonner</AccountName>
<UserID>8008008</UserID>
In other words I have no need to see this data in the browser instead it will be accessed and parsed in an application so straight up XML will work just fine.
What am I doing wrong with the service decorations to return this encoded xml?