Hi, friends,
I am a new comer to web service via SOAP protocol. And I'm developing a client side program using SOAP protocol. And I turned to kSoap lib. But I encountered a problem here.
I want to form a body part of a SOAP message like this:
<s:Body xmlns
![Mad](http://www.blackberryforums.com/images/smilies/icon_mad.gif)
si="XXXX"
xmlns
![Mad](http://www.blackberryforums.com/images/smilies/icon_mad.gif)
sd="XXXX">
<OnDemandRequest xmlns="XXXX">
<OnDemand id="TV"/>
<OnDemand id="OVEN"/>
</OnDemandMeteringRequest>
</s:Body>
And I used a SoapObject as the outBody. Here are my java codes:
SoapObject request = new SoapObject(nameSpace, "OnDemandRequest");
request.addProperty("OnDemand", "");
And I got:
<OnDemand></OnDemand>
And my question is how can I add the "id" attribute to the OnDemand property?
Thanks in advance! This problem is killing me...
![Crying or Very sad](http://www.blackberryforums.com/images/smilies/icon_cry.gif)