title: Modifying Soap UI request using groovy
body: <p>we have a requirement of finding the number of dealers in current country.In the below xml request key-value pair will be varied for every request. Inputs to the soap request will be given in .txt file.Based on the number of inputs in .txt file i need to generate key-value pair xml tags dynamically.   </p>
  
  <pre><code>  **Format of Input.txt**
  
     1.key1=Fruit,value1=Carrot,Key2=Vegetable,value2=Carrot
     2.key1=Vegetable,value1=Potato
     3.key1=Fruit,value1=Apple,key2=Fruit,value2=Orange,key3=Fruit,value3=Mango
  </code></pre>
  
  <p><strong>SoapUI Request</strong> </p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.webserviceX.NET"&gt;
             &lt;soapenv:Header/&gt;
             &lt;soapenv:Body&gt;
                &lt;web:GetCitiesByCountry&gt;
                   &lt;web:CountryName&gt;Ind&lt;/web:CountryName&gt;
                   &lt;web:queryParameters&gt;
                      &lt;web:key&gt;Fruits&lt;/web:key&gt;
                      &lt;web:value&gt;Mango&lt;/web:value&gt;
                  &lt;/web:queryParameters&gt;
                  &lt;web:queryParameters&gt;
                      &lt;web:key&gt;Vegetables&lt;/web:key&gt;
                      &lt;web:value&gt;Carrot&lt;/web:value&gt;
                  &lt;/web:queryParameters&gt;
                &lt;/web:GetCitiesByCountry&gt;
             &lt;/soapenv:Body&gt;
          &lt;/soapenv:Envelope&gt;
  </code></pre>