In the context of a RestDataSource I managed to generate a request like this by overriding RestDataSource.transformRequest:
where my custom node <customTag> goes inside the <data> tag.
But can anyone tell me how to generate a request like the one below??
where my custom node <customTag> goes under the <request> tag at the same level as the <data> tag.
I have tried with DSRequest.setAttribute(String, String) but that didn't have any impact on the request XML.
Thanks,
Luc
Code:
<request>
<data>
<isc_OID_21>
[B]<customTag>blah</customTag>[/B]
<field1>foo</field1>
<field2>bar</field2>
</isc_OID_21>
</data>
<oldValues></oldValues>
<dataSource>isc_OID_21</dataSource>
<operationType>add</operationType>
<componentId>isc_OID_53</componentId>
</request>
But can anyone tell me how to generate a request like the one below??
Code:
<request>
[B]<customTag>blah</customTag>[/B]
<data>
<isc_OID_21>
<field1>foo</field1>
<field2>bar</field2>
</isc_OID_21>
</data>
<oldValues></oldValues>
<dataSource>isc_OID_21</dataSource>
<operationType>add</operationType>
<componentId>isc_OID_53</componentId>
</request>
I have tried with DSRequest.setAttribute(String, String) but that didn't have any impact on the request XML.
Thanks,
Luc
Comment