BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-10-2010, 06:46 AM   #1 (permalink)
New Member
 
Join Date: Aug 2010
Model: 7100T
PIN: N/A
Carrier: I don't know
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

CST SP3000 DDR SDRAM DIMM SORAM SIMM Memory Module Tester and Four Test Heads
$399.95
CST SP3000 DDR SDRAM DIMM SORAM SIMM Memory Module Tester and Four Test Heads pictureSIMATIC S7, MEMORY CARD FOR S7-300/C7/ET 200,3.3V ,64KB, 6ES7953-8LF30-0AA0
$29.99
SIMATIC S7, MEMORY CARD FOR S7-300/C7/ET 200,3.3V ,64KB,  6ES7953-8LF30-0AA0 pictureKearney Trecker Circuit Board memory 1-21221-02 REV 2
$199.0
Kearney Trecker Circuit Board memory 1-21221-02 REV 2 picture1Pcs DS3231 AT24C32 IIC precision Real time clock memory module for Arduino AI1F
$1.01
1Pcs DS3231 AT24C32 IIC precision Real time clock memory module for Arduino AI1F pictureTEST EQUIPMENT -- HEWLETT PACKARD 1670A DEEP MEMORY LOGIC ANALYZER
$385.0
TEST EQUIPMENT -- HEWLETT PACKARD 1670A DEEP MEMORY LOGIC ANALYZER picture






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