• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 840
  • Last Modified:

.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?

  • 3
  • 2
1 Solution
Dejan PažinHead of SW DevelopmentCommented:

So far the best option seems kSOAP:


an example is here:


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:


For REST see this example:


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

o3hAuthor Commented:
I was also thinking about somehow getting it to work with windows authentication. Is this possible somehow? Examples?
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.
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?
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.
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now