kSOAP is a SOAP web service client library for constrained Java environments such as Applets or J2ME applications.
Questions tagged [ksoap]
297 questions
50
votes
6 answers
How to call a .NET Webservice from Android using KSOAP2?
I have a problem while calling a webservice. I have a .NET web service on the server, and I am using KSOAP2 (ksoap2-j2se-full-2.1.2) in Android. While running the program I got an runtime exception like "org.ksoap2.serialization.SoapPrimitive". What…

Rajapandian
- 7,059
- 11
- 37
- 27
24
votes
2 answers
Difference Between SOAP and KSOAP
In web-service fundamental, I have heard about "SOAP" and "KSOAP."
What are SOAP and KSOAP?
What is the difference between them?
Why should I use one instead of the other one?

Nikunj Patel
- 21,853
- 23
- 89
- 133
12
votes
1 answer
When to use Soapobject and SoapPrimitive
I have been working with ksoap2 lately.
I am still confused whether what is the EXACT difference between SoapObject and SoapPrimitive.
And when to use them.
I guess its something related to string and arrays. Is it true?
I found some links but got…

Shachi
- 1,858
- 3
- 23
- 41
10
votes
2 answers
How to retrieve array of objects as a result from KSOAP web service in Android?
If I am trying to retrieve first array using (String) response.getProperty(0); but it was returning me a full string.
**Here is the code of webservice calling**
public static Object getResponse(String methodName, String actionName,…

Nik88
- 1,037
- 10
- 21
8
votes
2 answers
How to call a local web service from an Android mobile application
From the past few days, I have been working on an Android code to call a local web service. I am using ksoap libraries for Android to call my SOAP web service created in .NET. However, I feel there is something wrong in my code as the response I get…

Parth Doshi
- 4,200
- 15
- 79
- 129
8
votes
6 answers
Basic HTTP authentication using KSOAP for android
I need to consume a SOAP web service using Android.
The issue is that before request for a particular function I need to authenticate a client using basic http request.
Do you know how to do this using KSOAP?
Until this moment I have tried using…

borys86
- 1,894
- 2
- 13
- 13
5
votes
1 answer
Store base64 encoded string as file
I have a web service that returns a base64 encoded string of a PDF file.
I want to save this file to the SD Card. but when i try do this, adobe reader tells me that the file is corrupt. obviously i am not saving it properly.
byte[] pdfAsBytes =…

AhmedW
- 536
- 2
- 5
- 21
5
votes
3 answers
Removing i:type field in SOAP request generated by kSoap2 on Android
I already tried reading the internet about my issue, but I could not find the right information I need, so I try to explain my issue:
I am using kSoap2 to "talk" to a webservice over SOAP.
To generate my SOAP request I use the following code:
//…

Niels_D
- 51
- 1
- 4
4
votes
1 answer
Warning: Ignoring InnerClasses attribute for an anonymous inner class(org.ksoap2.transport.KeepAliveHttpsTransportSE$1)
When compiling an Android project with ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar as a referenced library (external jar) I get this warning:
[2012-03-20 11:50:50 - AddressBook] Dx warning: Ignoring InnerClasses attribute for an…

jennifer
- 8,133
- 22
- 69
- 96
4
votes
1 answer
Parse ksoap response
In response by
transport.call(SOAP_ACTION, envelope, headerList);
in debug mode in responseDump I have xml like this

Gorets
- 2,434
- 5
- 27
- 45
4
votes
1 answer
Null Pointer Exception making it difficult to pass an Array using ksoap
I have array defined like this :
ArrayList items = new ArrayList();
I have populated that array now and I wish to send it via a web service to my remote database.
Here is the method in my Android code that does the ksoap work
…

Parth Doshi
- 4,200
- 15
- 79
- 129
4
votes
2 answers
Android, Ksoap, webService
help me, i'm on it about 3 weeks searching the entire www and cant make it work!
I have a WS and just want to make my app have the response. but I after correct everything unfortunately always get the folowing error!
08-09 15:29:30.930:…

Jr.
- 43
- 1
- 4
4
votes
1 answer
Error in authentication when subscribing to a sharepoint webservice using ksoap2-android
I am writing an Android application that will use the getlist() method of the lists.amx service in sharepoint 2010. I am using ksoap2-android to handle my soap messages. When I try to authenticate I get an xmlpullparser exception expected…

Aubie2
- 303
- 3
- 12
4
votes
1 answer
java.io.IOException: HTTP request failed, HTTP status: 500 (ksoap2)
I'm using KSOAP2, when sending request to the server and got java.io.IOException: HTTP request failed, HTTP status: 500 in the line httpTransport.call(SOAP_ACTION, envelope) , but server works, I have checked it using SoapUI. What can be the…

Lucky_girl
- 4,543
- 6
- 42
- 82
4
votes
0 answers
ksoap2 HttpsTransportSE: not working with certificate
Has anybody ever solved this issue by NOT making a face TrustManager????
Seriously, all answers are "oh use a fake TrustManager and trust all certificates".
I have a root CA certificate that I must use to connect to the server.
Setting a SSLContext…

user1296524
- 77
- 7