.net Android中调用web服务的问题

.net Android中调用web服务的问题,.net,android,web-services,json,.net,Android,Web Services,Json,我需要它的工作教程。我试过一些教程,但都有错误 我正在开发一个Android应用程序,我想从服务器上获取我的应用程序的一些数据,还想在服务器上存储一些数据。我不想使用任何外部库。Web服务将仅在.net中。我需要教程,既为网络服务,以及如何在Android中访问网络服务。我在HTTPClient上使用json。有人能帮我吗 提前谢谢 URI uri = new URI("http://maps.googleapis.com/maps/api/geocode/json?address=yourad

我需要它的工作教程。我试过一些教程,但都有错误

我正在开发一个Android应用程序,我想从服务器上获取我的应用程序的一些数据,还想在服务器上存储一些数据。我不想使用任何外部库。Web服务将仅在.net中。我需要教程,既为网络服务,以及如何在Android中访问网络服务。我在HTTPClient上使用json。有人能帮我吗

提前谢谢

URI uri = new URI("http://maps.googleapis.com/maps/api/geocode/json?address=youraddress&sensor=true");
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(new HttpGet(uri));
StatusLine statusLine = response.getStatusLine();
if(statusLine.getStatusCode() == HttpStatus.SC_OK){
    out = new ByteArrayOutputStream();
    response.getEntity().writeTo(out);
    out.close();

    json = new JSONObject(out.toString());
}