Search code examples
web-servicessoapksoap2android-ksoap2

ksoap2 property info that has multiple parameter values?


i am using ksoap2 for my application in android. i am sending complex types, but i have a question: right now i am doing :


UriList urlL = new UriList();
urlL.uriList= "#literal";

PropertyInfo pi = new PropertyInfo();
pi.setName("documents");
pi.setValue(urlL);
pi.setType(UriList.class);
sobj.addProperty(pi);

this gives me a soap request that will look like:

< documents>
< uriList>#literal< /uriList>
< /documents>

what if i want to have several repetition of < uriList> ? ie:
< documents>
< uriList>#literal< /uriList>
< uriList>#literal2< /uriList>
< uriList>#literal3< /uriList>
< /documents>

how can i do that in ksoap2?

thanks for the help :)


Solution

  • i fixed this by doing the paramter urlist -in the class that implements kvmserializable- as a list and it worked