title: connecting android app to .net .asmx
body: <pre><code> private static final String NAMESPACE = "http://tempuri.org/" ;
      private static final String URL = "http://mydomain.com/test.asmx";
      private static final String PingSA = "http://tempuri.org/Ping";
      private static final String PingMN = "Ping";
  
  SoapObject request = new SoapObject(NAMESPACE, PingMN);
          SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
          envelope.dotNet = true;    
  envelope.setOutputSoapObject(request);
          HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);    
  try
          {
              androidHttpTransport.call(PingSA, envelope);
              Object x = envelope.getResponse();                          
          }
          catch(Exception e)
          {                
          }
  </code></pre>
  
  <p>Error: SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.InvalidOperationException: Input message does not conform to Simple SOAP Binding Profile Version 1.0. Requirement R1012: A MESSAGE MUST serialize the envelope using either UTF-8 or UTF-16 character encoding.</p>
  
  <p>I Tried (and didn't work):</p>
  
  <pre><code>androidHttpTransport.setXmlVersionTag("&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;");
  </code></pre>