title: Mirth: dynamically determine which SOAP method to call
body: <p>Consider a Mirth channel with a Destination of a SOAP Sender. The WSDL is successfully loaded and has more than one method available. Each method would take a different number of arguments. Example methods:</p>
  
  <ul>
  <li><code>AddPerson()</code></li>
  <li><code>UpdatePerson()</code></li>
  <li><code>DeletePerson()</code></li>
  <li><code>MergePerson()</code></li>
  <li><code>UnmergePerson()</code></li>
  </ul>
  
  <p>Given the set of HL7 message event types,  i.e.</p>
  
  <ul>
  <li>A28 = Add Person</li>
  <li>A31 = Update Person</li>
  <li>A29 = Delete Person</li>
  <li>etc</li>
  </ul>
  
  <p><strong>Question</strong>: How would you setup a Destination in Mirth to have the variable's value determine which SOAP Method is called?</p>
  
  <p>It doesn't necessarily have to be a SOAP Sender. Could be any type.</p>