Monthly Archive: February 2019

0

.Net Web API 2 returns query string instead of XML or JSON

public HttpResponseMessage Get(…) { string AllResults = "";   ScanResultModel returnRec;   returnRec = this.Get(…);   AllResults = Helpers.GetXMLFromObject(returnRec);   AllResults = AllResults.Replace("StatusMessage", "STATUS_MSG");   retUrl = retUrl + "?returnXML=" + AllResults;   var...