IO Exception in work with KSOAP library in Java, Android
<p>I use this code for working with SOAP-service:</p>

<pre><code>package com.nda.ut;

import java.io.IOException;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import org.xmlpull.v1.XmlPullParserException;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import android.widget.Toast;

public class UTPlayerActivity extends Activity {
    /** Called when the activity is first created. */

    public static String SOAP_ACTION="http://tempuri.org/GetChanel";
    public static String METHOD_NAME="GetChanel";
    public static String NAMESPACE="http://tempuri.org/";
    public static String URL="http://www.mcds.co.il/YouTube/ChanelApi.asmx";

    TextView view;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);
        view=(TextView)findViewById(R.id.view);

        SoapObject request=new SoapObject(NAMESPACE, METHOD_NAME);


        SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet=true;
        envelope.setOutputSoapObject(request);

        AndroidHttpTransport aht=new AndroidHttpTransport(URL);

        try {
            aht.call(SOAP_ACTION, envelope);
            SoapPrimitive result=(SoapPrimitive)envelope.getResponse();
            //if (result!=null)
            view.setText("123");

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            Log.e("IO", "1");
        } catch (XmlPullParserException e) {
            // TODO Auto-generated catch block
            Log.e("XmlPullParser", "2");
        }
    }
}
</code></pre>

<p>I try to make app for this service: <a href="http://www.mcds.co.il/YouTube/ChanelApi.asmx" rel="nofollow">http://www.mcds.co.il/YouTube/ChanelApi.asmx</a>. But app throws exception always. Where did I make mistake? </p>

<p>LogCat: </p>

<p>10-10 12:05:13.175: ERROR/JavaBinder(1286): !!! FAILED BINDER TRANSACTION !!!
10-10 12:05:14.625: ERROR/WifiService(1286): supplicant state is COMPLETED
10-10 12:05:15.025: ERROR/dun_service(1142): LG_DATA: Dun Reply Functions [DUN_STATE_IDLE --> DUN_STATE_IDLE][2]
10-10 12:05:18.675: ERROR/IO(7699): Host is unresolved: www.mcds.co.il:80
10-10 12:05:23.405: ERROR/dun_service(1142): LG_DATA: Dun Reply Functions [DUN_STATE_IDLE --> DUN_STATE_IDLE][2]
10-10 12:05:23.675: ERROR/WifiStateTracker(1286): [dhcp handler] release sWiFiDhcpWakeLock
10-10 12:05:24.105: ERROR/ConnectivityChangeReceiver(1700): ConnectivityChangeReceiver has been started.
10-10 12:05:24.145: ERROR/ConnectivityChangeReceiver(1700): getPlatformAccount Start
10-10 12:05:24.185: ERROR/ConnectivityChangeReceiver(1700): getPlatformAccount Start
10-10 12:05:24.265: ERROR/ConnectivityChangeReceiver(1700): getPlatformAccount Start</p>
