package com.com;
import java.io.IOException; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import org.xmlpull.v1.XmlPullParserException; import android.util.Log; public class WebServicesDemo extends Thread{ private static final String SOAP_ACTION = "http://quiver.in/mis/ WriteAndroideData"; public static final String NAME_SPACE = "http://quiver.in/mis/"; public static final String URL = "http://quiver.in/mis/ GPSManager.asmx"; public static final String METHOD = "WriteAndroideData"; public void run(){ SoapObject request = new SoapObject(NAME_SPACE, METHOD); request.addProperty("device_id", "13" ); request.addProperty("id", 1 ); request.addProperty("lat", 100); request.addProperty("lon", 200 ); request.addProperty("name", "gajendra" ); request.addProperty("village", "gwalior"); request.addProperty("mobile_no", "8982820806" ); request.addProperty("district", "abc" ); request.addProperty("gram_name", "msc"); request.addProperty("block", "c" ); request.addProperty("date", "21" ); request.addProperty("time", "3"); request.addProperty("product", "m"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE transport = new HttpTransportSE(URL); try { String TAG = null ; Log.i(TAG , "......Send Data "); transport.call(SOAP_ACTION, envelope); } catch (IOException e) { e.printStackTrace(); } catch (XmlPullParserException e) { e.printStackTrace(); } SoapObject response = (SoapObject)envelope.bodyIn; } } -- 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