سلام ب همگی
من ی سرویس دات نت (asmx) دارم و میخام بهش متصل بشم و داده هایی رو فرستاده و پاسخش رو دریافت کنم
کسی هست ک بطور کامل توضیح بده باید چیکا کنم؟
من دارم از کد زیر استفاده میکنم اما خطای 500 رو بهم میده
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost("http://feelinger.com/feelingerservice.asmx/login?txtemail=siavash&txtpassword=123456789");
try {
HttpResponse response = client.execute(post);
int code = response.getStatusLine().getStatusCode();
Toast.makeText(this,String.valueOf(code),Toast.LEN GTH_LONG).show();
if (code == 200) {
String result = StreamToString(response.getEntity().getContent());
Toast.makeText(this,result,Toast.LENGTH_LONG).show ();
}
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(this,"ERROR",Toast.LENGTH_LONG).sho w();
}