docs: def FromMessageGetSimpleElementDeclaration(message):
      '''If message consists of one part with an element attribute,
      and this element is a simpleType return a string representing 
      the python type, else return None.
  
      '''
      assert isinstance(message, WSDLTools.Message), 'expecting WSDLTools.Message'
  
      if len(message.parts) == 1 and message.parts[0].element is not None:
         part = message.parts[0]
         nsuri,name = part.element
         wsdl = message.getWSDL()
         types = wsdl.types
         if types.has_key(nsuri) and types[nsuri].elements.has_key(name):
              e = types[nsuri].elements[name]
              if isinstance(e, XMLSchema.ElementDeclaration) is True and e.getAttribute('type'):
                  typ = e.getAttribute('type')
                  bt = BaseTypeInterpreter()
                  ptype = bt.get_pythontype(typ[1], typ[0])
                  return ptype
  
      return None