Solved

.NET Web service -> Android

Posted on 2011-03-14
5
818 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
These days software publishers make it possible to move all the possible applications on smartphones, tablets, smartwatches, and more. Although behind every logic and decision is a gross doubt: how do they make it possible? In this blog post, we sha…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 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