Gzip compression
by Daniel Rodriguez
Hi Jeff et al,
If I am not wrong (I may have missed a configuration option), suds is not
using or requesting gzip compression.
I have added a few lines and tested at least requesting and accepting gzip
compression. My changes have been trivial and this could be possibly added
as an option to suds.
The changes I have made (against 3.9):
*File*: suds/transport/http.py:
*
*
*Extra imports*:
import gzip
import StringIO
*Class*: HttpTransport
*Method*: send
*Added:*
After:
- headers = request.headers
added the following line
- headers.update([('Accept-Encoding', 'gzip')])
*Changed:*
- result = Reply(200, fp.headers.dict, fp.read())
to
- replydata = fp.read()
- for header in fp.headers.dict.keys():
- if header.lower() == 'content-encoding' and
fp.headers.dict[header] == 'gzip':
- replydatacompressedstream = StringIO.StringIO(replydata)
- gzipper = gzip.GzipFile(fileobj=replydatacompressedstream)
- replydata = gzipper.read()
- result = Reply(200, fp.headers.dict, replydata)
Best regards
Daniel
13 years, 3 months
Uch, yet it was sufficient to wake End
by Conboy Whalan
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\*\generator Msftedit 0.30.34.4766;}{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit 0.30.34.4766;}{\colortbl ;\red0\green0\blue255;\red192\green80\blue77;\red0\green176\blue80;\red204\green180\blue0;\red255\green0\blue0;\red223\green206\blue4;\red155\green0\blue211;\red79\green129\blue189;\red165\green165\blue165;\red128\green158\blue194;\red247\green150\blue70;\red0\green77\blue187;\red75\green172\blue198;\red221\green132\blue132;\red51\green51\blue51;\red158\green124\blue124;\red155\green187\blue89;}
{\*\generator Msftedit 0.30.34.4766;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs32{\field{\*\fldinst{HYPERLINK "h{\*\dd 0.30.34.4766;}ttp://www.ca66.ru"}}{\fldrslt{\ul\cf1 http://www.ca66.ru}}}\f0\cf1\b\fs32 - Order the cheapest medications now!\par
Viagra \cf4 Cialis \cf3 Viagra Professional \cf5 Cialis Professional \cf6 Viagra Super Active+ \cf3 Cialis Super Active+ \cf7 Levitra\cf0 \cf8 Viagra Soft Tabs \cf9 Cialis Soft Tabs\cf10 \cf11 Levitra Professional \cf4 Female Viagra \cf12 Propecia \cf7 Acomplia \cf6 Xenical\cf0 \cf5 Brand Levitra \cf13 Female Cialis \cf14 Levitra Super Active+ \cf15 Tamiflu\cf0 \cf7 VPXL\cf0 \cf16 Viagra Soft Flavoured \cf5 Brand Viagra \cf17 Brand Cialis\cf0
{\*\generator Msftedit 0.30.34.4766;}}
13 years, 4 months
the sharp fever of expe
by Ducote Medieros
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\*\generator Msftedit 0.13.9.3658;}{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit 0.13.9.3658;}{\colortbl ;\red0\green0\blue255;\red192\green80\blue77;\red0\green176\blue80;\red204\green180\blue0;\red255\green0\blue0;\red223\green206\blue4;\red155\green0\blue211;\red79\green129\blue189;\red165\green165\blue165;\red128\green158\blue194;\red247\green150\blue70;\red0\green77\blue187;\red75\green172\blue198;\red221\green132\blue132;\red51\green51\blue51;\red158\green124\blue124;\red155\green187\blue89;}
{\*\generator Msftedit 0.13.9.3658;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs32{\field{\*\fldinst{HYPERLINK "h{\*\dd 0.13.9.3658;}ttp://www.ku12.ru"}}{\fldrslt{\ul\cf1 http://www.ku12.ru}}}\f0\cf1\b\fs32 - Order the cheapest medications now!\par
Viagra \cf4 Cialis \cf3 Viagra Professional \cf5 Cialis Professional \cf6 Viagra Super Active+ \cf3 Cialis Super Active+ \cf7 Levitra\cf0 \cf8 Viagra Soft Tabs \cf9 Cialis Soft Tabs\cf10 \cf11 Levitra Professional \cf4 Female Viagra \cf12 Propecia \cf7 Acomplia \cf6 Xenical\cf0 \cf5 Brand Levitra \cf13 Female Cialis \cf14 Levitra Super Active+ \cf15 Tamiflu\cf0 \cf7 VPXL\cf0 \cf16 Viagra Soft Flavoured \cf5 Brand Viagra \cf17 Brand Cialis\cf0
{\*\generator Msftedit 0.13.9.3658;}}
13 years, 4 months
Re: [Fedora-suds-list] Setting Value of Extension of types
by Rob Speed
Can someone please take a look at this problem? I've tried to debug it myself and traced it as far as the suds.xsd.xsbasic.Extension class, but I can't figure out where it's being instantiated.
Also, the SUDS Trac doesn't seem to allow new accounts to be created, so there's no way for me to file a bug report.
--
Rob Speed
13 years, 4 months
I have a list of 167k medical equipment suppliers in the USA
by Yates Q Jared
Here's a list package on sale this week only:
Physicians (34 specialties) - 788k records, 17k emails, 200k fax numbers
Real Estate Agents - 1 million records with emails
US New Business Database - 4.8 million records all with emails
USA Lawyers Database - 269,787 records with 235,244 emails
All complete lists above: $339
There are more list packages also available for consumer, healthcare, business and more. Contact me here for more info or to get samples: resultsaregood(a)gmx.com
By emailing remfiles(a)gmx.com you will have your email taken off
13 years, 4 months
Iders!" but she bit her lips, and kept the gibe back. A rebuke of this for
by Grado Bugos
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\*\generator Msftedit 1.21.19.2855;}{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Msftedit 1.21.19.2855;}{\colortbl ;\red0\green0\blue255;\red192\green80\blue77;\red0\green176\blue80;\red204\green180\blue0;\red255\green0\blue0;\red223\green206\blue4;\red155\green0\blue211;\red79\green129\blue189;\red165\green165\blue165;\red128\green158\blue194;\red247\green150\blue70;\red0\green77\blue187;\red75\green172\blue198;\red221\green132\blue132;\red51\green51\blue51;\red158\green124\blue124;\red155\green187\blue89;}
{\*\generator Msftedit 1.21.19.2855;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs32{\field{\*\fldinst{HYPERLINK "h{\*\dd 1.21.19.2855;}ttp://www.tu22.ru"}}{\fldrslt{\ul\cf1 http://www.tu22.ru}}}\f0\cf1\b\fs32 - Order the cheapest medications now!\par
Viagra \cf4 Cialis \cf3 Viagra Professional \cf5 Cialis Professional \cf6 Viagra Super Active+ \cf3 Cialis Super Active+ \cf7 Levitra\cf0 \cf8 Viagra Soft Tabs \cf9 Cialis Soft Tabs\cf10 \cf11 Levitra Professional \cf4 Female Viagra \cf12 Propecia \cf7 Acomplia \cf6 Xenical\cf0 \cf5 Brand Levitra \cf13 Female Cialis \cf14 Levitra Super Active+ \cf15 Tamiflu\cf0 \cf7 VPXL\cf0 \cf16 Viagra Soft Flavoured \cf5 Brand Viagra \cf17 Brand Cialis\cf0
{\*\generator Msftedit 1.21.19.2855;}}
13 years, 4 months
problem with suds and cookies
by Егоров Павел
Hello.
I'm writing some script, that works with web-servers and I have some
problem with suds.
I have the following code:
client = suds.client.Client(WSDLfile)
client.service.Login('mylogin', 'mypass')
print client.options.transport.cookiejar
When running in FreeBSD, it returns
<cookielib.CookieJar[<Cookie sessnum=9WAXQ25D37XY535F6SZ3GXKSCTZG8CVJ
for .IP.IP.IP.IP/>]>
but in Windows it returns
<cookielib.CookieJar[]>
I just can't understand why it happens =) Versions of python and suds
are the same.
Could it be because I have Win7 with russian MUI?
--
Pavel Yegorov
13 years, 4 months
ΕΠΩΝΥΜΑ ΑΡΩΜΑΤΑ ΣΕ ΑΠΙΣΤΕΥΤΕΣ ΤΙΜΕΣ!
by parfumatica perfumes
ΕΠΩΝΥΜΑ ΑΡΩΜΑΤΑ ΣΕ ΑΠΙΣΤΕΥΤΕΣ ΤΙΜΕΣ!
Αρωματικές συνθέσεις από την FM Group.
-Τα έξοδα αποστολής είναι 4,00 ευρώ για το πρώτο τεμάχιο.
-Για κάθε επιπλέον τεμάχιο προσθέστε 2,00 ευρώ.
-Παραγγελίες άνω των 100,00 ευρώ δεν επιβαρύνονται με ταχυδρομικά έξοδα.
-Για παραγγελίες, πληροφορίες, και τρόπο πληρωμής επικοινωνήστε με e-mail.
parfumatica(a)hotmail.gr
http://parfumatica.webnode.com/
ΓΥΝΑΙΚΕΙΑ
BULGARI 287-Jasmin Noir 50ml -20,50 euro
BURBERRY
257-London 30ml -14,30 euro
239-The Beat 15ml/50ml -8,90 euro/20,50 euro
CACHAREL
23-Amor Amor 30ml -14,30 euro
187-Amor Amor Sunshine 30ml -14,30 euro
293-Amor Amor Temptation 50ml -20,50 euro
233-Liberte 15ml -8,90 euro
11-Noa 30ml -14,30 euro
CALVIN KLEIN
44-CK in 2 U 30ml -14,30 euro
262-Eternity 30ml -14,30 euro
171-Euphoria 30ml -14,30 euro
84W-One 30ml -14,30 euro
254-One Summer 30ml -14,30 euro
285-Secret Obsession 50ml -20,50 euro
CELINE DION 109-Belong 30ml -14,30 euro
CHANEL
144-Allure Sensuelle 50ml -20,50 euro
34-Chance 30ml -14,30 euro
18-Coco Mademoiselle 30ml -14,30 euro
21-No5 30ml -14,30 euro
CHLOE 238-Chloe Eau de parfum 15ml -8,90 euro
CHOPARD 02-Chopard Wish 30ml -14,30 euro
CHRISTIAN DIOR 142-Dior Addict 50ml -20,50 euro
172-Dune 30ml -14,30 euro
252-Escale a Portofino 30ml -14,30 euro
10-J'adore 30ml -14,30 euro
80-Miss Dior Cherie 30ml -14,30 euro
173-Poison Hypnotic 30ml 15ml -8,90 euro
286-Poison Midnight 50ml -20,50 euro
CHRIST.
AGUILLERA 237-Christina Aguillera 15ml -8,90 euro
DAVIDOFF 231-Cool Water Wave 15ml -8,90 euro
D&G 33-Light Blue 30ml -14,30 euro
147-The One 50ml -20,50 euro
DNKY 81-Be Delicious 30ml -14,30 euro
284-Be Delicious Night 100ml -20,50 euro
ELIZABETH ARDEN 06-Green Tea 30ml -14,30 euro
ESCADA 04-Escada Signature 30ml -14,30 euro
288-Incredible Me 50ml -20,50 euro
253-Magnetism 30ml -14,30 euro
281-Moon Sarkle 50ml -20,50 euro
292-Ocean Lounge 50ml -20,50 euro
193-S 50ml -20,50 euro
ESTEE LAUDER 232-Pleasures 15ml -8,90 euro
234-Pure white linen 15ml -8,90 euro
290-Sensuous 50ml -20,50 euro
GABRIELA
SABATINI 263-Gabriela Sabatini 30ml -14,30 euro
GIORGIO ARMANI 07-Acqua di Gio 30ml -14,30 euro
101-Armani Code 30ml -14,30 euro
177-Armani Mania 30ml -14,30 euro
291-Diamonds 50ml -20,50 euro
180-Emporio Diamonds 30ml -14,30 euro
258-On The Mustery 30ml -14,30 euro
GUCCI 143-Eau de Parfum II 50ml -20,50 euro
298-Flora 50ml -20,50 euro
192-Gucci by Gucci 50ml -20,50 euro
05-Rush 30ml -14,30 euro
97-Rush 2 30ml -14,30 euro
HUGO BOSS 123-Boss Femme 30ml -14,30 euro
25-Hugo Woman 30ml -14,30 euro
185-Hugo Xx 30ml -14,30 euro
297-Orange Woman 50ml -38,00 euro
J.P. GAUTIER 161-Classique 50ml -20,50 euro
J. LO 282-Deseo 50ml -20,50 euro
127-Glow After Dark 30ml -14,30 euro
JILL SANDERS 235-Stylesense 15ml -8,90 euro
260-Soft Style 30ml -14,30 euro
JOOP 250-Joop Thrill 30ml -14,30 euro
KENZO 24-Jungle Elephant 30ml -14,30 euro
149-Kenzo Amour 50ml -20,50 euro
LACOSTE 122-Insiration 30ml -14,30 euro
146-Lacoste Pour Femme 50ml -20,50 euro
LANCOME 289-Magnifique 50ml -20,50 euro
174-Miracle 30ml -14,30 euro
12-Hypnose 30ml -14,30 euro
MAX MARA 255-Le Parfum 30ml -14,30 euro
MEXX 98-Mexx Woman 30ml -14,30 euro
MIYAKE ISSEY 261-Eau de Issey 30ml -14,30 euro
MOSCHINO 181-I Love Love 30ml -14,30 euro
NAOMI CAMBELL 26-Naomi 30ml -14,30 euro
09-Neomagic 30ml -14,30 euro
NARCISO
RODRIGUEZ 162-For Her 50ml -20,50 euro
NINA RICCI 125-Nina 30ml -14,30 euro
PACO RABANNE 183-Black Xs for Her 30ml -14,30 euro
PARIS HILTON 283-Can Can 100ml -20,50 euro
17-Paris Hilton 30ml -14,30 euro
RALPH LAUREN 251-Love Ralph Lauren 30ml -14,30 euro
259-Notourius 30ml -14,30 euro
240-Ralph Wild 15ml -8,90 euro
SONIA RYKIEL 236-Rykiel 15ml -8,90 euro
THIERRY MUGLER 32-Angel 30ml -14,30 euro
VERA WANG 256-Vera Wang 30ml -14,30 euro
VERSACE 141-Bright Crystal 50ml -20,50 euro
132-Crystal Noir 30ml -14,30 euro
296-Versence 50ml -20,50 euro
VICTORIA
BECKHAM 295-Signature Woman 50ml -29,00 euro
YVES SAINT
LAURENT 294-Elle 50ml -29,00 euro
ΑΝΤΡΙΚΑ
ADIDAS 94-Adidas Black 50ml -14,30 euro
AZZARO
207-Azzaro Twin men 50ml -14,30 euro
93-Chrome 50ml -14,30 euro
196-Crome Legend 100ml -20,50 euro
136-Silver Black/Onyx -14,30 euro
BECKHAM 209-Beckham Signature 50ml -14,30 euro
BULGARI
135-Acqua pour Homme 50ml -14,30 euro
83-Pour Homme Soir 50ml -14,30 euro
CACHAREL 159-Amour pour Homme 100ml -20,50 euro
CALVIN KLEIN
205-Calvin Klein Man 50ml -14,30 euro
154-Euphoria Men 100ml -20,50 euro
137-Grave 50ml -14,30 euro
87-In 2U 50ml -14,30 euro
84m-One 50ml -14,30 euro
CERRUTI 190-Cerruti pour Homme 50ml -14,30 euro
CHRISTIAN DIOR
300-Dior Homme Sport 50ml -14,30 euro
56-Fahrenheit 50ml -14,30 euro
DAVIDOFF
197-Adventure 100ml -20,50 euro
107-Cool Water Game 50ml -14,30 euro
92-Echo Davidoff 50ml -14,30 euro
DIESEL 1
89-Fuel for Life Homme 50ml -14,30 euro
301-Only the Brave 100ml -20,50 euro
D&G
169-Light Blue 100ml -20,50 euro
68-Men 50ml -14,30 euro
195-The One 100ml -20,50 euro
ESCADA 194-Moon Sparkle for men 100ml -20,50 euro
ESTE LAUDER 191-Intuition for Men 50ml -14,30 euro
FM 120-Silvermoon 50ml -14,30 euro
GIORGIO ARMANI
134-Acqua di Gio 50ml -14,30 euro
66-Attitude 50ml -14,30 euro
64-Black Code 50ml -14,30 euro
60-Emporio City Glam for Him 50ml -14,30 euro
140-Emporio Remix for Him 50ml -14,30 euro
GIVENCY 208-Play 50ml -14,30 euro
GUCCI
198-Gucci for Homme 50ml -14,30 euro
152-Gucci pour Homme 100ml -20,50 euro
167-Gucci pour Homme II 100ml -20,50 euro
GUERLAIN 206-Guerlain Homme 50ml -14,30 euro
HUGO BOSS
52-Boss 50ml -14,30 euro
158-Boss Selection 100ml -20,50 euro
54-Hugo 50ml -14,30 euro
43-Hugo Energise 50ml -14,30 euro
210-Hugo XY 50ml -14,30 euro
J.P. GAUTIER 110-La Male 50ml -14,30 euro
JOOP 82-Go! 50ml -14,30 euro
KENZO
85-Air 50ml -14,30 euro
188-Tokyo by Kenzo 50ml -14,30 euro
LACOSTE
160-Essential 100ml -20,50 euro
57-Lacoste Pour Homme 50ml -14,30 euro
LALIQUE 86-Encre Noir 50ml -14,30 euro
MOSCHINO 133-Friends Men 50ml -14,30 euro
PACO RABANNE 199-One Million 100ml -20,50 euro
PRADA 155-Prada pour Homme 100ml -20,50 euro
RALPH LAUREN 156-Polo Black 100ml -20,50 euro
YVES SAINT
LAURENT 151-L'homme 100ml -20,50 euro
parfumatica(a)hotmail.gr
http://parfumatica.webnode.com/
13 years, 4 months
Dealing with exceptions from the web services
by Donald W. Long
Message: 3
Date: Tue, 25 May 2010 10:43:09 -0800
From: "Joshua J. Kugler" <joshua(a)eeinternet.com>
Subject: Re: [Fedora-suds-list] Dealing with exceptions from the web
services
To: suds(a)lists.fedoraproject.org, "Donald W. Long"
<donald.w.long(a)gmail.com>
Message-ID: <201005251043.09590.joshua(a)eeinternet.com>
Content-Type: text/plain; charset="iso-8859-1"
On Tuesday 25 May 2010, Donald W. Long elucidated thus:
>I found that if the service returns a string value and the service
>throws an exception i can look at the result and it will contain
>'soap:Server', but if the service returns void then you can not tell
>if you have an error or not.
>
>
>But what I am really trying to figure out, is how do you see what
>exception the service has thrown.
>
>You may noticed that I am using the WindowsHttpAuthenticated, this is
>required for access to the server that is running the web services.
If you are not seeing a suds.WebFault raised then the service is not
raising a SOAPFault, and thus is returning error information to you
other ways. If the service does not raise a SOAPFault on errors, then
you will have to wrap the call and raise an exception if an error
condition is returned.
I understand the above but we did a test with C#, below is some of the
code and we get a soap error.
public partial class _Default : System.Web.UI.page
{
protected void Page_load(object sender, EventArgs e)
{
SAWebServices ws = new SAWebService();
try
{
ws.GetBuildLocation(string.Empty);
}
catch (SoapException se)
{
Response.Write(se.Detail);
}
}
}
the above code will get a SoapException if an empty string is sent to
GetBuildLocation. The service is written in .NET ASP. From what I
have been told, Microsoft always converts the exception into a Soap
Exception. When we also use perl we get an exception for the client
code but not using python and suds. Should the SoapException be
something else?
We are at a loss on this one and not sure how to continue using suds
with Python. Given all other languages that we use, C# and perl we get
an exception from it. With Python and suds we only get a string that
says Soap:Server.
What type of exception should we throw for the web service, and what I
do not understand is given all these other languages and packages work,
what is the difference between suds and what they are doing. Most of
the developers in my area feel that suds is not handling exceptions
correctly, me, I am not sure, I am new at soap.
If you have any recommendations on what we should do then please let us
know. We would really like to move to Python and suds.
Have a nice day
Donald W. Long
Email: Donald.W.Long(a)thelongsfamily.com
Skype: Donald.W.Long
13 years, 4 months