Android ksoap2崩溃应用程序

Android ksoap2崩溃应用程序,android,ksoap2,android-ksoap2,Android,Ksoap2,Android Ksoap2,您好,我正在尝试使用ksoap2 for android从网站读取信息,但每当我尝试我的应用程序时,force就会关闭。我已经改变了一个网站的方法,从一个网站的教程,使该网站不应该是一个问题,下面是我的代码。这是我的第一篇帖子,如果我犯了任何错误,非常抱歉,谢谢 public class SharepointappActivity extends Activity { /** Called when the activity is first created. */ @Override pu

您好,我正在尝试使用ksoap2 for android从网站读取信息,但每当我尝试我的应用程序时,force就会关闭。我已经改变了一个网站的方法,从一个网站的教程,使该网站不应该是一个问题,下面是我的代码。这是我的第一篇帖子,如果我犯了任何错误,非常抱歉,谢谢

public class SharepointappActivity extends Activity {


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
Button gobutton = (Button)findViewById(R.id.button1);
  gobutton.setOnClickListener(new View.OnClickListener() {

    public void onClick(View v) {
        // TODO Auto-generated method stub
        boom();
    }
});

}
public void boom(){
      final TextView text1 = (TextView)findViewById(R.id.textView1);
String NAMESPACE = "http://footballpool.dataaccess.eu";
String METHOD_NAME = "StadiumInfo";
String SOAP_ACTION = "http://footballpool.dataaccess.eu/data/";
String URL = "http://footballpool.dataaccess.eu/data/info.wso?WSDL";

SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);




Request.addProperty("sStadiumName", "Free State Stadium"); 



SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(Request);

HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

try
{
   androidHttpTransport.call(SOAP_ACTION, envelope);
   SoapObject response = (SoapObject)envelope.getResponse();
 int result =  Integer.parseInt(response.getProperty(0).toString());
//    Object result2 = envelope.getResponse();
 text1.setText(result);
}
  catch(Exception e)
 {
     e.printStackTrace();
 }
  }
}
您需要将“”添加到SOAP\u操作中

String.format( "\"http://yournamespace/%s\"", method );

嘿,请把你的日志贴出来好吗