Dim loHttpResponse As System.Web.HttpResponse = Nothing loHttpResponse = System.Web.HttpContext.Current.Response loHttpResponse.Clear() loHttpResponse.ClearContent() loHttpResponse.ClearHeaders() loHttpResponse.ContentType = "text/xml" loHttpResponse.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8") loHttpResponse.Write(cXml) loHttpResponse.End()This takes over the response and sends some data.
loHttpResponse.Write("test")
...I can see the client reacting and saying that this has to be text/xml content.