Browse Source

----------------------------------------------------------------------

Modified Files:
        WSDLTools.py -- qualified Names are now stored as tuples (namespace, localName).
          These tuples are used as keys into CollectionNS instances.

 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
5d0c6da185
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      WSDLTools.py

+ 5
- 5
WSDLTools.py View File

@@ -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))



Loading…
Cancel
Save