A lightweight and efficient SOAP engine suitable for J2ME or constrained java devices.
Questions tagged [ksoap2]
1195 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
36
votes
5 answers
Generating Java from WSDL for use on Android with ksoap2-android SOAP client?
I have to access a existing SOAP webservice from an Android application. I have been provided some WSDL files describing the webservice. Reading some other answers here on SO, it seems ksoap2-android is the way to go, with respect to which SOAP…

Bjarke Freund-Hansen
- 28,728
- 25
- 92
- 135
33
votes
8 answers
Adding kSOAP dependency to Gradle project
I'm trying to make kSOAP working in my Android project with Gradle.
This is my project's build.gradle file:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
…

Axel GeNuS
- 610
- 1
- 6
- 11
24
votes
1 answer
How to consume Session dependent WCF services using Ksoap2-Android
I am using Ksoap2-Android for consuming the WCF Services.
For the dotnet client we keep the allowCookies="true" in our binding configuration and it sends the same sessionid and keeps my sessions intact in my WCF services (My services…

Vipul
- 241
- 1
- 3
22
votes
2 answers
How to determine method names and parameters in wsdl web service
I have few problems with Web Services and KSoap library. I searched this topic before asking but couldn't find anything.
Here is the question : I have an url like http://www.anyting.com/bulkService.wsdl but i haven't got any documentation about it.…

ersinyildiz
- 328
- 1
- 2
- 14
18
votes
4 answers
How to call a WCF service using ksoap2 on android?
Here is my code
import org.ksoap2.*;
import org.ksoap2.serialization.*;
import org.ksoap2.transport.*;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class ksop2test extends Activity {
/** Called…

Qing
- 3,029
- 7
- 25
- 31
16
votes
2 answers
how to set soap Header using ksoap2 - android
I need to set the soap header information as part of authentication of a web method. I'm using ksoap2 API to call .NET web service. Here is the soap header with request.
…

user698555
- 163
- 1
- 1
- 7
14
votes
4 answers
KSOAP 2 Android with HTTPS
I am using KSOAP2 to manage SOAP in Android but it use https for the SOAP url and I am getting this error: javax.net.ssl.SSLException: Not trusted server certificate
A normal error because the certificate is untrusted, but anyone knows how to…

rallat
- 1,275
- 1
- 10
- 16
14
votes
3 answers
App crash on device HTC M8 with OS Lollipop for web service call
App crashing on Android Lollipop when calling web service using ksoap.
Please see error log
java.lang.NoSuchFieldError: No instance field headerOut of type [Lorg/kxml2/kdom/Element; in class Lorg/ksoap2/serialization/SoapSerializationEnvelope; or…

Mukesh
- 402
- 4
- 19
13
votes
2 answers
Checking envelope with Ksoap2 (Android)
Coming from iOS I'm having a pretty hard time with web services in Android. I've spent several hours trying examples, reading blogs, and communicating successfully with a web service still seems to be a question of luck....
Bottom line and I want to…

Joao Sousa
- 491
- 5
- 17
13
votes
8 answers
AsyncTask HttpPost execute fails on 3G, but works on Wifi
I need to do a Http post of some strings to a web service. I am using KSoap. (partly based on this answer by kuester2000)
@Override
protected JSONObject doInBackground(JSONObject... params) {
String result;
HttpParams httpParameters =…

Quintin Balsdon
- 5,484
- 10
- 54
- 95
13
votes
4 answers
ksoap2 org.xmlpull.v1.xmlpullparserexception expected start_tag error
Below is my code, which I have written to validate user log in credentials. The web service written using .net
private static final String SOAP_ACTION = "http://tempuri.org/getCredentials";
private static final String OPERATION_NAME =…

Cham
- 787
- 3
- 11
- 25
12
votes
2 answers
Receiving and processing a Dictionary> from Soap using KSoap2
I am working on an android application which calls a soap function and returns a Diction>.
The response looks like the below:
…

Boardy
- 35,417
- 104
- 256
- 447
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
11
votes
3 answers
Out of memory on a byte allocation (Bitmap as String to webservice using soap)
Am having a bitmap , so I want to upload a webserivceas string and want to retrive the string.
For converting bitmap to string am using:
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 100,…

Uday
- 5,933
- 9
- 44
- 76