A lightweight and efficient SOAP engine suitable for J2ME or constrained java devices.
Questions tagged [ksoap2]
1195 questions
11
votes
2 answers
Android: SSLException I/O error during system call, Connection timed out
I have a function in my android code which send data to the web service using KSOAP. I am able to send data to the service, but sometimes I get an exception: "SSLException I/O error during system call, Connection timed out".
After performing a…

BRDroid
- 3,920
- 8
- 65
- 143
11
votes
6 answers
How to pass parameter to a webservice using ksoap2?
I'm using Eclipse IDE to develop an android app. I'm trying to connect to a .net webservice. I'm using ksoap2 version 2.3
When I'm calling a webmethod with no parameters, it works fine. When I come to pass a parameter to the webmethod, I get null…
user255681
10
votes
1 answer
How to use KSoap 2 in android
I've just came across to ksoap2 for using my own asp .net webservices in android apps.
I've found few great resources over internet and I've implemented my webservice in android app.
Following is the webservice's response I consumed:
HTTP/1.1 200…

necixy
- 4,964
- 5
- 38
- 54
10
votes
3 answers
SoapFault - faultcode: '1062' faultstring: 'Shipping method is not available'
Hello i am developing an Android app which uses Magento as the backend and i am using SOAP webervice of magento, I have added all the product , customer and customer address information to the cart , But when i try to add the shipping method to the…

Sudhir Belagali
- 370
- 1
- 7
- 22
10
votes
1 answer
Where to see the generated XML (KSOAP2)
I'm having a hard time trying to get to see the generated XML with my SoapRequest. This is my code:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope = new…

user208030
- 145
- 2
- 9
9
votes
3 answers
java.lang.noclassdeffounderror: org.ksoap2.serialization.SoapObject
I got this no class def error: org.ksoap2.serialization.SoapObject error ever since I have updated Eclipse ADT Plug in and SDK Manager. I was using ksoap2-android-assembly-2.4-jar-with-dependencies.jar as external library for KSOAP. I thought that…

mtekeli
- 705
- 1
- 7
- 17
9
votes
4 answers
The given SOAPAction does not match an operation
I'm new to web service using jax-ws. I was starting to implement it based on some kind of tutorials over the web. Moreover, I was trying to access that service through my android client so I was calling this.
private static final String SOAP_ACTION…

castrial
- 91
- 1
- 1
- 2
9
votes
2 answers
What's the namespace, soap action and url should be for my android app accessing wcf web service?
My WSDL is like:

Xiao Han
- 1,004
- 7
- 16
- 33
8
votes
2 answers
create soap envelope with security header in android using ksoap2
I want to create soap envelope with security header in android using ksoap2. My code of android is as...
import org.ksoap2.SoapEnvelope;
import org.ksoap2.SoapFault;
import org.ksoap2.serialization.PropertyInfo;
import…

Kels
- 674
- 1
- 5
- 21
8
votes
3 answers
Call .NET web service in Android
My .NET web service returns an XML. When I call the web service with ksoap2 in Android, I have this issue.
Please help.
My Logcat in Eclipse
12-19 15:58:11.951: W/dalvikvm(2041): threadid=1: thread exiting with uncaught exception…

Erhan Demirci
- 4,173
- 4
- 36
- 44
7
votes
2 answers
Android KSoap2: how to get property name
I am using KSoap2 for calling web-services for my Android app. I am using following code to call the web-service.
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("PageSize", 20);
request.addProperty("PageIndex",…

dev_android
- 8,698
- 22
- 91
- 148
7
votes
2 answers
Web services stub generation + android
I want to generate a android(java) based STUB for accessing all the web services. I have tried generating the stub using following tools:
1) Sun Java (TM) Wireless Toolkit 2.5.2_01 for CLDC,
2) ksoap2-generating-stub-0.1-SNAPSHOT-J2me-Android.
But i…

mudit
- 25,306
- 32
- 90
- 132
7
votes
2 answers
How to pass an enum value to wcf webservice
can ksoap2 pass an enum to webservice?
there is a wcf webservice:
[OperationContract]
string TestEnum(CodeType code);
CodeType is dotnet enum:
public enum CodeType
{
[EnumMember]
ALL,
[EnumMember]
…

user730417
- 81
- 1
- 3
7
votes
1 answer
How to use ksoap timeout in android?
I am using ksoap2 to create a user registration application in Android.
When I send request to the server and there is no response within 10 seconds I want to prompt the user with a "Try again" message. If the server responds within 10 seconds I…

Urvashi
- 439
- 2
- 6
- 6
7
votes
1 answer
"AndroidHttpTransport cannot be resolved to a type" error in ksoap2
This is in eclipse for an android app. I am using ksoap2 to access a function in an online wsdl. While making a soapobject() to do that, I am coming across this error. I have added the ksoap2 jar file in build path and all the rest of the code…

ankit rawat
- 401
- 2
- 9
- 22