We're switching from a legacy app written in ColdFusion to an ASP.Net Web Forms application. One requirement is to move over the legacy web service. The address can change, but the format of the input and responses have to be the same. I'm relatively new to web services, but I know that there are both SOAP and JSON output formats for a .Net web service (maybe others). But neither of these are workable.
I need to have complete control over the response given. If I were doing it with an .ASPX page, I would just write the legacy repose into a string, clear the Response and then add that string to the Response and call Response.End.
Is there something similar for a .ASMX?
Is there a smarter way to do it and still be able to integrate with the rest of the ASP.Net web application's code base?