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

def __init__(self, root, definitions, service):

    NamedObject.__init__(self, root, definitions)
    self.__service = service
    self.binding = root.get('binding')
    address = root.getChild('address')
    if (address is None):
        self.location = None
    else:
        self.location = address.get('location').encode('utf-8')
    self.methods = {}
