A lightweight and efficient SOAP engine suitable for J2ME or constrained java devices.
Questions tagged [ksoap2]
1207 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…
![](../../users/profiles/111436.webp)
Rajapandian
- 6,699
- 11
- 35
- 27
35
votes
6 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…
![](../../users/profiles/81398.webp)
Bjarke Freund-Hansen
- 23,930
- 22
- 87
- 133
29
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.+'
…
![](../../users/profiles/481559.webp)
Axel GeNuS
- 490
- 1
- 4
- 10
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…
![](../../users/profiles/360508.webp)
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.…
![](../../users/profiles/1496186.webp)
ersinyildiz
- 319
- 1
- 2
- 13
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…
![](../../users/profiles/383351.webp)
Qing
- 2,909
- 7
- 23
- 31
15
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.
…
![](../../users/profiles/698555.webp)
user698555
- 153
- 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…
![](../../users/profiles/409766.webp)
rallat
- 1,245
- 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…
![](../../users/profiles/2142752.webp)
Mukesh
- 413
- 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…
![](../../users/profiles/1156811.webp)
Joao Sousa
- 491
- 4
- 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.
@Override
protected JSONObject doInBackground(JSONObject... params) {
String result;
HttpParams httpParameters = new BasicHttpParams();
// Set the timeout in…
![](../../users/profiles/932052.webp)
Quintin Balsdon
- 4,546
- 8
- 45
- 87
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 =…
![](../../users/profiles/1268139.webp)
cham
- 609
- 3
- 9
- 19
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:
…
![](../../users/profiles/499448.webp)
Boardy
- 31,944
- 94
- 238
- 411
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…
![](../../users/profiles/1999190.webp)
Shachi
- 1,708
- 3
- 22
- 39
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,…
![](../../users/profiles/304785.webp)
Udaykiran
- 5,705
- 9
- 41
- 75