title: What's the namespace, soap action and url should be for my android app accessing wcf web service?
body: <p>My WSDL is like:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;wsdl:definitions name="ABCWcfService" targetNamespace="http://www.ABC.com/ABCWcfService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://www.ABC.com/ABCWcfService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"&gt;
        &lt;wsdl:types&gt;
          &lt;xsd:schema targetNamespace="http://www.ABC.com/ABCWcfService/Imports"&gt;
            &lt;xsd:import schemaLocation="http://desktop/ABCWcfService/ABCWcfService.svc?xsd=xsd0" namespace="http://www.ABC.com/ABCWcfService"/&gt;
            &lt;xsd:import schemaLocation="http://desktop/ABCWcfService/ABCWcfService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/&gt;
          &lt;/xsd:schema&gt;
        &lt;/wsdl:types&gt;
        &lt;wsdl:message name="IABCWcfService_GetWhatsOnData_InputMessage"&gt;
          &lt;wsdl:part name="parameters" element="tns:GetWhatsOnData"/&gt;
        &lt;/wsdl:message&gt;
        &lt;wsdl:message name="IABCWcfService_GetWhatsOnData_OutputMessage"&gt;
          &lt;wsdl:part name="parameters" element="tns:GetWhatsOnDataResponse"/&gt;
        &lt;/wsdl:message&gt;
        &lt;wsdl:portType name="IABCWcfService"&gt;
          &lt;wsdl:operation name="GetWhatsOnData"&gt;
            &lt;wsdl:input wsaw:Action="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData" message="tns:IABCWcfService_GetWhatsOnData_InputMessage"/&gt;
            &lt;wsdl:output wsaw:Action="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnDataResponse" message="tns:IABCWcfService_GetWhatsOnData_OutputMessage"/&gt;
          &lt;/wsdl:operation&gt;
        &lt;/wsdl:portType&gt;
        &lt;wsdl:binding name="BasicHttpBinding_IABCWcfService" type="tns:IABCWcfService"&gt;
          &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http"/&gt;
          &lt;wsdl:operation name="GetWhatsOnData"&gt;
            &lt;soap:operation soapAction="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData" style="document"/&gt;
            &lt;wsdl:input&gt;
              &lt;soap:body use="literal"/&gt;
            &lt;/wsdl:input&gt;
            &lt;wsdl:output&gt;
              &lt;soap:body use="literal"/&gt;
            &lt;/wsdl:output&gt;
           &lt;/wsdl:operation&gt;
        &lt;/wsdl:binding&gt;
        &lt;wsdl:service name="ABCWcfService"&gt;
          &lt;wsdl:port name="BasicHttpBinding_IABCWcfService" binding="tns:BasicHttpBinding_IABCWcfService"&gt;
            &lt;soap:address location="http://desktop/ABCWcfService/ABCWcfService.svc"/&gt;
          &lt;/wsdl:port&gt;
        &lt;/wsdl:service&gt;
      &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>I am wondering what should I put for my SOAP_ACTION, METHOD_NAME, NAMESPACE and URL?
  I guess:</p>
  
  <pre><code>SOAP_ACTION = "http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData"
  METHOD_NAME = "GetWhatsOnData"
  NAMESPACE = "http://www.ABC.com/ABCWcfService"
  URL = "http://desktop/ABCWcfService/ABCWcfService.svc"
  </code></pre>
  
  <p>But it seems not working in my code:</p>
  
  <pre><code>SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
  SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
  envelope.dotNet = true;
  envelope.setOutputSoapObject(request);
  HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
  androidHttpTransport.call(SOAP_ACTION, envelope);
  SoapObject result = (SoapObject) envelope.getResponse();
  </code></pre>
  
  <p>It goes into exception at line androidHttpTransport.call(SOAP_ACTION, envelope); the exception object e has value null.</p>
  
  <p>I have add</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
  </code></pre>
  
  <p>in the Manifest file</p>
  
  <p>Can anyone tell me what's wrong?</p>
  
  <p>Thank you very much.</p>