import android.content.Intent;
import android.os.AsyncTask;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity {
//AAsyncTask mTask;
LoginBackgroundTask backgroundTask;
static String ID;
static String PW;
static int asklogin=1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void click_regist(View v)
{
Intent it= new Intent(getApplicationContext(),regist.class);
startActivity(it);
}
public void click_login(View v) {
EditText ido=(EditText)findViewById(R.id.idtext);
EditText pwo=(EditText)findViewById(R.id.pwtext);
ID=ido.getText().toString();
PW=pwo.getText().toString();
backgroundTask =new LoginBackgroundTask();
backgroundTask.execute();
if(asklogin==0)
{
Toast.makeText(this, "로그인 오류!", Toast.LENGTH_SHORT).show();
}
else if(asklogin==1)
{
Intent stu= new Intent(getApplicationContext(),Student.class);
startActivity(stu);
}
else if(asklogin==2)
{
Intent tea= new Intent(getApplicationContext(),Teacher.class);
startActivity(tea);
}
else if(asklogin==3)
{
Intent stu= new Intent(getApplicationContext(),Student.class);
startActivity(stu);
}
}
public class LoginBackgroundTask extends AsyncTask<String,Integer,String>
{
protected void onPostExecute(String result)
{
super.onPostExecute(result);
}
@Override
protected String doInBackground(String...params)
{
SoapObject request = new SoapObject("http://tempuri.org/","Login");
request.addProperty("user_id",ID); //로그인시 전달할 아이디
request.addProperty("pw",PW); //로그인시 전달할 비번
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet=true;
HttpTransportSE androidHttpTransport=new HttpTransportSE("http://192.168.33.49:11000/Service");
try{
androidHttpTransport.call("http://tempuri.org/IService/Login",envelope);
Object result=envelope.getResponse();
String Re=result.toString();
int ii=Integer.parseInt(Re);
asklogin=ii;
return Re;
}
catch (Exception e)
{
e.printStackTrace();
return e.getLocalizedMessage();
}
}
}
}

ksoap2를 이용한 통신인데.... 간단한 로그인 구현할려고하는데 전송자체가 안되는것같습니다
제가 오류코드를 잘 못해석한거일지도 모르지만 좀 알려주시면 좋겟습니다
일단 디버깅 했을떄 막힘없이 쭉쭉가는걸 보니 스래드 문제는 아닌것같고
포장단계에서 잘못된것같은데
뭐가 문제인가요