BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-10-2010, 06:46 AM   #1
voidmain13
New Member
 
Join Date: Aug 2010
Model: 7100T
PIN: N/A
Carrier: I don't know
Posts: 1
Default Problems with kSoap2

Please Login to Remove!

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 xmlnssi="XXXX"
xmlnssd="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...
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Tektronix TM504 Mainframe - Powers (SR10) picture

Tektronix TM504 Mainframe - Powers (SR10)

$99.99



HP 3488A HPIB Switch / Control Unit Mainframe picture

HP 3488A HPIB Switch / Control Unit Mainframe

$24.99



Agilent Keysight N3300A Electronic Load Mainframe picture

Agilent Keysight N3300A Electronic Load Mainframe

$636.65



Tektronix TM504 Mainframe with PG501 PLUG IN picture

Tektronix TM504 Mainframe with PG501 PLUG IN

$125.00



Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



Agilent/Keysight N5181A/B N5182A MXA Signal Generator Repair/Calibration Service picture

Agilent/Keysight N5181A/B N5182A MXA Signal Generator Repair/Calibration Service

$9.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.