'Override the invocation location (url) for service method.
@param url: A url location.
@type url: A url.
@param names:  A list of method names.  None=ALL
@type names: [str,..]'

def setlocation(self, url, names=None):

    for p in self.ports:
        for m in p.methods.values():
            if ((names is None) or (m.name in names)):
                m.location = url
