我正在尝试通过 ksoap 连接到我的网络服务并给我这个错误
找不到 {} 的调度方法
我知道这是 2 个具有相同错误的问题,它们都没有正确放置命名空间或添加正确的方法名称,这里我添加了正确的命名空间,而且它现在工作的正确方法也不是,这就是问题所在,这是调用网络服务的代码
ObjConexion 对象 = 新的 ObjConexion();
SoapObject request = new SoapObject(object.NameSpace(), "login");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
Bundle extras = getIntent().getExtras();
/*PropertyInfo namePro =new PropertyInfo();
namePro.setName("_name");
//namePro.setValue(extras.getString("name"));
namePro.setValue("sdfasdfsadf");
namePro.setType(String.class);
request.addProperty(namePro);
*/
PropertyInfo emailPro =new PropertyInfo();
emailPro.setName("email");
//emailPro.setValue(extras.getString("mail"));
emailPro.setValue("asdfsdfasdfasdf");
emailPro.setType(String.class);
request.addProperty(emailPro);
PropertyInfo passwordPro =new PropertyInfo();
passwordPro.setName("password");
//passwordPro.setValue(((EditText) findViewById(R.id.passwd)).getText().toString());
passwordPro.setValue("asdkasdkfkasdf");
passwordPro.setType(String.class);
request.addProperty(passwordPro);
HttpTransportSE androidHttpTransport = new HttpTransportSE("WSDLPath");
androidHttpTransport.debug = true;
try {
androidHttpTransport.call("", envelope);
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
}catch (Exception e) {
e.printStackTrace();
Toast.makeText(this,e.getMessage().toString(),Toast.LENGTH_LONG).show();
}