I successfully called some relatively complex webservices with
kSOAP2.


SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty([PropertyInfo object], [SoapObject object]);

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

HttpTransportSE transport = new HttpTransportSE(URL);
try {
    transport.call(SOAP_ACTION, envelope);
    SoapObject response = (SoapObject)envelope.bodyIn;
}
catch (Exception e){
}


The response is built up like a DOM tree so you can navigate through
it easily.
For example:

SoapObject object = (SoapObject)response.getProperty("MyObject");
or
int nrProperties = response.getPropertyCount();

So yes, I would advice it.
I used ksoap2-android-full-2.1.2.jar

Good luck.


On Jul 27, 2:13 pm, Ram <[email protected]> wrote:
> Hi All,
>
> I want to know wether kSOAP2 is the right choice to consume the web
> service with Android or not. If yes then can somebody pls suggest me
> the right approach of the process and with the right .jar file that is
> required for the process.
> If not, then which is the approach to consume the webservice from
> Android.
>
> Seniors pls help.
>
> Thanks
> Ram

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to