Зависит от веб-сервиса.Это просто RESTful XML?JAX-WS?JSON?И т. Д. В любом случае это должно быть так же просто, как вызвать HTTP-сокет и проанализировать ответ.
Чтобы создать веб-сервис, перейдите по ссылке ниже
RESTful Web Services
с использованием Using HTTPClient
public static String hitService(String host, int port, String path, String postBody) throws IOException {
HttpHost target = new HttpHost(host, port);
HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet(path);
HttpEntity results = null;
try {
HttpResponse response=client.execute(target, get);
results = response.getEntity();
return EntityUtils.toString(results);
} catch (Exception e) {
throw new RuntimeException("Web Service Failure");
} finally {
if (results!=null)
try {
results.consumeContent();
} catch (IOException e) {
// empty, Checked exception but don't care
}
}
}
Пример Android Cookbook