code: def _QName(self, typ, defNS):
        
        attr = ''
        ns, name = GetQualifiedWsdlName(typ)
        if ns == defNS:
           prefix = ''
        else:
           try:
              prefix = self.nsMap[ns]
           except KeyError:
              # We have not seen this ns before
              prefix = ns.split(':', 1)[-1]
              attr = ' xmlns:{0}="{1}"'.format(prefix, ns)
        return attr, prefix and prefix + ':' + name or name
docs: Get fully qualified wsdl name (prefix:name)