Questions tagged [ksoap2]

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

1195 questions
4
votes
1 answer

set encoding utf-8 for ksoap2 in android

I have problem with ksoap2, i want set encoding utf-8 for ksoap2 in android, or set content-type in header is text/xml,charset=utf=8, my code: //set encoding envelope.encodingStyle = "utf-8"; //set header envelope.headerOut = new…
ssPerman01
  • 326
  • 1
  • 2
  • 7
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
3 answers

Transferring byte array from soap service to android

I have an android client that makes a request to a soap service. The soap service reads an image into a series of bytes and returns a byte array (quite a large one). Would this be seen as a primitive transfer type? The reason I ask is because I have…
Joeblackdev
  • 7,217
  • 24
  • 69
  • 106
4
votes
3 answers

could not find class SoapObject

Have tried the KSOAP2 library from a console application using the Eclipse IDE talking to a .NET web service located at http://www.w3schools.com/webservices/tempconvert.asmx. No problem, easy and straight forward. Embedded the code in a simple…
Night Coder
  • 53
  • 1
  • 5
4
votes
3 answers

java.lang.ClassCastException: org.ksoap2.serialization.SoapPrimitive?

I am calling a web service from my android client application. After getting response when i am trying to display it i am getting ClassCastException. Following is my code: public void onClick(View v) { setContentView(R.layout.report); SoapObject…
Rahul
  • 739
  • 4
  • 15
  • 31
4
votes
1 answer

Blackberry kSoap2 & Soap Header

Trying to specify a custom soap header. Not sure how the SoapEnvelope.headerOut propery is to be populated. My code so far? String soapAction = serviceNamespace + "/SearchCustomer"; SoapObject rpc = new SoapObject(serviceNamespace,…
Jan de Jager
  • 870
  • 2
  • 13
  • 35
4
votes
4 answers

Android 1.6 ksoap2 "RuntimeException: Cannot serialize: java.util.GregorianCalendar..", while passing datetime parameter

I have to call .net web services in android using ksoap2 api. My code is working well for passing parameter as String or int. But it showing "java.lang.RuntimeException: Cannot serialize: java.util.GregorianCalendar....." while passing Calendar…
Raju Jadhav
  • 57
  • 1
  • 6
4
votes
5 answers

Parsing ksoap2 response

I use a ksoap2 lib for communicating from android client with SOAP web service. Great job was done by ksoap team, but the problem is, there is no any good example how to use it correct in different aspects. For instance I get in soap response…
Maxim
  • 4,152
  • 8
  • 50
  • 77
4
votes
3 answers

java.lang.NoClassDefFoundError: javax.microedition.io.Connector

I am trying to consume a .net web service, and get the following error when I run it(debug) from my phone java.lang.NoClassDefFoundError: javax.microedition.io.Connector I get the error when I make the call to the transport…
bugzy
  • 7,086
  • 9
  • 42
  • 44
4
votes
1 answer

Having trouble binding a ksoap object to an ArrayList in Android

I'm working on an app that calls a web service, then the webservice returns an array list. My problem is I am having trouble getting the data into the ArrayList and then displaying in a ListView. Any ideas what I am doing wrong? I know for a fact…
Maskau
  • 51
  • 2
  • 5
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
2 answers

How to add a .jar file into Android studio (version 0.4.0) project

How to add a jar file into a Android studio project. For example I am trying to add ksoap2-android-assembly-3.1.1-jar-with-dependencies.jar into a project. Dont see an option anywhere to add the jar file into the project so as to access the library…
Prasad Nair
  • 485
  • 2
  • 6
  • 12
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
0 answers

KSoap2 and KvmSerializable-Send class object with a list field to webservice in java android

I develop an android application and i try to call a web service and pass a class object as parameter to a method.That class has a list field called Partner and i think that this field has never sent to the web service. this is my Customer…
dimcode
  • 213
  • 3
  • 16
4
votes
2 answers

Android KSoap2 and Array issue

I am using Ksoap2 to call a web service from Android. I build the request, but the .call() method throws the following exception: 07-22 11:12:57.718: W/System.err(9582): java.lang.NumberFormatException: Invalid int: "][2" 07-22 11:12:57.728:…
Innova
  • 1,751
  • 2
  • 18
  • 26