Solved

.NET Web service -> Android

Posted on 2011-03-14
5
813 Views
Last Modified: 2012-05-11
Hello Im looking to create a web service that an Android phone can communicate with.
I have not demands whatsoever.
Best way todo this? REST or not?
Code examples, links?

Thx
0
Comment
Question by:o3h
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 500 total points
ID: 35131933

So far the best option seems kSOAP:

http://stackoverflow.com/questions/297586/how-to-call-web-service-with-android

an example is here:

http://www.codeproject.com/KB/android/webservice-from-android.aspx

Thats as far as SOAP is conserened. As for REST, you will have to decide yourself, which is more appropriate for you. Read a comparison here:

http://www.taranfx.com/rest-vs-soap-using-http-choosing-the-right-webservice-protocol


For REST see this example:

http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/

Basicly, RESTful might is simpler and if you are starting from scratch, I would go for that.

0
 

Author Comment

by:o3h
ID: 35135537
I was also thinking about somehow getting it to work with windows authentication. Is this possible somehow? Examples?
0
 
LVL 17

Expert Comment

by:Dejan Pažin
ID: 35135576

I'm not sure I understand - where should this windows authentication be? I can only imagine that the webservice would somehow use windows authentication. That has got nothing to do with the client though.
0
 

Author Comment

by:o3h
ID: 35180580
Well the android user provides its windows username and password and the its authenticated towards active directory.
But thats not windows authenication really?
How would you do it?
0
 
LVL 17

Expert Comment

by:Dejan Pažin
ID: 35181083

I always do it step by step. Specially when there is new stuff involved.

In this case, I would:

1. setup the simplest possible webservice, with no authentication. You can expect problems at that stage, so it will keep you busy for a while.
2. once I have the basic demo setup with complete procedure from Android to server, I'd think about authentication. It is best to use whatever is easiest to setup on the server that you will use. And the easiest to do is the one that has the best tutorial available - that all depends on what server you will use.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question