title: Consuming WCF service using ksoap2
body: <p>I am trying to consume wcf service in my android project but I am getting the following error</p>
  <pre><code>05-24 02:44:35.995: E/TAG(1731): Error: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG &lt;HTML&gt;@2:7 in java.io.InputStreamReader@b41da630) 
  </code></pre>
  <hr />
  <pre class="lang-java prettyprint-override"><code>    final String NAMESPACE = &quot;http://tempuri.org/&quot;;
      final String METHOD_NAME = &quot;getWeather&quot;;
      final String SOAP_ACTION = &quot;http://tempuri.org/IService1/getWeather&quot;;
      final String URL = &quot;http://10.0.2.2:44482/Service1.svc&quot;;
  
      SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
      Request.addProperty(&quot;cityName&quot;, &quot;Karachi&quot;);
      SoapSerializationEnvelope soapEnvelop;
      soapEnvelop = new SoapSerializationEnvelope(SoapEnvelope.VER11);
      soapEnvelop.dotNet = true;
      soapEnvelop.setOutputSoapObject(Request);
  
      HttpTransportSE htp = new HttpTransportSE(URL, 15000);
  
      // int jumpTime = 0;
      // progress.setProgress(jumpTime);
      htp.call(SOAP_ACTION, soapEnvelop);
      response = (SoapObject) soapEnvelop.getResponse()
  </code></pre>