如何在android中的Soap信封中绑定数据PropertyInfo类

时间:2015-07-28 10:40:00

标签: android soap

List<Bean2> postdataarralist = new ArrayList<Bean2>();
postdataarralist = datasource.getAllComments();  
  InfraVisit C = new InfraVisit();
    C.setList(postdataarralist);

我在postdataarralist中我从Sqlite和C.setList(postdataarralist)获取所有数据我正在添加数据。

PropertyInfo pi = new PropertyInfo();
                pi.setName("lstInfraVisit");
                pi.setValue(C);
                pi.setType(InfraVisit.class);
                request.addProperty(pi);

这是我的代码,我想在PropertyInfo类中设置值。

envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                envelope.dotNet = true;
                envelope.setOutputSoapObject(request);
                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
                androidHttpTransport.debug = true;
                androidHttpTransport.call(PostSOAP_ACTION, envelope);
            Log.d("RESPONSEEEEEEEEEEEEEEEEEEEEEEEEE", androidHttpTransport.requestDump);
            Log.d("RESPONSEEEEEEEEEEEEEEEEEEEEEEEEE222",androidHttpTransport.responseDump);

当我尝试获取Soap请求时,我无法找到所有数据的对象,请您建议我哪里做错了以及如何向服务器请求发布数据请帮助。

0 个答案:

没有答案