我正在使用带有SOAP消息体系结构的WCF。我的服务使用BasicHttpBinding来传输我的SOAP消息。我需要向HTTP响应中添加2个不同的HTTP标头(来源和缓存控件)。我知道在启用aspNetCompatibilityEnabled的情况下可以在Global.asax文件中执行此操作,但是存在一个问题-我正在使用Windows服务托管WCF。aspNetCompatibilityEnabled仅在IIS下有效。有人可以帮助我解决问题吗?
c# wcf soap web-services
c# ×1
soap ×1
wcf ×1
web-services ×1