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

def __init__(self, root, definitions):

    NamedObject.__init__(self, root, definitions)
    self.operations = {}
    self.type = root.get('type')
    sr = self.soaproot()
    if (sr is None):
        self.soap = None
        log.debug('binding:    "%s"    not    a    soap    binding', self.name)
        return
    soap = Facade('soap')
    self.soap = soap
    self.soap.style = sr.get('style', default='document')
    self.add_operations(self.root, definitions)
