1

I provide a remote tool to other websites through web service in WCF. Now I want to provide same remote tool to Android Apps. My question is: Can Android apps consume my WCF web services (hosted on webserver) or do I need to change something.

Marijn
  • 10,367
  • 5
  • 59
  • 80
  • If Android has a HTTP stack, and your WCF service is using the `webHttpBinding` - yes, sure! Your client just needs to navigate to some predefined URLs using HTTP - that's all – marc_s Jun 26 '11 at 09:04

1 Answers1

3

You have WCF service and you want to consume it from Android application. First of all your service must be interoperable. In case of Android client you should use either basicHttpBinding (SOAP service) or webHttpBinding (REST service).

  • To consume SOAP service use kSoap2 - here is some description how to call the service
  • To consume REST service use use DefaultHttpClient and call the serivice as any other HTTP resource (for REST service it is better to use JSON as a transport format) - here is some example.
Community
  • 1
  • 1
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670