я сделал веб-сервис для соединения кода, развернутого на google-app-engine с моим приложением для Android.
всякий раз, когда я пытаюсь это сделать, я получаю следующую ошибку: Ошибка: HttpHostConnectionException: соединение с http://localhost:60569 отказался, может кто-нибудь, пожалуйста, сообщите решение этого ... вот мой код Android: -
private void navigate() throws ClientProtocolException, IOException
{
DefaultHttpClient hc=new DefaultHttpClient();
ResponseHandler <String> res=new BasicResponseHandler();
HttpPost postMethod=new HttpPost("http://localhost:60569/PendingRequest.jsp");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("empId",empId));
nameValuePairs.add(new BasicNameValuePair("password",password));
nameValuePairs.add(new BasicNameValuePair("empName",name));
nameValuePairs.add(new BasicNameValuePair("empPhnNo",phoneNo));
nameValuePairs.add(new BasicNameValuePair("empEmail",email));
postMethod.setEntity(new UrlEncodedFormEntity(nameValuePairs));
String response=hc.execute(postMethod,res);
System.out.println("7");
System.out.println(response);
Intent intent=new Intent(this,RegisterEmployeeSecondActivity.class);
startActivity(intent);
}