Questions tagged [android-ksoap2]

a lightweight and efficient SOAP client library for the Android platform

The ksoap2-android project provides a lightweight and efficient SOAP client library for the Android platform.

It is a fork of the kSOAP2 library that is tested mostly on the Android platform, but should also work on other platforms using Java libraries. It is still using Java 1.3 so should work fine on JavaME, Blackberry and so on.

ksoap2-android has been consistently enhanced and expanded with more features. It is actively maintained and we welcome bug fixes and contributions. Releases are done semi regularly with community contributions in the form of enhancements and more.

More information on the website and github repository and mailing list.

740 questions
3
votes
2 answers

RunTimeException:cannot serialize: Error to send byte array from android to java application through ksoap

I have to Send Byte Array to my java application From Android device.I m using ksoap2 for that in android and i have created web service in java with axis2 to receive that byte array and create file at server for further processing. Let me Give you…
BhavikKama
  • 8,566
  • 12
  • 94
  • 164
3
votes
3 answers

KSOAP2 java.lang.RuntimeException: Cannot serialize

I am trying to use a method from a .net web service. The code behind for the web service has a '/' at the end of the namespace [WebService(Namespace = "http://www.mynamespace.com/")] [WebServiceBinding(ConformsTo =…
Theo
  • 2,609
  • 1
  • 26
  • 27
3
votes
3 answers

KSOAP2 double ID exception in android

I am using KSOAP2 in my android application, and when I try to perform a particular webservice request, I got this "double ID" exception. Where i'am going wrong ? Please help me. SoapSerializationEnvelope envelope = new…
sachi
  • 2,122
  • 7
  • 30
  • 46
3
votes
0 answers

Bypassing Proxy in KSoap 2 in Android app in ICS 4.0.4

I have an Android application which connects to an HTTPS connection via the HttpTransportSE class of KSOAP2. As of ICS 4.0.4, several 3G operators have been pushing incorrect definitions (ie. proxy server ip as the requested domain in the header…
3
votes
1 answer

android: kSOAP how to get list of country from an string returned by kSOAP response

My kSOAP web service return the xml into this format how can I fetch country_name from this anyType{country=anyType{country_name=Egypt; }; country=anyType{country_name=Pakistan; }; country=anyType{country_name=United Kingdom; }; …
Umer Abid
  • 397
  • 1
  • 14
3
votes
1 answer

Android ksoap object mapping

How can I map the response of SoapObject to MyObject using KvmSerializable? I read wiki on ksoap2-android. But still cant do it. I added a map to the envelope: envelope.addMapping(NAMESPACE, "return", new GoodsObject().getClass()); But I get an…
ddy64
  • 33
  • 1
  • 6
3
votes
1 answer

How to prevent the dreaded KSOAP2 Connection Time Out in Android

I have been trying to prevent a KSOAP2 call from timing out when requesting data from my Axis2 Web Service through Android but have been unable to do so. A background on the Web Service. My Web Service is running on Apache Tomcat server and is used…
Shane Doyle
  • 1,066
  • 1
  • 12
  • 16
3
votes
1 answer

XML parsing using kasoap2-Android

i have difficulties parsing this structure xml: 1 1 2012-03-28…
Streetboy
  • 4,351
  • 12
  • 56
  • 101
2
votes
2 answers

Generation of complex SOAP Envelope in accordance with OASIS WS Security specification using KSOAP2?

I am new to Android Development. I need to consume a .NET web service which is designed in accordance with OASIS Web Services Security specification. I am using KSOAP2 latest API to generate SOAP envelope. I need to send SOAP request strictly in…
2
votes
1 answer

Unable to Login via KSOAP ANDROID

I am unable to Login. It is throwing me errors. Can you please help, I used : How to call a local web service from an Android mobile application I tried this code, but the trouble is it is giving me errors. One thing to keep in mind is If My login…
khosla
  • 29
  • 1
  • 6
2
votes
3 answers

Android: How can I convert the WSDL file in something understable by Android

I have a litle problem: I have a WSDL file and i would like to use it on android developpement. For exemple, for the iPhone, I found this website: http://sudzc.com/ which converts the WSDL in a code suitable for iOS but how can I do this on Android.…
Milos Cuculovic
  • 19,631
  • 51
  • 159
  • 265
2
votes
1 answer

calling magento web service from android client using kSoap2

i am trying to access a magento web service from a android client.which should return a session id.i hav already done this uing java client using apache and am successful in calling the method. How ever i am getting xmlpullparser exception when…
maddy
  • 4,001
  • 8
  • 42
  • 65
2
votes
1 answer

Double with ksoap2 on Android?

How do I add a double property to a ksoap2 request? request.addProperty("doubleProperty", 1.0); There are no nice and clear answers on the web.
Zac Altman
  • 1,215
  • 4
  • 25
  • 37
2
votes
2 answers

Android apk not workin

While running application from android studio application works fine but after build release apk it is not working but debug apk works fine. i want to run release apk in the device.
Mahammad Momin
  • 600
  • 2
  • 13
2
votes
1 answer

How to send soap request through Android?

How can I send a request to this service?
user878588
  • 59
  • 9