title: soap 1.2 android Please supply a valid soap action
body: <p>My .net webservice is apparently running soap 1.2 (by checking the .wsdl) and ive been trying to access the helloworld webservice for testing but i have encountered errors.
  Im trying to do this via the emulator by the way.</p>
  
  <p>So when I use soap 1.2 version , i get the error that it is "unable to handle request without a valid action parameter. Please supply a valid soap"
  I want to know what I am missing and what should I do.</p>
  
  <p>Thank you!</p>
  
  <p>Things I have already done:</p>
  
  <ul>
  <li>Add permission for android to use the internet</li>
  <li>Change from Soap version 1.1 and 1.2</li>
  <li>Change from SoapObject to Object (for both soap 1.1 and 1.2)</li>
  <li>Used 10.0.2.2 for the emulator</li>
  <li>Checked for errors in spelling in the addresses and  method names</li>
  </ul>
  
  <p>My codes:</p>
  
  <pre><code> private static final String NAMESPACE = "http://localhost/WebService/";
   private static final String URL = "http://10.0.2.2:1672/Eventurous/WsEventurousMobile.asmx";
   private static final String HelloWorld_SOAP_ACTION = "http://localhost/WebService/HelloWorld";
   private static final String METHOD_NAME1 = "HelloWorld";
  
  
  
  ...
  ...
  
  public static String GetHelloWorld() {
  
    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME1);
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
       SoapEnvelope.VER12);
    envelope.dotNet = true;
    envelope.setOutputSoapObject(request);
    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL,60000);
  
    try {
     androidHttpTransport.setXmlVersionTag("&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;");
      androidHttpTransport.call(HelloWorld_SOAP_ACTION, envelope);
  
     SoapObject response = (SoapObject)envelope.getResponse(); 
     String result = response.getProperty(0).toString(); 
  
     return result;
     } catch (Exception e) {
     return e.toString();
    }
  
   }
  </code></pre>
  
  <p>Error for Soap version 1.2</p>
  
  <pre><code>Code: soap:Sender, Reason: System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action.
  
   at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
  
  at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
  
  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
  
  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean
  </code></pre>
  
  <p>Error for Soap version  1.1</p>
  
  <pre><code>SoapFault - faultcode: 'soap:Client' faultstring: 'System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://localhost/WebService/HelloWorld.
  
   at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
  
  at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
  
  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
  
  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing)' faultactor: 'null' detail: org.kxml2.kdom.Node@413c9098
  </code></pre>