How to consume webservice with complex ksoap2 mailing envelope correctly?
<p>I need to send to the webservice that envelope:</p>

<pre><code>` &lt;? xml version = "1.0" encoding = "utf-8"?&gt;
 &lt;soap: Envelope xmlns: xsi = "http://wwwenter code here.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;getCasesAsString xmlns="http://tempuri.org/"&gt;
           &lt;caseFilters&gt; string &lt;/ caseFilters&gt;
         &lt;/ getCasesAsString&gt;
    &lt;/soap: Body&gt;
 &lt;/soap: Envelope&gt;`
</code></pre>

<p>Where "string" in <code>&lt;caseFilters&gt; string &lt;/ caseFilters&gt;</code> filter should be replaced by that desire.</p>

<p>More like this</p>

<p>`</p>

<pre><code>&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;getCasesAsString xmlns="http://tempuri.org/"&gt;
         &lt;caseFilters&gt;
            &lt;processName&gt;process_name&lt;/ processName&gt;
          &lt;/ caseFilters&gt;
       &lt;/ getCasesAsString&gt;
     &lt;/ soap: Body&gt;
  &lt;/ soap: Envelope&gt;`
</code></pre>

<p>the most I was able to make it in this envelope:</p>

<p>`  </p>

<pre><code>&lt;v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  &lt;v:Header /&gt;
    &lt;v:Body&gt;
       &lt;getCasesAsString xmlns="http://tempuri.org/" id="o0" c:root="1"&gt;
         &lt;caseFilters i:type="n0:Process" xmlns:n0="http://tempuri.org/"&gt;
           &lt;processName i:type="d:string"&gt;PROCESS_NAME&lt;/processName&gt;   
         &lt;/caseFilters&gt;
       &lt;/getCasesAsString&gt;
    &lt;/v:Body&gt;
  &lt;/v:Envelope&gt;`
</code></pre>

<p>But I get a server error, refusing the envelope, the following error:</p>

<p>` </p>

<pre><code>SoapFault - faultcode: 'soap: Server' faultstring:    System.Web.Services.Protocols.SoapException: The server could not process the request. ---&gt; System.Xml.XmlException: invalid data at the root level. Line 1, position 1.
    in System.Xml.XmlTextReaderImpl.Throw (Exception e)
    in System.Xml.XmlTextReaderImpl.Throw (String res, String arg)
    in System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace ()
    in System.Xml.XmlTextReaderImpl.ParseDocumentContent ()
    in System.Xml.XmlTextReaderImpl.Read ()
    in System.Xml.XmlLoader.Load (XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    in System.Xml.XmlDocument.Load (XmlReader reader)
    in System.Xml.XmlDocument.LoadXml (String xml)
    in BizAgi.Web.Services.CWorkflowSOAWrapper.getCasesAsString (String caseFilters)
    --- End of stack trace --- inner exception 'faultactor:' null 'detail: org.kxml2.kdom.Node @ 4396c958`
</code></pre>

<p>I think these can be id = "o0" c: root = "1" or i: type = "n0: Process"</p>

<p>I need help to correctly assemble the envelope ...</p>

<p>someone there willing to help me?</p>

<p>Thank you.</p>
