I have a need to specify a custom response header from code when my web service is called. I know that from an ASPX page, you can easily modify response headers, but it is not so obvious from withing an ASMX page. Any help would be appreciated.
Printable View
I have a need to specify a custom response header from code when my web service is called. I know that from an ASPX page, you can easily modify response headers, but it is not so obvious from withing an ASMX page. Any help would be appreciated.
Try something like
context.Response.Headers.Add(............)
That adds response headers. If you want Soap Headers, look at this