I'm developing an application that uses webservices in python, both sides (server and client) are developed in Python and uses SOAPpy for the webservices, but, you know, the xml is too verbose, I want to compress it, but as far as I have searched in google I can't find something helpful.
Compressed xml on soappy
526 Views Asked by markuz At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in COMPRESSION
- How to use deflate/inflate SetDictionary with raw deflate/inflate?
- C# How to get file/ copy file from a bzip2 (.bz2) file without extracting the file
- How can I compress four floats into a string?
- Create ZIP File Then Send to Client
- compress json data from rest node.js use express compression
- Advanced Data Compression
- Tools to minify CDD and JS files
- How to use multiple threads for zlib compression (same input source)
- Data compression in RDBMS like Oracle, MySQL etc
- Haskell - Lempel-Ziv 78 Compression - very slow, why?
- Python: how to create tar file and compress it on the fly with external module, using different compression methods not available in tarfile module?
- Why isn't lossless compression automatic on computers?
- PHP Image Compression Before Upload
- Compression of char size integer by removing leading zeroes
- BMP Image Compression and Decompression in java
Related Questions in WEB-SERVICES
- couldn't copy pdb file to another directory while consuming wcf web service
- .net rest service with JSON string and consumed with java client
- How to send Rest GET request that contains "#" value in url parameters?
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- How to use @queryparam when using array in Java
- How to accept cookies when using a webservice - Android?
- zend soap server reading xml attributes
- Web Service Error path property must set before calling the send method
- Error with kSOAP2
- JAX-RS service response is returning double fields without decimal places
- How can I call a ASP.Net webservice using AJAX without calling controller
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- File upload in AXIS2 webservice
- How to route by call method in proxy with WSO2?
- fetch data from web service to dataset in Delphi
Related Questions in SOAPPY
- wsgi + Django: SOAPpy(pyXML) modules Import Error
- How do I check what requests SOAPpy did?
- Installing SOAP for Python
- How can I pass a SSL certificate to a SOAP server using SOAPpy / Python
- I have two http requests in my application, but I want only one use 'http_proxy'
- Can't call a webservice method using SOAPpy
- Is SOAPpy the same thing as SOAPy?
- python soappy add header
- python WSDL.Proxy behind a http proxy
- SOAPpy result to JSON
- Connect to Pythons SOAPpy server with Perls SOAP::Lite
- SOAP methods with point on its name description
- When using soappy SOAPServer, how do I read the request's headers?
- How do I set XML attributes in SOAPpy with python?
- Reading a SOAP header to a SOAPpy response?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can add HTTP headers to SOAPpy call as shown here (this example sends cookies, but you can generalize it to add different headers) -- to request compression, add header
Accept-Encoding: gzip. The web server (not the application server, like your "SOAPpy server" in Python, but the actual HTTP server it runs on top on, e.g. Apache) should provide the compression and have in the response a headerContent-Encoding: gzipto confirm that (if that doesn't work properly, you'll have to subclass the transport class and insert compression there yourself -- I have no SOAPpy installation at hand to check).The missing bit is, how to trick your
SOAPpy.SOAPProxyinto decompression of the payload before further processing -- and the right approach is once again to subclassHTTPTransport, just as for the add-header part; in the URL above, look at the linedata = response.read()and consider checking the headers (to confirm that the content encoding is gzip as required) and decompressing as needed.To deal with gzip compression and decompression, of course, you can use the zlib module of Python's standard library (not the
gzipmodule, which adds tozlibthe header metadata processing to make and read.gzfiles -- you're not dealing with.gzfiles but with streams compressed with thegzipalgorithm, and that'szlib's job).