# Gzip compression with SOAP

**URL:** <https://www.ruby-forum.com/t/gzip-compression-with-soap/180802>\
**Category:** Ruby\
**Created:** [December 29, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/gzip-compression-with-soap/180802 "2009-12-29T15:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fernandosilva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@fernandosilva](https://www.ruby-forum.com/u/fernandosilva)\
**Post date:** [December 29, 2009, 3:17pm UTC](https://www.ruby-forum.com/t/gzip-compression-with-soap/180802/1 "2009-12-29T15:17:01Z")

</div>

Hi everyone.

I was wondering if there was a way to request a compressed XML response  
from a web service. This is a segment of my code, involving contact with  
the WS:

require “soap/wsdlDriver”

factory = SOAP::WSDLDriverFactory.new(url)  
driver = factory.create\_rpc\_driver  
res = driver.Search(ws\_params)

This works fine. However, I would like to speed up my app by using soap  
compression, and so far I haven’t been lucky searching the web for a way  
to do so.  
I hope someone can give me a hand here.  
Thank you very much and regards.
