Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Root tag missing in case of one DSRequest in queue

$
0
0
1. SmartGWT 3.1 LGPL
2. Browser: Firefox

Hi everyone,

I use RestDataSource for DSRequest queuing and noticed that when there is only one request in a queue, the root <transaction> tag is missing in the XML sent to the server.

Is there a way to force RestDataSource to enclose even one DSRequest in the <transaction> tag?

Example 1 (two DSRequests in a queue):
Code:

<transaction transactionNum="33">
<operations>
<request>
    <data>...</data>
    <dataSource>isc_CircuitBreakerDataSource_7</dataSource>
    <operationType>add</operationType>
    <oldValues></oldValues>
</request>
<request>
    <data>...</data>
    <dataSource>isc_CircuitBreakerDataSource_7</dataSource>
    <operationType>add</operationType>
    <oldValues></oldValues>
</request>
<request>
    <data>...</data>
    <dataSource>isc_CircuitBreakerDataSource_7</dataSource>
    <operationType>add</operationType>
    <oldValues></oldValues>
</request>
</operations>
</transaction>

Example 2 (one DSRequest in a queue):
Code:

<request>
    <data>...</data>
    <dataSource>isc_CircuitBreakerDataSource_0</dataSource>
    <operationType>add</operationType>
    <oldValues></oldValues>
</request>


Viewing all articles
Browse latest Browse all 4756

Trending Articles