ksoap2

Connecting to a localhost Webservice via kSOAP2

What steps will reproduce the problem? 1. Staring the Application, since it's quite small I think that should do it here. What is the expected output? What do you see instead? Well actually I'm not quite sure what should be the output in the end, but while debugging the app I noticed that it won't execute the line: aht.call(SOAP_ACTIO...

kSOAP2 and SOAPAction on Android

Hi everyone, I am trying to access a Webservice with kSOAP2 on an Android Phone. I think the connection is being established, but the server won't answer my request since I'm not providing a SOAP Action Header which seems to be required in SOAP Version 1.1(please correct me if I'm wrong here) which I have to use since the server does not...

ksoap2 not working

Hi I cant figure out why i cannot get the reponse from a call to a web service using ksoap2. The call sends an MSISDN value to a web service and should return a string. I can see on the web service that it does get called and the string is returned but am unable to see the returned string on the device. My code is as followed: ...

NullPointerException when trying to connect to web service using kSoap method Android

My web service should be returning an integer, but every time i run the code i get the NullPointerException error. Any ideas or help would be very appreciated Here's my code: public class CGCountTest extends Activity { TextView testTV; private static final String NAMESPACE = "http://passport-america.com/webservices/"; private sta...

Return ArrayList from .net web service to android application using kSoap

My web service is returning quite a bit of data, so i'm storing it in an arraylist and returning that to my application. I don't know whether or not this is the preferred method or not. When the arraylist is returned and displayed in my application, it also displays the arraylists "anyType" section. I'm new to this whole process so i'm s...

ksoap2 casting getResponse()

Calling a .net SOAP1.1 web service from android using ksoap2 lib I met a problem of casting response to a custom object. For instance the code below is called correct after httpTransport.call(soapAction, soapEnvelope); and have data inside. But I cant't cast it to specific object neither to SoapObject or Vector as I saw in several exampl...

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 object ht.call(SOAP_ACTION, soapEnvelope); while in the eclipse ide, the (context sensitive model) does not sh...

Problem passing simple string parameter to .net webservice

Hi everyone, I have the following code which invokes a .net webservice. The code connects to the service fine, but the paramter(deviceid) does not appear to get passed. The method simply returns the passed deviceid which is always null. This is telling me the deviceid parameter is not being passed. I thought I saw someone recommend a p...

Parsing ksoap2 response

Hello everybody. 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 following data: anyType{ StatusSetting=anyType{Id=1; Name=Til afskrivning;...

ksoap2 android sending data

Hello everyone I'm trying to get ksoap2 working on android. I have spent at least 10 hours now reading forum posts, and documentations. Just querying some methods like getServerTime where I don't have to send any values, works. My goal is to send data, and receive a response. For example: send city name, get city time. I'm practicing o...

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 are interdependent and use the sessions). Any one know any such setting for ksoap2-android, that will a...

How to set a timeout on a soap call using ksoap2-android?

Hey hey I'm using ksoap2 for my android project and it works great. I've succeeded in connecting to distant server but I currently have a problem when I want to set a timeout to my androidhttptransport. Is there a clean way (maybe an attribute to set?) to deal with it? I've found this same question there but it's not very detailed. Do...

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 workaround with this error? I can not manage the certificate because is from a other company and...

ksoap request/response problem in Blackberry

I am new in Blackberry. I am making a application to call a webservice. A simple webservice I made that is running perfectly ok... I want to same for our client but I am getting this error: The endpoint reference (EPR) for the Operation not found is /icontent/services/IRServiceV3_1 and the WSA Action = null But that service is running...

SOAP wev service on android

Hi. I am am trying to connect to a SOAP web service using ksoap2 library. I have read a bunch of docs about it, but i am stuck as my request is not an ordinary one. I need to specify some headers prior to sending the request. when is use a soap client to test the webservice i also need to put this in the soap enveope header section: ...

Send an array of complex objects using ksoap2 to .NET web service

Hi I am facing a problem in sending an array of complex object from a J2ME Client using KSOAP to .net web service (Soap services). my TestSoap.java file has a setArr() method which takes an array of PropHeaderMapBin object and sends it to the web service which returns an integer (count of PropHeaderMapBin objects) TestSoap.java pack...

KSoap2 or RESTful web services with android

Hi! What is the best way to deal with web services in Android? I have been looking at KSoap2 library and RESTful web services. I got one working with KSoap2, but only when the web service is on a remote server, not on localhost. I have tried to redirect the ports for incoming and outgoing as it says on the android dev site, i have use...

setting up a ksoap request

I am using Ksoap from Android to access a .net web service. The wsdl is formatted like this <filter> <DateFrom> Date1 </DateFrom> <DateTo> Date2 </DateTo> </filter> I use addProperty("DateFrom", date1) same for DateTo. How do I tell ksoap about filter. The service has a helloword that I can access correctly. When I try the dat...

KSoap-Android\JCIFS sends empty HTTP post

I created an NTLM authenticating SOAP client based on KSOAP-Android and JCIFS. The implementation looks something like this: public class NtlmServiceConnection implements ServiceConnection { public NtlmServiceConnection(final SoapConnectionInfo connectionInfo, String path) { httpclient = new DefaultHttpClient(); ...

Advice on app using gps-sensor, compass-sensor and webservices via SOAP messages.

Hey folks, I really like your site and I think this is the place where I find answers to my questions! I am planning an app, which shall do a couple of things but since I'm kind of lost in all the information conserning Android I really need some advice what I have to look out for and which of my goals might turn out tricky. I want to do...