def GetWSAActionInput(operation):
attr = operation.input.action<EOL>if attr is not None:<EOL><INDENT>return attr<EOL><DEDENT>portType = operation.getPortType()<EOL>targetNamespace = portType.getTargetNamespace()<EOL>ptName = portType.name<EOL>msgName = operation.input.name<EOL>if not msgName:<EOL><INDENT>msgName = operation.name + '<STR_LIT>'<EOL><DEDENT>if targetNamespace.endswith('<STR_LIT:/>'):<EOL><INDENT>return '<STR_LIT>' %(targetNamespace, ptName, msgName)<EOL><DEDENT>return '<STR_LIT>' %(targetNamespace, ptName, msgName)<EOL>
Find wsa:Action attribute, and return value or the default.