어째서인지 되지가 않아서요
도와주시면 감사하겠습니다.
soap gar파일은 인터넷에서 찾을수있습니다.
package test.cl;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class WcfsempullActivity extends Activity {
private static final String NAMESPACE = "http://tempuri.org/";
private static final String URL = "http://211.211.83.82:8080/service1.svc?wsdl";
private static final String METHOD_NAME = "LoginCheck";
private static final String SOAP_ACTION = "http://tempuri.org/IService1/LoginCheck";
StringBuilder sb;
TextView TV;
EditText et_id;
EditText et_pw;
Button btn;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.login);
TV = new TextView(this);
sb = new StringBuilder();
et_id=(EditText)findViewById(R.id.ET_id);
et_pw=(EditText)findViewById(R.id.ET_pw);
btn = (Button)findViewById(R.id.BTN_ok);
btn.setOnClickListener(new OnClickListener()
{
//@Override
public void onClick(View v) {
String result= Login();
//Login();
//TV.setText(sb.toString());
//TODO Auto-generated method stub
if(Integer.parseInt(result)!= 0){
/*//Intent intent = new Intent(this,Main.class);
Intent intent = new Intent(WcfsempullActivity.this, Main.class);
intent.putExtra("Id",et_id.getText().toString());
//intent.putExtra("pass",et_pw.getText().toString());
startActivity(intent);*/
Toast.makeText(WcfsempullActivity.this,"로그인성공!",1000).show();
}
else
{
Toast.makeText(WcfsempullActivity.this,"로그인실패!",1000).show();
}
}
public String Login(){
String resultData = null;
try{
//Boolean validUser = false;
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME );
//request.addProperty("Id",et_id.getText().toString());
request.addProperty("Id",et_id.getText());
request.addProperty("pass",et_pw.getText());
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try
{
androidHttpTransport.call(SOAP_ACTION, envelope);// 이부분 다음 진행잉 않되고 try문을 빠져 나갑니다.
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
resultData = result.toString();
//sb.append(resultData);
}
/*HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
try{
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
String resultData = result.toString();
//return result.toString();
sb.append(resultData);
//String resultData = result.toString();1
//Integer userId = (Integer)envelope.getResponse();
//return resultData;
//return validUser;
}*/
catch(Exception e){
Toast.makeText(WcfsempullActivity.this,"여기서실패",3000).show();
}
}
catch(Exception e){
Toast.makeText(WcfsempullActivity.this,"로그인데이터실패",1000).show();
}
return resultData;
}
});
}
}




첨부도 안해놓고 찾아서 받으라니요?
게다가 로그인할 주소랑 정보도 없고