title: Return Array as response in SoapUI Mock servcice
body: <p>I have to mock a soap webservice operation that returns string array as an output. I could only generate a string as an output from below script.
  Any help is welcome.</p>
  
  <pre><code>//script
  import groovy.xml.MarkupBuilder
  
  // An array from which county and city will be drawn randomly
  
      def countryArray = 
      ["ONE",
      "TWO",
      "THREE"
       ]
  
      context.countryArray=countryArray
  </code></pre>
  
  <p>--response definition</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:upm="http://xxxx"&gt;
     &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;upm:signResponse&gt;
           &lt;upm:signReturn&gt;${countryArray}&lt;/upm:signReturn&gt;
        &lt;/upm:signResponse&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>