summaryrefslogtreecommitdiff
path: root/suds/wsdl.py
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2009-03-06 23:03:55 +0000
committerjortel <devnull@localhost>2009-03-06 23:03:55 +0000
commit5f69afb3bb4944a7f959e4f28f89cf2360048654 (patch)
tree06aaae813259de83f725a553cc7f8c12b0472cb9 /suds/wsdl.py
parent76a663a5d284dcde9a7927071dab41aa362fbbfd (diff)
downloadsuds-5f69afb3bb4944a7f959e4f28f89cf2360048654.tar.gz
Update WSDL processing to handle <soap:operation/> inside of <wsdl:operation/> as optional.
Diffstat (limited to 'suds/wsdl.py')
-rw-r--r--suds/wsdl.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/suds/wsdl.py b/suds/wsdl.py
index b51972e..ac2eb30 100644
--- a/suds/wsdl.py
+++ b/suds/wsdl.py
@@ -549,13 +549,14 @@ class Binding(NamedObject):
def add_operations(self, root, definitions):
""" Add <operation/> children """
+ dsop = Element('operation', ns=soapns)
for c in root.getChildren('operation'):
op = SFactory.object('Operation')
op.name = c.get('name')
- sr = c.getChild('operation')
+ sop = c.getChild('operation', default=dsop)
soap = SFactory.object('soap')
- soap.action = '"%s"' % sr.get('soapAction', default='')
- soap.style = sr.get('style', default=self.soap.style)
+ soap.action = '"%s"' % sop.get('soapAction', default='')
+ soap.style = sop.get('style', default=self.soap.style)
soap.input = SFactory.object('Input')
soap.input.body = SFactory.object('Body')
soap.input.headers = []