?
Solved

.NET Web service -> Android

Posted on 2011-03-14
5
Medium Priority
?
838 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
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

by:
Dejan Pažin earned 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Often, people trade privacy and security for convenience. However in today's concrete jungle, this is an extremely foolish decision considering the vast amount of technologies being used against consumer interest. First off, I won't waste any time e…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
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…
Suggested Courses

850 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