use above link in place of asmx file
http://www.w3schools.com/webservices/tempconvert.asmx?wsdl
i need help regarding how you make webservices with Visual studio such that
the url you is well i, mean "www.w3schools.com" Until i used only local
host. I'm unable to publish with w3schools

On Mon, Jun 25, 2012 at 11:09 AM, MyName? ? <developer.it.a...@gmail.com>wrote:

> a agree
>  USE KSOAP2 .. good luk
>
> On 25 June 2012 10:53, shashi asanka <shashi.kalut...@gmail.com> wrote:
>
>> package a.b.c;
>>
>> import org.ksoap2.SoapEnvelope;
>> import org.ksoap2.serialization.SoapObject;
>> import org.ksoap2.serialization.SoapPrimitive;
>> import org.ksoap2.serialization.SoapSerializationEnvelope;
>> import org.ksoap2.transport.*;
>>
>> import android.app.Activity;
>> import android.net.http.AndroidHttpClient;
>> import android.os.Bundle;
>> import android.view.View;
>> import android.view.View.OnClickListener;
>> import android.widget.Button;
>> import android.widget.EditText;
>> import android.widget.TextView;
>>
>> public class Test1Activity extends Activity {
>>
>>     private static final String SOAP_ACTION = "
>> http://tempuri.org/CelsiusToFahrenheit";;
>>     private static final String METHOD_NAME="CelsiusToFahrenheit";
>>     private static final String NAMESPACE="http://tempuri.org/";;
>>     private static final String URL="
>> http://www.w3schools.com/webservices/tempconvert.asmx";;
>>
>>     TextView tv;
>>     Button b;
>>     EditText et;
>>
>>     @Override
>>     public void onCreate(Bundle savedInstanceState) {
>>         super.onCreate(savedInstanceState);
>>         setContentView(R.layout.main);
>>
>>         tv=(TextView) findViewById(R.id.tttttt);
>>         et=(EditText)findViewById(R.id.editText1);
>>         b=(Button) findViewById(R.id.button1);
>>
>>         b.setOnClickListener(new OnClickListener() {
>>
>>             @Override
>>             public void onClick(View v) {
>>                 // TODO Auto-generated method stub
>>                    SoapObject request= new
>> SoapObject(NAMESPACE,METHOD_NAME);
>>
>>                     request.addProperty("Celsius",
>> et.getText().toString());
>>                     SoapSerializationEnvelope ssevp= new
>> SoapSerializationEnvelope(SoapEnvelope.VER11);
>>                     ssevp.dotNet=true;
>>                     ssevp.setOutputSoapObject(request);
>>                     HttpTransportSE ht= new HttpTransportSE(URL);
>>                     try
>>                     {
>>                         ht.call(SOAP_ACTION, ssevp);
>>                         SoapPrimitive
>> sp=(SoapPrimitive)ssevp.getResponse();
>>                         tv.setText("RS  = "+sp);
>>                     }
>>                     catch(Exception e)
>>                     {
>>
>>                     }
>>
>>             }
>>         });
>>
>>
>>
>>         //Celsius
>>
>>
>>        // AndroidHttpTransport at= new AndroidHttpTransport(URL);
>>
>>
>>
>>     }
>>
>>
>> }
>>
>>
>>
>> USE KSOAP2 .. good luk
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
>
>
>
>
>
>
>
>
>          (Deepak Mamdapure)
>
>  You only live once, once is enough.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

>From :TruByte Software Solutions Pvt Ltd
+91 9866984043 | www.trubytesolutions.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to