def FromMessageGetSimpleElementDeclaration(message):
assert isinstance(message, WSDLTools.Message), '<STR_LIT>'<EOL>if len(message.parts) == <NUM_LIT:1> and message.parts[<NUM_LIT:0>].element is not None:<EOL><INDENT>part = message.parts[<NUM_LIT:0>]<EOL>nsuri,name = part.element<EOL>wsdl = message.getWSDL()<EOL>types = wsdl.types<EOL>if nsuri in types and name in types[nsuri].elements:<EOL><INDENT>e = types[nsuri].elements[name]<EOL>if isinstance(e, XMLSchema.ElementDeclaration) is True and e.getAttribute('<STR_LIT:type>'):<EOL><INDENT>typ = e.getAttribute('<STR_LIT:type>')<EOL>bt = BaseTypeInterpreter()<EOL>ptype = bt.get_pythontype(typ[<NUM_LIT:1>], typ[<NUM_LIT:0>])<EOL>return ptype<EOL><DEDENT><DEDENT><DEDENT>return None<EOL>
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.