From 5d0c6da185d6ede0a0d9ca827f5d5949648a14af Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Fri, 19 Mar 2004 00:21:03 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: WSDLTools.py -- qualified Names are now stored as tuples (namespace, localName). These tuples are used as keys into CollectionNS instances. ---------------------------------------------------------------------- --- WSDLTools.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/WSDLTools.py b/WSDLTools.py index e086610..14fdc77 100755 --- a/WSDLTools.py +++ b/WSDLTools.py @@ -202,7 +202,7 @@ class WSDL: raise WSDLError( 'Missing type attribute for binding %s.' % name ) - type = type.split(':', 1)[-1] + type = ParseQName(type, element) docs = GetDocumentation(element) binding = self.addBinding(name, type, docs, targetNamespace) operations = DOM.getElements(element, 'operation', NS_WSDL) @@ -420,7 +420,7 @@ class PortType(Element): name = DOM.getAttr(item, 'name') docs = GetDocumentation(item) msgref = DOM.getAttr(item, 'message') - message = msgref.split(':', 1)[-1] + message = ParseQName(msgref, item) operation.setInput(message, name, docs) item = DOM.getElement(element, 'output', None, None) @@ -428,14 +428,14 @@ class PortType(Element): name = DOM.getAttr(item, 'name') docs = GetDocumentation(item) msgref = DOM.getAttr(item, 'message') - message = msgref.split(':', 1)[-1] + message = ParseQName(msgref, item) operation.setOutput(message, name, docs) for item in DOM.getElements(element, 'fault', None): name = DOM.getAttr(item, 'name') docs = GetDocumentation(item) msgref = DOM.getAttr(item, 'message') - message = msgref.split(':', 1)[-1] + message = ParseQName(msgref, item) operation.addFault(message, name, docs) @@ -740,7 +740,7 @@ class Service(Element): raise WSDLError( 'Invalid port element.' ) - binding = binding.split(':', 1)[-1] + binding = ParseQName(binding, element) port = self.addPort(name, binding, docs) port.load_ex(GetExtensions(element))