title: how can i pass data for nested xml tag for soap base service android
body: <p>I want to pass data for nested xml tag for soap base service. But it is giving error my xml file. The code is given below ...</p>
  
  <pre><code> SOAPAction: "http://mobile.expenseanywhere.com/verifyLogin"
  
   &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;verifyLogin xmlns="http://mobile.expenseanywhere.com/"&gt;
     &lt;AuthToken&gt;
      &lt;CorporateId&gt;string&lt;/CorporateId&gt;
      &lt;Username&gt;string&lt;/Username&gt;
      &lt;Password&gt;string&lt;/Password&gt;
    &lt;/AuthToken&gt;
    &lt;/verifyLogin&gt;
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>And my code is:</p>
  
  <pre><code>try {
  
  
                 SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
  
                 PropertyInfo pi = new PropertyInfo();
                 pi.setName("AuthToken");
                 pi.setValue(new SoapObject(NAMESPACE,METHOD_NAME)
                  .addProperty("CorporateId","MayDemo2011")
                  .addProperty("Username","wildnet")
                  .addProperty("Password","Iphone123")
                  );
                 request.addProperty(pi);
  
                 SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                 envelope.dotNet = true;
                 envelope.bodyOut = request;
                 envelope.encodingStyle = SoapSerializationEnvelope.XSI;
                 envelope.setOutputSoapObject(request);
  
                 androidHttpTransport.call(SOAP_ACTION, envelope);
                 Object result = envelope.getResponse();
  }
  </code></pre>
  
  <p>and error is</p>
  
  <pre><code>   07-20 18:55:45.613: WARN/System.err(1164): SoapFault - faultcode: 'soap:Client' faultstring: 'Server was unable to read request. ---&gt; There is an error in XML document (1, 346). ---&gt; The specified type was not recognized: name='verifyLogin', namespace='http://mobile.expenseanywhere.com/', at &lt;AuthToken xmlns='http://mobile.expenseanywhere.com/'&gt;.' faultactor: 'null' detail: org.kxml2.kdom.Node@405a4608
     07-20 18:55:45.623: WARN/System.err(1164):     at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:112)
     07-20 18:55:45.632: WARN/System.err(1164):     at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:137)
      07-20 18:55:45.642: WARN/System.err(1164):     at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)
    07-20 18:55:45.642: WARN/System.err(1164):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100)
       07-20 18:55:45.642: WARN/System.err(1164):     at soap.sdjfh.dj.verification$1.onClick(verification.java:59)
  </code></pre>