android 使用SoapObject访问webservice的问题
接口可以访问到,但是值传不过去。帮忙看看吧
String namespace = "http://service.androidws.soo8.com/";
String method = "getFriendList";
SoapObject request = new SoapObject(namespace, method);
request.addProperty("name","11111");
request.addProperty("Stpassword","1");
request.addProperty("systemCode","001");
request.addProperty("id1","1111");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope (SoapEnvelope.VER11);
envelope.bodyOut = request;
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE ht = new HttpTransportSE("http://---------:8088/AndroidWebService/UserFriendListPort");
ht.debug = true;
try {
ht.call(namespace+method, envelope);
Object soapObject = (Object ) envelope.getResponse();
content1 = soapObject.toString();
Message message = handler.obtainMessage();
handler.sendMessage(message);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (XmlPullParserException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}