Questions tagged [ksoap2]

A lightweight and efficient SOAP engine suitable for J2ME or constrained java devices.

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…
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…
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.+' …
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…
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
  • 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…
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.
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…
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…
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…
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…
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 =…
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:
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…
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,…
Udaykiran
  • 5,705
  • 9
  • 41
  • 75
1
2 3
80 81