MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __init__

Method __init__

suds/wsdl.py:538–556  ·  view source on GitHub ↗

@param root: An XML root element. @type root: L{Element} @param definitions: A definitions object. @type definitions: L{Definitions}

(self, root, definitions)

Source from the content-addressed store, hash-verified

536 """
537
538 def __init__(self, root, definitions):
539 """
540 @param root: An XML root element.
541 @type root: L{Element}
542 @param definitions: A definitions object.
543 @type definitions: L{Definitions}
544 """
545 NamedObject.__init__(self, root, definitions)
546 self.operations = {}
547 self.type = root.get('type')
548 sr = self.soaproot()
549 if sr is None:
550 self.soap = None
551 log.debug('binding: "%s" not a soap binding', self.name)
552 return
553 soap = Facade('soap')
554 self.soap = soap
555 self.soap.style = sr.get('style', default='document')
556 self.add_operations(self.root, definitions)
557
558 def soaproot(self):
559 """ get the soap:binding """

Callers

nothing calls this directly

Calls 5

soaprootMethod · 0.95
add_operationsMethod · 0.95
FacadeClass · 0.90
__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected