title: How can I pass a dataset value to a dotnet webservice?
body: <p>I'm trying to pass a dataset value to a .net webservice by using ksoap2.
  I want to send the dataset from an Android (client) to the server.</p>
  
  <p>The request needed is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;soap:Body&gt;
      &lt;myDSTestFun xmlns="http://tempuri.org/"&gt;
          &lt;dstest&gt;
              &lt;xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"&gt;
                  &lt;xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"&gt;
                      &lt;xs:complexType&gt;
                          &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
                              &lt;xs:element name="Table1"&gt;
                              &lt;xs:complexType&gt;
                                  &lt;xs:sequence&gt;
                                      &lt;xs:element name="DEPCD" type="xs:string" minOccurs="0" /&gt;
                                      &lt;xs:element name="DEPNAME" type="xs:string" minOccurs="0" /&gt;
                                  &lt;/xs:sequence&gt;
                              &lt;/xs:complexType&gt;
                              &lt;/xs:element&gt;
                          &lt;/xs:choice&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
              &lt;/xs:schema&gt;
              &lt;diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"&gt;
                  &lt;NewDataSet xmlns=""&gt;
                      &lt;Table1 diffgr:id="Table11" msdata:rowOrder="0" diffgr:hasChanges="inserted"&gt;
                          &lt;DEPCD&gt;001&lt;/DEPCD&gt;
                          &lt;DEPNAME&gt;IT&lt;/DEPNAME&gt;
                      &lt;/Table1&gt;
                      &lt;Table1 diffgr:id="Table12" msdata:rowOrder="1" diffgr:hasChanges="inserted"&gt;
                          &lt;DEPCD&gt;002&lt;/DEPCD&gt;
                          &lt;DEPNAME&gt;PM&lt;/DEPNAME&gt;
                      &lt;/Table1&gt;
                  &lt;/NewDataSet&gt;
              &lt;/diffgr:diffgram&gt;
          &lt;/dstest&gt;
      &lt;/myDSTestFun&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>How can I create the request above and send it to the .net webservice?</p>