I'm new to this list.
First, thanks much for an easy to use library that worked (mostly) out of the box.
I have a request that is related to
Ticket #6 - Add user defined soap headers
I need to add custom header elements for authentication
that have *not* been defined by the wsdl document.
The existing soapheaders mechanism only supports values obtained from client.Factory.
My current workaround is to pass Element objects in soapheaders and then crudely
inject them in the header:
--- binding.py (revision 322)
+++ binding.py (working copy)
@@ -289,6 +289,10 @@
n = 0
content = 
+ for h in [ e for e in headers if isinstance(e, Element) ]:
+ headers = [ x for x in headers if not isinstance(x, Element)]
if method.soap.input.header is None:
Could some hook be provided to transform the request doc before sending it
so that I could do something similar. I also currently have the need to fix up
some type attributes... but that's different message :)
Or should I be extending the client.Factory (or whatever schema of types it uses)
to support these elements?