如何启用为POST(上传)请求到SOAP的WebService的IIS 7 GZIP COM pression? [英] How do I enable GZIP compression for POST (upload) requests to a SOAP WebService on IIS 7?

查看:209
本文介绍了如何启用为POST(上传)请求到SOAP的WebService的IIS 7 GZIP COM pression?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启用COM pression上传到一个.NET的WebService(SOAP,而不是WCF)发布的数据?我认为这将是一个简单的事情能够在IIS动态COM pression 但启用后,这只是COM pressing在响应,而不是POST 请求即可。

How can I enable compression for POSTed data uploaded to a .NET WebService (SOAP, not WCF)? I thought it would be a simple matter of enabling dynamic compression in IIS but after enabling, it's only compressing the response, not the POST request.

我添加它作为一个服务引用,我无法找到生成的SOAPClient任何设置,使请求的COM pression。

I've added it as a Service Reference and I can't find any settings on the generated SOAPClient to enable compression of requests.

看来我可能把它发送到服务器之前丢失PSS请求的客户端配置设置或code到COM $ P $?或者是我想要做的(使用gzip压缩POST数据),即使不支持?

It seems I might be missing a configuration setting or code on the client side to compress the request before sending it to the server? Or is what I'm trying to do (GZipping POST data) not even supported?

进一步信息:我使用.NET 4.0的客户端和服务器上

Further info: I'm using .NET 4.0 on the client and server.

推荐答案

我已经在博客上3年前

<一个href=\"http://netpl.blogspot.com/2009/07/aspnet-webservices-two-way-response-and.html\">http://netpl.blogspot.com/2009/07/aspnet-webservices-two-way-response-and.html

我不知道为什么你有没有发现这个google搜索所。无论如何,这应该为你工作,我们有它在生产环境中工作4年了。

I wonder why you haven't found this by googling. Anyway, this should work for you, we have it working in a production environment for 4 years now.

这篇关于如何启用为POST(上传)请求到SOAP的WebService的IIS 7 GZIP COM pression?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆