.NET Web service -> Android

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
o3hAsked:
Who is Participating?
 
Dejan PažinConnect With a Mentor Head of SW DevelopmentCommented:

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
 
o3hAuthor Commented:
I was also thinking about somehow getting it to work with windows authentication. Is this possible somehow? Examples?
0
 
Dejan PažinHead of SW DevelopmentCommented:

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
 
o3hAuthor Commented:
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
 
Dejan PažinHead of SW DevelopmentCommented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.