Hai to All,I have a problem while calling the webservice,i have a .NET web service in 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". I dont know what to do.Here is my code.
package projects.ksoap2sample;
import org.k...
Hi,
I have to call a .NET web service (http://192 .168.1.14/ CG/authentication.asmx)from the Blackberry Simulator.Already i have done it in Android with KSOAP2, but i have no idea about how to do this in Blackberry.Can i use KSOAP2 in Blackberry?If i can please give some code snippets.Also please tell if you know any other ways to do...
i want to access java web service using j2me with ksoap.please tell me the steps for invoke it.
...
I need to add a timeout to a J2ME application that uses ksoap 2 to connect to a web service.
I've tried the method described as a possible pseudo timeout at http://ksoap2.sourceforge.net/doc/api/org/ksoap2/transport/HttpTransport.html, but it doesn't seem to function on this device.
I'd run the connection on another thread and kill it ...
I want to access .net web service from j2me using ksoap2 or ksoap. Bt its not working.
KSOAP:
enter code here
`
SoapObject client = new SoapObject(url, "GetRouteNames");
client.addProperty("pRegistration", "15");
HttpTransport ht = new HttpTransport();
ht.setUrl(url);
ht.setSoapAction("ht...
i am using ksoap/ksoap2 api for calling a php webservice from j2me.
For ksoap:
SoapObject client = new SoapObject(NAMESPACE, "ns2221:save_record");
client.addProperty("cc", "1234560789");
ByteArrayOutputStream bos = new ByteArrayOutputStream();
XmlWriter xw = new XmlWriter(new OutputStreamWriter(bos));
...
I need to call a web service using ksoap2, I have been doign this successfully up till the point where I need to pass a more complex type to the web service.
Does anybody have an example of passing a complex type to a webservice, preferably, only using SoapObject (the object in question is only Strings and dateTimes.
Thanks
in advance
...
Hi,
I'm having a problem in calling .net web services from android
using ksoap2. The call is executed just fine without parameters, but
when I pass paramters of any type, the web service just recieves a
null value. I tried everything possible but no luck so far. I hope
someone can help,
The client side code is:
public static boolean tem...
Hi,
Im using ksoap2 to call web .net services. The call works just fine except when I pass paramaters. The passed paramaters are always recieved as null values by the web service. I dont know what the problem is, I hope someone can help.
Thanks,
...
hi there,
i'm using eclipse to develop over android, i'm trying to connect to a .net webservice...
when i'm calling a webmethod with no parameters it works fine... but when i come to pass a parameter to the webmethod things turn upside down... the parameter is passed as null (while debugging the webservice i discovered that) and i get a ...
has any one been able to connect to a soap server using ksoap2 android via https?
i keep getting the error that "Hostname <###>was not verified"
im doing
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
apparently looking back at other ksoap which isn't for...
Hi!
Basically I am using kSoap2 classes for Android. The client app is consuming a web service. If required I can post the code.
I surfed around to figure this out. I get following error message
expected: START_TAG{http://schemas.xmlsoap.org/envelope/}Envelope(posiiton:START_TAG@1:6 in java.io.InputStreamReader@437b40f0) when androidHt...
Hi all,
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 when the activity is first created. */
private static final String METHOD_NAME =...
We are designing an internal system that will have a .NET PC base station and many Android mobiles, communicating over WiFi. Can't decide between SOAP or XML-RPC protocol. Primary concerns are maturity, compatibility, and the minimizing of coding/integration, in that order. Which is best?
Ben
...
Using Ksoap2 on Android, can anyone tell me the difference between these three?
SOAP_ACTION
NAMESPACE
URL
I am really confused about the differences.
...
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 the web service returns an ArrayList. Everything seems to be working fine, just no data in t...
Hi,
I am working on a android application that will use Ebay' "Finding" Webservice. I have set up all the parameters such as
NAMESPACE="http://www.ebay.com/marketplace/search/v1/services" URL="http://svcs.ebay.com/services/search/FindingService/v1"
METHOD_NAME = "findItemsByKeywords" SOAP_ACTION="http://www.ebay.com/marketplace/s...
I'm trying to use ksoap to call a simple webservice. I followed this video to try to get started. When I call "getResponse()" on the envelope I just get the string "Error". There's no exceptions thrown or any other detail. I've successfully connected to a simple webservice I just setup on my local machine. Could this potentially be ...
Hello, ksoap-newbie here
I have a basic soap service running on glassfish, that returns List<String> like this
<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getNamesResponse xmlns:ns2="http://namespace/">
<return>Name1</return>
...
I am facing some issues while calling .NET Webservice from android application by passing complex type parameters . I am using KSOAP2. All the examples i have found here are of simple type. Can someone post examples related to complex type.
...