def GetWSAActionOutput(operation):
attr = operation.output.action<EOL>if attr is not None:<EOL><INDENT>return attr<EOL><DEDENT>targetNamespace = operation.getPortType().getTargetNamespace()<EOL>ptName = operation.getPortType().name<EOL>msgName = operation.output.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.