title: Passing a String List in a SOAP request in Flutter
body: <p>I am making a SOAP Request and this is how my request should be sent:</p>
  
  <pre><code>  &lt;id&gt;&lt;/id&gt;
    &lt;fieldList&gt;
      &lt;string&gt;string&lt;/string&gt;
      &lt;string&gt;string&lt;/string&gt;
    &lt;/fieldList&gt;
  </code></pre>
  
  <p>This is how I have built my envelope:</p>
  
  <pre><code>final int id = 21;
  List&lt;String&gt; fieldList = new List&lt;String&gt;();
  
    fieldList = [
      "pinNumber:PIN0000074",
      "dispatchArrivedTime:13.05",
      "towedStatus:C"
    ];
  
  var envelope = "&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"
      "&lt;soap:Envelope "
      "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
      "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "
      "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;"
      "&lt;soap:Body&gt;"
      "&lt;update xmlns=\"http://example.com/\"&gt;"
      "&lt;id&gt;${id}&lt;/id&gt;"
      "&lt;fieldList&gt;${fieldList}&lt;/fieldList&gt;"
      "&lt;/update&gt;"
      "&lt;/soap:Body&gt;"
      "&lt;/soap:Envelope&gt;";
  
      final response = await http.post(
      'http://example.com/vc/ws/towedvehicletable.asmx',
      headers: {
        "Content-Type": "text/xml; charset=utf-8",
        "SOAPAction": "http://example.com/update",
        "Host": "example.com"
        //"Accept": "text/xml"
      },
      body: envelope);
  </code></pre>
  
  <p>However, this approach does not work. It would be really helpful if somebody could show me how to pass a String List into my request. I am using Flutter and Dart. Thanks</p>