各位大家好:
小弟有个问题~是这样的~我在做一个Android客户端系统,需要通过SOAP协议跟服务端进行通讯,我使用kSoap2这个开源库。
现在遇到的问题是不知道怎么构建outBody
我需要构建的SOAPbody格式如下:
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <OnDemandRequest xmlns="XXXX">
      <OnDemand id="TV"/>
      <OnDemand id="OVEN"/>
    </OnDemandMeteringRequest>
</s:Body>
我用的是SoapObject作为outBody,然后利用addProperty添加了<OnDemand>这个属性,关键是怎么添加id=""啊??
请各位不吝赐教这个问题困扰我很久了先说谢谢啦!