calling .Net Web services in Android Failed
<p>I am new with Android programing.</p>

<p>I have an error in this line:</p>

<pre><code>androidHttpTransport.call(SOAP_ACTION, envelope);
</code></pre>

<p>exception ="error(s)_during_the_evaluation"</p>

<p>I tried at first to call my .NET Web Service and it failed.
To isolate the problem I try to call w3schools Web Service.</p>

<p><strong>my Android Code</strong> </p>

<pre><code>public class Hello_ProjActivity extends Activity {
    /** Called when the activity is first created. */

    private static final String SOAP_ACTION = "http://microsoft.com/webservices/CelsiusToFahrenheit";
    private static final String METHOD_NAME = "CelsiusToFahrenheit";//"AndroidTest";//"GetAppData4";// "HelloWorld";
    private static final String NAMESPACE = "http://microsoft.com/webservices/";//"http://tempuri.org/";

    private static final String URL = "http://www.w3schools.com/webservices/tempconvert.asmx";


    //http://192.168.2.104/SB_Site/WS_Android.asmx/HelloWorld

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.main);

        //Start my code
        //create layout
        TableLayout layout1 = new TableLayout (this);

        /**Start create textView**/
        TextView tv = new TextView(this);
        tv.setText("Hello, Androiddddd  xxx");
        //setContentView(tv);
        layout1.addView(tv);
        /**End create textView**/

        /**Start Create button Call WebSrvice**/
        Button btn = new Button(this); 
        btn.setText("MyButton"); 
        btn.setWidth(20);
        btn.setHeight(20);

        //set btn event listener
        btn.setOnClickListener(new OnClickListener() {
             public void onClick(View view) {
                 WS_Caller();
                }
        });

        layout1.addView(btn);
        /**End Create button Call WebSrvice**/

        /**Start Create button Create Xml**/
        Button btn2 = new Button(this); 
        btn2.setText("Create Xml"); 
        btn2.setWidth(20);
        btn2.setHeight(20);

        //set btn event listener
        btn2.setOnClickListener(new OnClickListener() {
             public void onClick(View view) {

                 CreateXml();
                }
        });

        layout1.addView( btn2);
        /**End Create button Create Xml**/

         /********Start Create Alert Dialog**************************/
        AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);

        alt_bld.setMessage("Do you want to close this window ?");//.setCancelable(false);

        AlertDialog alert = alt_bld.create(); 
        // Title for AlertDialog 
        alert.setTitle("Title");

        alert.setButton("OK", new DialogInterface.OnClickListener() {  
              public void onClick(DialogInterface dialog, int which) {  
                return;  
            } });   

        alert.show();


        super.setContentView(layout1);

        /********End Create Alert Dialog**************************/

        //generateAppObj();
    }


public String WS_Caller()
    {
        //1
        SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);

        //2 --set webservice params

        PropertyInfo pi = new PropertyInfo();
        pi.setName("Celsius");
        pi.setValue(2);
        pi.setType(int.class);
        Request.addProperty(pi);

      /*  PropertyInfo pi2 = new PropertyInfo();
        pi2.setName("Operand2");
        pi2.setValue(5);
        pi2.setType(int.class);
        Request.addProperty(pi2);
        */
        //3
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.dotNet = true;
        envelope.setOutputSoapObject(Request);

        //4
        HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

        //5  
        try {  

             androidHttpTransport.call(SOAP_ACTION, envelope);
             SoapObject response = (SoapObject)envelope.getResponse();
             int result =  Integer.parseInt(response.getProperty(0).toString()); 

            }
        catch (Exception e) { 
            //tv2.setText(e.getMessage()); 
        }

        return "xxx";
    }
}
</code></pre>

<p><strong>AndroidManifest.xml :</strong> </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.helloandroid"
    android:versionCode="1"
    android:versionName="1.0" &gt;

    &lt;uses-sdk android:minSdkVersion="14" /&gt;

    &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt;
    &lt;!--&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
    --&gt;
    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:label="@string/app_name"
            android:name=".Hello_ProjActivity" &gt;
            &lt;intent-filter &gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                &lt;!-- David Add --&gt;
                &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;/application&gt;

&lt;/manifest&gt;
</code></pre>
