Suds error
by Remy de Boer
Hi,
I'm trying to connect to the SOAP interface of an innovaphone system.
I'm using the following code to connect to the WSDL file:
from suds.client import Client
> from suds.xsd.doctor import ImportDoctor, Import
> from suds.transport.http import HttpAuthenticated
>
> imp = Import('http://schemas.xmlsoap.org/soap/encoding/')
> imp.filter.add('http://innovaphone.com/pbx')
> imp.filter.add('http://innovaphone.com/binding')
>
> d = ImportDoctor(imp)
> url = 'http://localhost/pbx800.wsdl'
> t = HttpAuthenticated(username='****', password='****')
>
> client = Client(url, transport=t, doctor=d)
>
> print client
> print client.service.Version()
>
The WSDL file I'm using is the same as at:
http://www.innovaphone.com/wsdl/pbx800.wsdl
With the 5th to last line (soap:address location) edited to point to our
PBX server.
running the above script results in the following error:
File "sudstest.py", line 16, in <module>
> print client.service.Version()
> File
> "/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py", line
> 542, in __call__
> return client.invoke(args, kwargs)
> File
> "/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py", line
> 602, in invoke
> result = self.send(soapenv)
> File
> "/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py", line
> 643, in send
> result = self.succeeded(binding, reply.message)
> File
> "/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/client.py", line
> 678, in succeeded
> reply, result = binding.get_reply(self.method, reply)
> File
> "/usr/lib/python2.6/site-packages/suds-0.4-py2.6.egg/suds/bindings/binding.py",
> line 149, in get_reply
> soapenv.promotePrefixes()
> AttributeError: 'NoneType' object has no attribute 'promotePrefixes'
>
When I quote out the "print client.service.Version()" line, it displays all
the methods from the WSDL file, but when I leave it uncommented, the "print
client" line doesn't get printed before the error comes up.
Any idea what's causing this error?
I'm using python version 2.6.6 and suds version 0.4
Thanks in advance!
-Remy
11 years, 9 months
Creating Date
by brian downing
I'm trying to create a date with like: <StartDate>2011-02-15</StartDate>
I did something like:
req = client.factory.create('GetClassSchedulesRequest')
req.StartDate = datetime.date(2011, 11, 19)
result = client.service.GetClassSchedules(req)
And I get the error:
ValueError: <type 'datetime.date'>
If I stop the code before the client.service call and do <print req> the
format is correct.
Brian
11 years, 10 months
SOAP response with attachments
by Karl Putland
I'm trying to talk to a service where the SOAP response is returning
Content-Type: multipart/related. This behavior is documented here
http://www.w3.org/TR/SOAP-attachments
All of the current Python SOAP libraries choke on this behavior. It would
be great if suds could handle Content-Type parsing in the transport
adapters. I'm having difficulty getting my head wrapped around all of the
urllib2 abstractions in transport/http.py.
My best guess is that it needs to happen right before Reply is created, and
that Reply needs to have and attachments[] attribute and probably something
to represent the file.
Thanks,
--Karl
11 years, 10 months
For Sale: MTU 20V1163 - Stork 6TM410 - MAK8M453AK - Nohab F216 Main Engines
by Engine List
If you are not interested in content of this message please kindly reply it with subject "UNSUBSCRIBE"
FOR CONTACT DETAILS CLICK HERE
20-11-2011
Please Re-Send it to Technical Dephartment
Fallowing Engines and Spare Parts For Sale
GENERAL ELECTRIC LM2500 GAS TURBINES VERY LOW RUNNING HOURS 22.2 MW 3 PCS AVAILABLE
MTU
MTU 20V 1163 6700 KW 1260 RPM YEAR OF BUILD 1998 4 PCS AVAILABLE VERY LOW RUNNING HOURS
MTU 16V 595 YEAR OF BUILD 1998 2 PCS AVAILABLE VERY LOW RUNNING HOURS
MTU 12V 396 MARINE ENGINES 1000KW 1800 RPM
MTU 12V 2000 ALL MAJOR SPARES
WARTSILA ENGINES
WARTSILA NOHAB 12V25 COMPLETE SPARE PARTS
2 PCS WARTSILA 8R46 MARINE MAIN PROPULSION ENGINES / 7250 KW AT 500 RPM ( 1992 BUILT BUT NEVER USED)
2 PCS WARTSILA 6R46 MARINE MAIN PROPULSION ENGINES/ 5430 KW AT 500 RPM ( 1992 BUILT BUT NEVER USED)
2 UNIT WARTSILA 8R32 GEN SET COMPLETE /2960 KW AT 720 RPM -6600 V-60HZ-3552KVA (1992 BUILT BUT NEVER USED)
WARTSILA 6R32 MAIN ENGINES
WARTSILA 4R22HF 590 KW 1000 RPM ENGINE
WARTSILA 524TS MARINE GENSETS 3 PCS 50 HZ 645 KVA 380 V
Wartsila 12V32 1985 Year of Build 5500 hp 800 rpm
WARTSILA 26 ONE PCS COMPLETE CYL HEAD - CON ROD AND PISTON
MAK ENGINES
MAK 8M453 AK COMPLETE MAIN ENGINE WITH GEAR BOX 3000 HP 600 RPM 1980 YEAR OF BUILD
MAK 9M 453 AK COMPLETE MAIN ENGINE
MAK 8M32C MAJOR SPARE PARTS ( PISTONS FROM MAHLE - CONROD-CYL HEAD- CRANKSHAFT)
MAK 6M 453 AK COMPLETE MAIN ENGINE
MAK 6M 451 AK MAIN ENGINE
MAK 6MU 451 AK MAIN ENGINES 2 PCS
MAK 9M 453 AK CRANKSHAFT
MAK 9M 551 AK MAIN ENGINE
MAK 9M 452AK Main Engine 2300 PS 450 RPM
MAK 453 AK CYL HEAD - PISTON - LINER - CON ROD - FUEL PUMP AND OTHER SPARES
MAK 551 AK CYL HEAD - LINER - CONROD - PISTON
MAK 451 AK - 452 AK SPARE PARTS
MAK 8M 551 AK CRANKSHAFT AND BED PLATE
MAK 601 AK CYL HEAD - PISTON - LINER - CON ROD AND OTHER SPARES
MAK 6M601 AK CRANKSHAFT + BEDPLATE
MAK 8M601 AK CRANKSHAFT + BEDPLATE
DEUTZ ENGINES
DEUTZ 12M540 MAIN ENGINE 5699HP 600 RPM
DEUTZ BV 12M 628 GENSET 2225 KVA 60 HZ/720 RPM 440V
DEUTZ 12M 628 MAIN ENGINE
DEUTZ 6M540 MAIN ENGINES
MWM DEUTZ TBD 620 V8 950 KW 1800 RPM MARINE GENSETS 1025 KVA 60 HZ 450 V 3 PCS
DEUTZ RBV 6M 545 MAIN ENGINE and Spare Parts
DEUTZ SBA 8M528 MAIN ENGINE 800 HP 750 RPM
DEUTZ RBV 8M545 Main Engine 1320 HP 380 RPM X 3 PCS
DEUTZ 16M 816 1800HP 1800 RPM WITH GEAR BOX 2 PCS
DEUTZ SBV 6M 628 1276 KW 900 RPM 1993 BUILD
DEUTZ SBV 8M 628 MAIN ENGINE 2 PCS 1632 HP 1200 KW 900 RPM
DEUTZ 12M 816 MARINE DIESEL ENGINE
Deutz BF6M716 Marine Genset 296 KW 1500 RPM
DEUTZ 8M358 MAIN ENGINE 2200 HP 320 RPM
DEUTZ 6M 358 COMPLETE MAIN ENGINE
DEUTZ 358 PISTON - LINER - CYL HEAD ETC..
DEUTZ 6M 358 USED CRANKSHAFT
DEUTZ 8M 540 CRANKSHAFT STD
DEUTZ 540 CYL HEAD - PISTON - LINER AND OTHER SPARES
DEUTZ 12M350 FUEL PUMP - 5 PCS COOLED TYPE OF PISTON - 12 PCS COVER - 12 PCS LINER
STORK WERKSPOOR ENGINE AND SPARES
STORK WERKSPOOR 6TM 410 C LL 4000 HP 540 RPM
STORK WERKSPOOR 6TM410 B Main Engine 4000 hp 550 rpm
STORK WERKSPOOR 8TM 410 MAIN ENGINES 3 PCS
STORK WERKSPOOR 6TM 620 USED SPARE PARTS
STORK WERKSPOOR TM410 CYL HEAD - PISTON - CONROD AND ALL OTHER SPARES
STORK WERKSPOOR 6FDHD 240 USED CRANKSHAFT 2PCS STD SIZE
SULZER ENGINE AND SPARES
SULZER 16ZV 40/48 MAIN ENGINE
SULZER 12ASV 25/30 MAIN ENGINES 2 PCS
SULZER 6ASL 25/30 MARINE GENSETS 1100 HP 750 RPM 960 KVA 50 HZ
SULZER 6ZL 40/48 3000 HP 530 RPM Main Engine
SULZER 6AL 25/30 MARINE GENSET Excellent Condition 60 HZ 800 KVA 3 SET AVAILABLE
SULZER NEW 6 ASL 25/30 CYL HEAD COMPLETE:10 PCS
SULZER NEW 6 AL 20/24 CRANK SHAFT :2 PCS
SULZER NEW 8AL 20/24 CRANK SHAFT :1 PC
SULZER NEW 8AL 25 CRANK SHAFT :2 PCS
SULZER NEW AL 20/24 CVYL HEAD /BARE:20 PCS
SULZER NEW AL 20/24 CYL LINER :85 PCS
SULZER 16ZV 40/48 STD SECONDHAND CRANKSHAFT : 1 pc
SULZER 40/48 ALL MAJOR SPARE PARTS PİSTON - LINER - CYL HEAD - CON ROD
Zgoda Sulzer 6-275 A2L Cyl Heads 6 PCS
PIELSTICK ENGINE AND SPARES
PIELSTICK 6PC 2.2 LNR MAIN ENGINES 2 PCS 2208KW 520 RPM
SEMT PIELSTICK 12PC 2.5V MAIN ENGINE 7800 PS 520 RPM
PIELSTICK 16PC 2V-400 COMPLETE MAIN ENGINES 2 PCS 8000 HP 500 RPM
PIELSTICK 12PC 2.5 STD CRANKSHAFT
PIELSTICK PC 2.5 PISTON - LINER - CYL HEAD - CON ROD AND OTHER SPARES
PIELSTICK PC2.6 NEW CYL HEAD 2 PCS
WICHMAN ENGINE
WICHMANN TYPE 5 AX 1250 HP 375 RPM COMPLETE ENGINE
B&W ENGINE AND SPARES
B&W ALPHA 10V 23-U 720 RPM 880 HP
B&W 8T23LH MARINE ENGINES 1240 BHP 825 RPM 1981 YEAR OF BUILD 3 PCS
MAN B&W 6L28/32 GOOD CONDITION GENSET BUILT 1987 1260 KW 720 RPM 1500 KVA 60 HZ
B&W 6S28LH-4 1050 HP 720 RPM Gensets Built 1983 3 PCS 60 HZ 1150 kva
B&W 7L35MC Piston, Liner, Cyl Head , Con Rod
B&W 8L55GFC Secondhand and New Spares Piston, Liner, Cyl Head , Con Rod, and many items....
B&W 50/110 SPARE PARTS
B&W 55GFC- GFCA - 45GF All Major Spare Parts
BERGEN ENGINES
BERGEN LDMB-9 1575 HP 825 RPM
2PCS BERGEN KVMB16 MAIN ENGINES IN GOOD CONDITION 2200KW 825 RPM
BERGEN LDM9 1435 HP 750 RPM
ALLEN ENGINES
ALLEN S12DX-BC MARINE GENSETS 2 PCS 720 RPM 708 BHP
NOHAB POLAR ENGINES
Nohab Polar F24R-D750 Marine Genset 800 HP 750 RPM 625 kva - 50 hz
Nohab Polar SF116 VS Main Engine 2400 HP 750 RPM
NOHAB POLAR F212V 1850 HP 750 RPM MARINE ENGINE 2 PCS
NOHAB POLAR F216V MARINE MAIN ENGINE
NOHAB POLAR SF216 - SF212 - SF112 - SF116 COMPLETE SPARE PARTS..
DAIHATSU ENGINES
Daihatsu 6DS26-F Main Engine
Daihatsu 6DSb-18AF 900 RPM 470 PS Marine Engines
DAIHATSU 6DSM-26 1912 KW 750 RPM
DAIHATSU 6PSHT b-26D COMPLETE ENGINE
DAIHATSU 6PSHT26D COMPLETE ENGINE
DAIHATSU 6DL-22 MARINE GENSET 1986 YEAR OF BUILD 960 PS 900 RPM 800 KVA 60 HZ
DAIHATSU 6PSHTc 26D GENSET 840 PS 720 RPM 2 PCS
MWM ENGINE
SMWM TBD 484-6U COMPLETE ENGINE
MWM TRHS 435 AU SPARE PARTS
MWM TBRHS 345-AU SPARE PARTS
MWM TBD 484-6U 1060 HP 375 RPM COMPLETE MAIN ENGINE
MWM TBD 440 SPARE PARTS FROM 8 CYLINDER ENGINE
MWM D601-D MARINE GENSET 1000 RPM 150 PS 380 V 50 HZ 124 KVA
SKL ENGINES
SKL 6NVD 26A-2 MARINE ENGINE
SKL 8VDS 36/24 A-2 GENSET 2 PCS
SKL 6VDS 48/42 AL-2 MAIN ENGINES 4 PCS
2 x SKL 8VD 36/24 A-1 Genset
SKL 6NVD 36-1U Main Engine
2 x SKL 6VDS 48/42 Al-2
2 x SKL 6 NVD 48 A2U
SKL 6NVD 36-1U Main Engines 2 CPCS
SKL 6NVD 48-2U 485 KW 428 RPM MARINE ENGINE
SKL 8NVD 48A-2U
CATERPILLAR
CATERPILLAR 3508 B 2002 MODEL MARINE GENSET 60 hz
CATERPILLAR 3512B GENSET 60 HZ 1910 bhp 1300 kw year of manufacure: 2003
CATERPILLAR 3512 MAIN ENGINE 2000 MODEL WITH GEAR BOX MAX. ADV. POWER 968 kW 1298 HP MAX. RATED SPEED 1800 RPM MAX. LOW IDLE SPEED 1450 RPM
CAT 3408 GENSET 50HZ 250KW 1500 RPM 318 KVA 255KW
CAT D399 MAIN ENGINE
BLACKSTONE ENGINES
MIRRLEES BLACKSTONE K6MAJOR MAIN ENGINE 3300 HP 550 RPM
LISTER BLACKSTONE ESL8MK2 MAIN ENGINE 1115 HP
LISTER BLACKSTONE ESL8 CRANKSHAFT - BEDPLATE - PISTON
MIRLESS BLACK STONE K 8 MAJOR MK2 SPARES CYL HEAD - PISTON - LINER - 2PCS CRANKSHAFT - 2 PCS BEDPLATE
MAN ENGINES
MAN 40/54 BARE CYL HEADS 20 PCS
MAN 30/45 8 PCS PISTON 8 PCS LINER 2 PCS CON ROD AND CRANKSHAFT
MAN KZ60 COVER 6 PCS
MAN KZ78 2 PCS PISTON AND PISTON ROD, LINER
MAN KZ90 LINER AND PISTON
G6 MAN 23.5/33 CRANKSHAFT - 2 PCS PISTON 8 PCS CONROD
MAN 40/54 V8V ENGINE CRANKSHAFT, CYL BLOCKS AND BEDPLATE
YANMAR ENGINES
Yanmar 6Z-ST 1600HP - 1177KW Main Engine
Yanmar 6KFL Marine Genset 145hp 1200rpm 445volt 120kva 2 pcs
Yanmar 6MAL-HT Marine Engine 360 HP 900 RPM
YANMAR 6UL-ST GENSET
YANMAR 6GL-ST 60 HZ 875 KVA GENSETS GOOD CONDITION 4 PCS
YANMAR 6UL-ST COMPLETE MAIN ENGINE AND SPARES
11 years, 10 months
Installing 0.4 on Windows
by Brizic, Michael
Hi,
I'm interested in help installing 0.4 on Windows 7. Here is what I've done:
Downloaded the tarball
Extracted to python-suds-0.4
Opened cmd prompt
Cd to the directory
Typed: setup.py install
Here is the response I receive:
Traceback (most recent call last):
File "C:\Users\mbrizic\Downloads\python-suds-0.4\setup.py", line 20, in <modul
e>
import suds
File "C:\Users\mbrizic\Downloads\python-suds-0.4\suds\__init__.py", line 154,
in <module>
import client
ImportError: No module named client
I could not located any documentation on the site. What am I doing wrong?
Thanks,
Mike Brizic
________________________________
The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.
11 years, 10 months
Ignore missing schema from import
by Brandon Perkins
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Posted this on IRC, but didn't get a response, so trying here:
<bdperkin> Hi all, having a problem that I'm hoping someone can help me
with. I'm implementing something on the VMware 5.0 SOAP interface that
is working on the VMware 4.1 SOAP interface. VMware made some changes
that has broken my script and I haven't been able to figure out how to
work around it.
<bdperkin> error is at: http://fpaste.org/XZwk/
<bdperkin> line 9 of this clip of the WSDL is the offender:
http://fpaste.org/b6G0/
<bdperkin> The problem is that that schema file, in fact, doesn't exist.
<bdperkin> I'd like to just ignore it and I was trying to use a Doctor
to no avail, it kept wanting to grab it and kept getting the 404. Any
suggestions?
<bdperkin> And of course, changing the WSDL is a non-starter as this is
VMware 5.0 GA code
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk69fhwACgkQhwQhj8l1t/dSQACdGYM1UsL6CtZFfcqa3caDgU6R
o6wAniKW47aA6F+b+6YGVj4JPqLB9Tmg
=bsVo
-----END PGP SIGNATURE-----
11 years, 10 months
Ignore missing schema from import
by Brandon Perkins
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Posted this on IRC, but didn't get a response, so trying here:
<bdperkin> Hi all, having a problem that I'm hoping someone can help me
with. I'm implementing something on the VMware 5.0 SOAP interface that
is working on the VMware 4.1 SOAP interface. VMware made some changes
that has broken my script and I haven't been able to figure out how to
work around it.
<bdperkin> error is at: http://fpaste.org/XZwk/
<bdperkin> line 9 of this clip of the WSDL is the offender:
http://fpaste.org/b6G0/
<bdperkin> The problem is that that schema file, in fact, doesn't exist.
<bdperkin> I'd like to just ignore it and I was trying to use a Doctor
to no avail, it kept wanting to grab it and kept getting the 404. Any
suggestions?
<bdperkin> And of course, changing the WSDL is a non-starter as this is
VMware 5.0 GA code
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk69b18ACgkQhwQhj8l1t/dzrACePlNb+iAjz4otAq//2QRz97V4
+mgAoK8BTshzjfOmpyLyRYKp8FTSy4W6
=vTR2
-----END PGP SIGNATURE-----
11 years, 10 months
Reply on her natural call
by Silas Dodson
Depressive conditions endanger our families and careers only if we let them do this to us!
Dear suds,
Even if your sex life is already rich and fulfilling... Imagine you had a little more energy... if your erections stayed harder... or you could go just a little longer...
Or maybe you worry, when you climb under the covers, that you’re starting something you can’t finish?
Well, now advancements in natural medicine are making it easier than ever to promote a strong libido, firm, natural erections and enhanced desire.
Now thanks to this exciting natural breakthrough, you could get an erection “on demand” and when you do, sustain it long enough – and keep firm enough — to fully satisfy your wife in bed. Even if you’re in your 50s, 60s, 70s, 80s or older!
As a doctor, I’ve learned something over the years that may surprise you — age has very little to do with sex. There are men out there having the best sex of their lives well into their 80th year and beyond.
And those men have three key things in common that their sex starved friends don’t:
Hard, recurring erections...
Heightened desire and stamina...
And a reproductive system that could be functioning at the top of its game...
Lucky? You bet.
But you too could give your body the nutrients it needs to support your entire sexual health.
An increased sensitivity to sunlight is common when you take antibiotics. Take good care!
*********************
>>> www.pillsbelu.ru <<<
*********************
11 years, 11 months