I have an ASP.NET WCF .svc interface which is accepting a POSTed form. I cannot control the POSTing client at all (which happens to be the IBM Lotus Forms Viewer application), but its behavior is that it POSTs itself to a URL of my choosing and the response is popped up in Internet Explorer as a locally served temporary file with an extension controlled by the mime-type.
I am new to WCF REST services, but I am having a hard time controlling the response, which keeps getting wrapped in XML tags. Is there a way to turn off all output wrapping and control exactly what is returned from the WCF operation?
I can point the form to something other than a WCF service (like an .aspx file), but I thought it would be useful at least to learn how the formatting is controlled before I made that decision.
[EDIT] For clarification, my current service interface prototype looks like this:
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "/AF1067/SubmitForm",
BodyStyle = WebMessageBodyStyle.Bare)]
public string AF1067_SubmitForm(System.IO.Stream fileContents) { ... }
[EDIT] User @Kon found this link which had the answer -- if I return a System.IO.Stream, the response will stop being wrapped.