Yes.. it is what i'm trying to do.
Now: one thing at a time:
1- Soap over https:
I use ( in Android! ;-) ) ksoap2.
I made a ws with c#.net and i configure IIS to use https and self
signed certificate.
using http i can consume the ws both form my browser and from android
in this way:
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
...
...
final String SOAP_ACTION = "http://tempuri.org/GetCustomerByRagSoc";
final String METHOD_NAME = "GetCustomerByRagSoc";
final String NAMESPACE = "http://tempuri.org/";
/* The URL is obscured for privacy ;-) */
final String URL = "http:/*****************/******WS/***Service.asmx?
wsdl";
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("key", key);
request.addProperty("pageNumber", page);
request.addProperty("itemForPage", itemForPage);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try {
androidHttpTransport.call(SOAP_ACTION, envelope);
Object resultRequestSoap = envelope.getResponse();
...
...
...
If i use https i can consume the ws from browser ( ignoring the
warning that the certificate is not secure because it is self
signed )..
But using https from android i have this exception: "Not trusted
certificate". How can i add my certificate to the trusted certificate
in android? or ignore this check?
2- Soap basic authentication : i'll think on this after..
Thanks
O.
On Dec 4, 1:10 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> Well, the question involved kSOAP, which is indeed what most people
> use to build a SOAP client on Android (and it's also used on other
> mobile platforms). The question was vague, yes, but I believe he is
> trying to make a SOAP over HTTP client on Android.
>
> On Dec 3, 1:24 pm, Michael <[EMAIL PROTECTED]> wrote:
>
> > This is a bit off-topic on an Android development group, as there's no
> > Android content.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---