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
5
votes
1 answer

Find SOAPAction from a WSDL

My requirement is to call a web service from Android and display the result in a nice manner. But inside the web service's WSDL I don't find a SOAPAction. The WSDL looks like this:
Reza.Hoque
  • 2,690
  • 10
  • 49
  • 78
5
votes
2 answers

Ksoap2 cannot serialize exception on Android 2.2 (using user-defined object)

I know that there are many posts on this issue. However they are builded on Android 3.0 or above (using AsyncTask). I couldn't find my solution. There is a problem about getting an information from a webservice. Here is my code: package…
skynyrd
  • 942
  • 4
  • 14
  • 34
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
0 answers

ksoap2 on android failing to parse MOTM-encoded response

As of subject. I run a grails web application, exposing a service as a web-service via the Axis2 plugin (it then makes use of Apache Axis2). Everything's fine, except that Android running ksoap2 fails when processing http response. The execption…
znpy
  • 474
  • 2
  • 10
4
votes
2 answers

Web-service with KSOAP

I am working on a Currency Converter application, and I cannot get a proper output (I am getting a zero). I am using the webservice from http://www.webservicex.net/ws/WSDetails.aspx?CATID=2&WSID=10. The WSDL declares the function as:
Knaks
  • 209
  • 3
  • 11
4
votes
2 answers

How to pass String array to webservice using ksoap2?

I am having a Web Client in Android using ksoap2 but I can't pass the string array as a parameter to the webservice. Here's my code String[] items={"hello","world"}; request.addproperty("str",items);
user903575
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Android web-services using KSOAP2 and HTTPS

I'm trying to write a webservice for android using JAVA and KSOAP2. SOAP is the only protocol I can use and ReST is not an option. So, I successfully created the SOAP request and connected to the server using HTTP. But, I need HTTPS as sensitive…
Andrew Anderson
  • 457
  • 4
  • 14
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…
4
votes
1 answer

Webservice Http Authentication - KSOAP2 on Android

I have been searching the web for a while now, but wasn't able to find a appropriate solution for my problem. This article does not really help either, because the classes and methods used are not present in ksoap2 for android: Basic HTTP…
4
votes
2 answers

why does reflection slow down android phone

I read many times that reflection will slow down the phone performance. How true is this? For example in my case, I get some parameters from a web service which have the same name as the parameters of a class I have in my android app. so I just set…
ccot
  • 1,875
  • 3
  • 36
  • 54
4
votes
1 answer

Parsing an XML string into a kXML Element

I'm writing an Android app that connects to a SOAP webservice using kSOAP2, and I have a kXML element where I would like to inject a child based on an XML string I got from elsewhere (a REST API). I have the following code: Element samlHeader = new…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
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
1 answer

How to create proper soap envelope (request xml) in code while using KSoap2?

This is the soap request as obtained from SoapUi by feeding the wsdl.
Dexter
  • 4,036
  • 3
  • 47
  • 55
4
votes
0 answers

ksoap with https gives HTTPstatus: 404

I have a .net web service. I can access it with Android ksoap2 library using http without a problem. When using https, I get Http status: 404. I get my code generated using www.wsdl2code.com I am sure that service part is correct, because I have a…
user963935
  • 493
  • 4
  • 20
4
votes
3 answers

Android: ksoap, "UnknownHostException:host is unresolved" depending on API

thanks for your attention. I have a problem on using ksoap2 to call a webservice via android. I have some function to call a webservice. public String CallWebServiceFunction() { String WSDL_TARGET_NAMESPACE = "http://MyWeb.com/"; …
user2775914
  • 193
  • 1
  • 9
1 2
3
49 50