We use custom serialization schemas for xml serialization of our objects. I have a WCF REST Service written with the WCF Service Tempalte. I want to return our custom XML from this method however when i set the return to string, I instead get this :
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">
<?xml version="1.0" encoding="utf-16"?><ReportResponse><Status>Success</Status><Url>http://pictor.blob.core.windows.net/pictor/ServiceTest.pdf</Url><ReportRequestId>00000000-0000-0000-0000-000000000000</ReportRequestId></ReportResponse>
</string>
As you can see my xml is wrapped in a html encoded string.. How do i return the appropriate xml response ?