Andro2015 / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

Server with SOPA Service and HTTPS Problem #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Consume a SOAP service in a server with a valid certificate and https

What is the expected output? What do you see instead?

It only give me an exception "Not trusted server certificate" but the 
certificated is valid and it works with all the web browsers that I try.

What version of the product are you using? On what operating system?

Android 2.2 SDK, ksoap 2.5.4. 

Please provide any additional information below.

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

request.addProperty("user",user);
request.addProperty("pass",password);

SoapSerializationEnvelope envelope = new 
SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);

int Timeout = 30000;

HttpsTransportSE androidHttpTransport = new 
KeepAliveHttpsTransportSE(URL,443,"/Android/service.asmx",Timeout);
// I also try with HttpTransportSE

androidHttpTransport.call(SOAP_ACTION, envelope);

Object result = (Object)envelope.getResponse();

Original issue reported on code.google.com by de...@seineko.com on 22 Jun 2011 at 5:01

GoogleCodeExporter commented 9 years ago
Does it work with a web browser on the android device.... 

Original comment by mosa...@gmail.com on 22 Jun 2011 at 5:13

GoogleCodeExporter commented 9 years ago
No. I just try and it said the same. The certificate is from RapidSSL / 
Geotrust. 

Original comment by de...@seineko.com on 23 Jun 2011 at 7:33

GoogleCodeExporter commented 9 years ago
I just solved the "Not Trusted" problem b y installing other certificates in 
the server: 

https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=conten
t&id=SO16590

Now I am having an XmlPullParserException when I made the call. I don´t know 
why because the same code works in http (I only change everything to https and 
use KeepAliveHttpsTransportSE)

Original comment by de...@seineko.com on 23 Jun 2011 at 9:32

GoogleCodeExporter commented 9 years ago
Debug it as documented on the wiki. I will close this issue since that seems 
unrelated to the initial problem.

Original comment by mosa...@gmail.com on 27 Jun 2011 at 9:50