def createSOAPMessage(env):
if env.getAction() == ACTION_PROBE:<EOL><INDENT>return createProbeMessage(env)<EOL><DEDENT>if env.getAction() == ACTION_PROBE_MATCH:<EOL><INDENT>return createProbeMatchMessage(env)<EOL><DEDENT>if env.getAction() == ACTION_RESOLVE:<EOL><INDENT>return createResolveMessage(env)<EOL><DEDENT>if env.getAction() == ACTION_RESOLVE_MATCH:<EOL><INDENT>return createResolveMatchMessage(env)<EOL><DEDENT>if env.getAction() == ACTION_HELLO:<EOL><INDENT>return createHelloMessage(env)<EOL><DEDENT>if env.getAction() == ACTION_BYE:<EOL><INDENT>return createByeMessage(env)<EOL><DEDENT>
construct a a raw SOAP XML string, given a prepared SoapEnvelope object