SoapObject adding a property with name and value as well as an attribute

33 views
Skip to first unread message

Matthieu Nguyen

unread,
Mar 9, 2017, 9:18:14 AM3/9/17
to ksoap2-android
Hello i am quite new to soap, and i am trying to create a soap object matching this model:

<Body>
<QASearch xmlns="http://www.truc.con" Localisation="?"> <Country>FRA</Country> <Engine Flatten="false">Singleline</Engine> <Search>60300@x</Search> </QASearch>
</Body>

I managed to make :

<Body>
 <QASearch xmlns="http://www.truc.con" Localisation="?">
  <Country>FRA</Country>
  <Engine>Singleline</Engine>
  <Search>60300@x</Search>
 </QASearch>
</Body>

but not the attribute part of Engine.

i tried to follow different solution from stack overflow but the closest i went was :

<QASearch xmlns="http://www.truc.con"  Localisation="?">
<Country>FRA</Country> <Engine i:type="d:string">Singleline</Engine> <Search>60300@x</Search> </QASearch>

when adding a property and specifying the type(with setType method).

Any help would be welcome.

Regards
Matthieu
Reply all
Reply to author
Forward
0 new messages