There are multiple options, depending upon how your existing code is written, and no one here can give you a complete tutorial on that. There are a few examples out there, if you search for it.
I would also suggest to see the code for K9Mail. It's open source, you can have a look. -Kumar Bibek http://techdroid.kbeanie.com On Sep 27, 8:57 am, Gold <[email protected]> wrote: > Hi, > > yes I create self signed certificate only..now what > should i do to run the app...? > > Thanks in advance, > Gold > > On Sep 27, 12:24 am, DanH <[email protected]> wrote: > > > Not true. Likely, but not certain. > > > On Sep 26, 1:18 pm, Kostya Vasilyev <[email protected]> wrote: > > > > With the server located at 192.168.1.2 it most certainly is a > > > self-signed certificate. > > > > -- Kostya > > > > 26.09.2010 21:39, DanH пишет: > > > > > Note that this most likely means that the server's certificate is > > > > signed by an "authority" that the phone doesn't recognize, because it > > > > doesn't have that "authority's" root certificate installed. It seems > > > > to be a problem with most phones that they only come with a small > > > > subset of the root authority certificates that desktop IE or Firefox > > > > or Opera comes with. > > > > > On Sep 25, 2:04 pm, Gold<[email protected]> wrote: > > > >> hi..All, > > > > >> I access asp.net web service..! My web service name > > > >> is "https://192.168.1.2/Sample/service.asmx" > > > > >> But it will show the following Exception > > > > >> " javax.net.ssl.SSLException: Not trusted server > > > >> certificate" > > > > >> This is my code > > > > >> import android.app.Activity; > > > >> import android.os.Bundle; > > > >> import android.widget.TextView; > > > > >> import org.ksoap2.SoapEnvelope; > > > >> import org.ksoap2.serialization.SoapObject; > > > >> import org.ksoap2.serialization.SoapPrimitive; > > > >> import org.ksoap2.serialization.SoapSerializationEnvelope; > > > >> import org.ksoap2.transport.HttpTransportSE; > > > > >> public class Start extends Activity > > > >> { > > > > >> private static final String SOAP_ACTION = "http://tempuri.org/ > > > >> OnAvailable"; > > > >> private static final String METHOD_NAME = "OnAvailable"; > > > >> private static final String NAMESPACE = "http://tempuri.org/"; > > > >> private static final String URL = "https://192.168.1.2/Sample/ > > > >> service.asmx"; > > > > >> /** Called when the activity is first created. */ > > > >> �...@override > > > >> public void onCreate(Bundle savedInstanceState) > > > >> { > > > >> super.onCreate(savedInstanceState); > > > >> setContentView(R.layout.main); > > > > >> TextView tv = ((TextView)findViewById(R.id.resultView)); > > > > >> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); > > > >> request.addProperty("ID","Started"); > > > > >> SoapSerializationEnvelope envelope = new > > > >> SoapSerializationEnvelope(SoapEnvelope.VER11); > > > >> envelope.setOutputSoapObject(request); > > > >> envelope.dotNet=true; > > > > >> HttpTransportSE androidHttpTransport = new > > > >> HttpTransportSE(URL); > > > >> try > > > >> { > > > >> androidHttpTransport.call(SOAP_ACTION, envelope); > > > >> SoapPrimitive result = > > > >> (SoapPrimitive)envelope.getResponse(); > > > > >> String results = String.valueOf(result); > > > >> tv.setText(results); > > > >> } > > > >> catch (Exception excep) > > > >> { > > > >> excep.printStackTrace (); > > > >> } > > > > >> } > > > > >> } > > > > >> what was the problem.. please help me...! > > > > >> Thanks in advance, > > > >> Gold > > > > -- > > > Kostya Vasilyev -- WiFi Manager + pretty widget > > > --http://kmansoft.wordpress.com > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

