Solved

.NET Web service -> Android

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add a Condition in ASP Repeater 6 45
moto 4g plus phone lockout time 4 33
Best Sprint PCS Android phone 2 34
ASP.NET Built-In Report Creator / Viewer 5 22
In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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.
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…

756 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