public class MainActivity extends AppCompatActivity {
//AAsyncTask mTask;
LoginBackgroundTask backgroundTask;
static String ID;
static String PW;
static int asklogin;
@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.VER12);
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();
}
}
}
}

웹 페이지 xml은 http://192.168.33.49:11000/?wsdl
입니다 부디 전문가님의 손길을 앙망합니다
soap버전도 문제 없는것 같은데 뭐가 문제인가요.....
ver11 도 안되고 ver 12도 안됩니다