ramykort / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

封装类数组或集合传送给C#的WebService时不正确 #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
SoapObject users = new SoapObject(NAMESPACE, "users");
SoapObject john = new SoapObject(NAMESPACE, "user");
john.addProperty("name", "john");
john.addProperty("age", 12);
SoapObject marie = new SoapObject(NAMESPACE, "user");
john.addProperty("name", "marie");
john.addProperty("age", 27);
users.addSoapObject(john);
users.addSoapObject(marie);
1.这个示例两次都给同一个变量进行赋值,这是错误的。
2.无法按照该示例封装一个类数组传送给C#的WebService,对方接
收到的是一个null,如果再外面再添加一层SoapObject,对方接可
以接收到该对象,但count是0

Original issue reported on code.google.com by kulemao....@gmail.com on 5 Jul 2011 at 8:21

GoogleCodeExporter commented 8 years ago
Sorry.. but I dont read or speak chinese. 

Original comment by mosa...@gmail.com on 5 Jul 2011 at 2:58