将 Wcf 与 gzip 压缩结合使用

发布于 2025-01-01 16:47:00 字数 126 浏览 3 评论 0原文

我们有一个需要大量数据的wcf服务。作为要求,我们希望对请求对象进行 gzip 压缩并使用相同的压缩响应它们。我该怎么做?我找不到任何描述这个问题的文档。

我如何开发一个像这样工作的 wcf 肥皂服务以及如何使用这种服务?

We have a wcf service that takes large amount of data. As a requirement we want to take the request objects gzipped and response them using the same compression. How can I do this? I couldn't find any document describing this issue.

How can I develop a wcf soap service that works like that and how to consume this kind of services?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

高速公鹿 2025-01-08 16:47:00

Microsoft 有一个示例演示了这一点(您可以编译他们的代码,然后将其插入您的应用程序)

GZip 编码器示例

这里的 WCF/WF/Cardspace 示例中有一个更完整的示例:

Windows Communication Foundation 示例

如果您查看 WCF /Extensibility/MessageEncoder/Compression,有一个更完整的示例,其中包含示例客户端和服务器

Microsoft has a sample that demonstrates this (you can compile their code, and simply plug it into your application)

GZip Encoder Sample

There is a more complete sample in the WCF/WF/Cardspace samples here:

Windows Communication Foundation Samples

If you look in WCF/Extensibility/MessageEncoder/Compression, there is a more complete sample with an example client and server

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文