Calling a Web Service in Android - android

I am currently working on an application in android where I need to call the Web Service. I am working in Android and I don't have an idea about how to call a web Service in Android.
So, can anybody please help me out in how to call a Web Service in Android Programming.
Thanks,
david

We use Ksoap2 WS-Stack implementation, suitable for constrained devices such a mobile phone. You can not use it directly on Android. However there is a port with some small tweaks so it can work. You can find it here.

Related

Android Wear Watchface needs to access the internet

I'm working on a watchface which needs to access the internet. I know wearables can't access the internet directly and I need to somehow use the GoogleApiClient to communicate with a handheld app which handles the web requests but I can't seem to find any samples or examples of how to actually do it.
Could somebody point me to some sample projects for communicating between handheld and wearable apps? I have most of the information I need to do it myself but the problem is, I haven't the slightest idea of how to piece everything together.
After much Googling, I found a great little sample that helped me get communications happening! For anybody having the same difficulties, check out this sample: https://github.com/petrnalevka/wear

What provider for Android native SIP

I'm trying to create a small SIP application using Android native SIP (using the code from here (http://developer.android.com/guide/topics/connectivity/sip.html). However it does not seem to register properly with the SIP provider, I'm trying linphone.org and getonsip.com. Has anybody actually made it work with some SIP provider?
Thanks.
Linphone works great for me, managed to get it working even with a 8 devices confrence!, the call quality is good and there is barely noticeable delay in good networks, its way better then the native sip.
You should work with Linphone.

To add web services in android is necessary the ksoap2....jar?

I am using android studio and I want to test the web service I create on .net 2010 in an android application but every tutorial or link I found is related with a "ksoap2-android-assembly-2.6.0-jar-with-dependencies.jar" library. Is this library necessary to invoke a web service? or the android studio now provide a new way to call WS...
Thanks in advice :)
Well after searching other methods to use web services I found that is not the only way, there are other ways, the thing is that ksoap2 had many helps, tutorials and continue in research... I commend it to use it.

Embed Google talk inside Android application

I am new in Android Programming and I am trying to include GTalk application inside my application. I am trying to use XMPP server but it is not working. How can I add GTalk to my app?
I don't know if this answer is helpful or not because the question was posted a while ago, however:
This sample code may solve your problem.
Here you can find some sample code for using XXMP to communicate with Gtalk.
This post may also help.

Soap Client on Android to access Salesforce APIs

I want to develop a application on Android platform to connect to salesforce. From what i have found salesforce provides service API's which can be used to connect to salesforce servers by creating a Web service from the client side application.
Salesforce developer site has examples of creating such a Web service by using Apache Axis as the SOAP client and using the WSDL file downloaded from the salesforce website. I want to know can this be done from Android platform?
Is there a version of Apache Axis ported for Android? I did some googling and could find that Android does not have a inbuilt SOAP client and usually Ksoap is used on Android.
But I have also read that KSOAP doesnt support WSDL.
I have seen the above question asked before but quite a while ago, As Android platform has emerged eversince I want to know what is the current situation and options of doing this.
Also, Since I am new to Android and development on Android if anyone can direct me to a sample code snippet, which creates a Web Service from android to connect to salesforce, I would be higly grateful.
Thanks in Advance.
Edit: Is there any other way to develop an Salesforce client on Android without the above approach? I am running out of ideas :(
Not really an answer, but...
There will be a webinar about REST API for Salesforce soon. With pure HTTP and JSON you might be able to avoid SOAP problems :)
It's a "developer preview", meaning that probably this functionality will be officially released this autumn/winter.
https://www.developerforce.com/events/rest_developer_preview/registration.php?d=70130000000FV4P
At the end of they day, SOAP is just XML over HTTP, Android (at least 2.1 and up, not sure about earlier versions) have built in XML parsers and serializers, so you could manually build/parser the relevant soap messages that you care about (this is probably not a big deal if you only need to make a few different types of calls, but will be a chunk of work to do them all). Depending on your timeframe, you could wait for the REST API, which'll let you do json instead of XML. (this is currently in pilot)

Categories

Resources