You don't need any webservice to do this conversion. Android phones have more than enough power to run the simple formula: c = (5/9)*(f-32) F -> C and f =(9/5)*c+32 C->F
Thanks On Wed, Sep 7, 2011 at 8:51 PM, arun kumar <arun.kata...@gmail.com> wrote: > > > On Wed, Sep 7, 2011 at 8:50 PM, arun kumar <arun.kata...@gmail.com> wrote: > >> >> HI am new to webservice concept i created consuming wsdl file using >> soap....but the output am not getting ....am converting the temperture from >> celsius to farenheit.... >> >> import org.ksoap2.SoapEnvelope; >> import org.ksoap2.serialization.SoapObject; >> import org.ksoap2.serialization.SoapPrimitive; >> import org.ksoap2.serialization.SoapSerializationEnvelope; >> import org.ksoap2.transport.HttpTransportSE; >> import android.app.Activity; >> import android.os.Bundle; >> import android.widget.TextView; >> >> public class Tracking 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 String URL = " >> http://www.w3schools.com/webservices/tempconvert.asmx"; >> >> private TextView lblResult; >> >> /** Called when the activity is first created. */ >> @Override >> public void onCreate(Bundle savedInstanceState) { >> super.onCreate(savedInstanceState); >> setContentView(R.layout.main); >> >> lblResult = (TextView) findViewById(R.id.textView1); >> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); >> >> >> request.addProperty("celcius","32"); >> SoapSerializationEnvelope envelope = new >> SoapSerializationEnvelope(SoapEnvelope.VER11); >> >> envelope.dotNet = false; >> envelope.setOutputSoapObject(request); >> HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); >> try { >> androidHttpTransport.call(SOAP_ACTION, envelope); >> >> SoapPrimitive resultsRequestSOAP = (SoapPrimitive) >> envelope.getResponse(); >> >> lblResult.setText("status:" + >> resultsRequestSOAP.toString()); >> } catch (Exception e) { >> } >> } >> } >> > > > Thanks in advace..... > > > -- > 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 > -- ------------------ Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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