"Runtime Error" when accessing web service from Android
===

i want to access my local web service developt in Visual Studio 2008 from Android phone.
i have 2 code to access the webservice, first one isn't use any library, the second one using ksoap2. my question is, why the first one got error "Runtime Error"? it works perfectly on emulator and works perfectly if access hosted webservice.

the first code : 

    package com.zelacroix.bukumenu;
    
    import java.io.IOException;
    import java.io.InputStream;
    
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpPost;
    import org.apache.http.conn.ConnectTimeoutException;
    import org.apache.http.impl.client.DefaultHttpClient;
    import org.apache.http.params.BasicHttpParams;
    import org.apache.http.params.HttpConnectionParams;
    import org.apache.http.params.HttpParams;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.TextView;
    import android.widget.Toast;
    
    public class Sinc extends Activity {
    	private TextView tv;
        private Button req;
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.sinc);
            //Log.i("oke",getKategori());
            tv = (TextView) findViewById(R.id.SincTextInfo);
            req = (Button) findViewById(R.id.SincButtonReq);
            req.setOnClickListener(new OnClickListener() {
            @Override
    	        public void onClick(View v) {
                    tv.setText(getKategori());
    	        }
            });
            //Toast.makeText(getApplicationContext(), getKategori(), 5).show();
        }
    
    	public String getKategori(){
    		HttpParams httpParameters = new BasicHttpParams();
    		//HttpConnectionParams.setConnectionTimeout(httpParameters, 60000);
    		//HttpConnectionParams.setSoTimeout(httpParameters, 60000);
    		HttpClient client=new DefaultHttpClient(httpParameters);
    	    HttpPost httpPost = new HttpPost("http://192.168.1.2/TAWebService/Service1.asmx/getKategori");
    	    HttpResponse response;
    	    String result="";
    	    try
    	    {
    	    	response=client.execute(httpPost);
    	    	HttpEntity entity= response.getEntity();
    	    	DataHandler dataHandler = new DataHandler();
    	    	if (entity!=null)
    	    	{
    	            InputStream instream = entity.getContent();
    	            result = dataHandler.convertStreamToString(instream);
    	            instream.close();
    	    	}
    	    } catch (ConnectTimeoutException e) {
    	           	e.printStackTrace();
    	           	Toast.makeText(getApplicationContext(), e.toString(), 100).show();
    	    } catch (IOException e) {
    			e.printStackTrace();
    			Toast.makeText(getApplicationContext(), e.toString(), 100).show();
    		}
    	    return result;
    	}	
    }

the second code :

    package com.zelacroix.bukumenu;
     
    import android.app.Activity;
    import android.os.Bundle; 
    import android.widget.Toast;
     
    import org.ksoap2.SoapEnvelope;
    import org.ksoap2.serialization.PropertyInfo;
    import org.ksoap2.serialization.SoapObject;
    import org.ksoap2.serialization.SoapPrimitive; 
    import org.ksoap2.serialization.SoapSerializationEnvelope; 
    import org.ksoap2.transport.HttpTransportSE; 
    
    public class SincV2 extends Activity {
        private  String NAMESPACE;
        private  String URL;
        private  String SOAP_ACTION;
        private  String METHOD_NAME;  
       //you can get these values from the wsdl file^
         
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.sinc);
    
            NAMESPACE = "http://tempuri.org/";
            URL = "http://192.168.1.2/TAWebService/Service1.asmx";
            SOAP_ACTION = "http://tempuri.org/getKategori";
            METHOD_NAME = "getKategori"; 
            
            SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); 
            
            /*PropertyInfo propInfo=new PropertyInfo();
            propInfo.name="us";
            propInfo.setValue("a");
            propInfo.type=PropertyInfo.STRING_CLASS; 
            request.addProperty(propInfo); 
            
            PropertyInfo propInfo1=new PropertyInfo();
            propInfo1.name="pass";
            propInfo1.setValue("b");
            propInfo1.type=PropertyInfo.STRING_CLASS; 
            request.addProperty(propInfo1); */ 
    
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); 
            envelope.dotNet = true;
            envelope.setOutputSoapObject(request);  
            HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
            try {
            	androidHttpTransport.call(SOAP_ACTION, envelope);  
            	SoapPrimitive resultsRequestSOAP = (SoapPrimitive) envelope.getResponse();  
            	Toast.makeText(getApplicationContext(),resultsRequestSOAP.toString() , 5).show();
            } catch (Exception e) {
            	Toast.makeText(getApplicationContext(),e.toString() , 5).show();
            }
        }
    }

please help for the first one error "Runtime Error".. thank you :)