agogna
16 years agoNew Contributor
Re: Dynamically Generate request XML
I have to dynamically create request xml based on number of rows retrieved from database.
for example
.....>
-- row 1
?
?
...
...
-- row 2
?
?
...
...
I am retrieving all the rows using datasource and running a query.
Then I tried to insert new tags from the property transfer step using
Property Transfer from
declare namespace mat='http://xxxxxxxx/matterservice/';
insert '
${Properties#CORRELATION_ID}
${Properties#MTTR_DT_NM_ID}
${Properties#MTTR_DT_TYPE_ID}
${Properties#DATE_VALUE}
'
into //mat:MatterServiceRequest[1]/MatterServiceInput[1]/UpdateMatter[1]/row[1]
Property Transfer to
declare namespace mat='http://xxxxxx/matterservice/';
//mat:MatterServiceRequest/MatterServiceInput/UpdateMatter/CreateMatterDate
But instead of inserting, it overwrites the existing values.
I know I am doing something wrong as this step should be trivial.
Can somebody point me in the right direction.
Thanks,
Abhi
for example
.....>
...
...
...
...
I am retrieving all the rows using datasource and running a query.
Then I tried to insert new tags from the property transfer step using
Property Transfer from
declare namespace mat='http://xxxxxxxx/matterservice/';
insert '
into //mat:MatterServiceRequest[1]/MatterServiceInput[1]/UpdateMatter[1]/row[1]
Property Transfer to
declare namespace mat='http://xxxxxx/matterservice/';
//mat:MatterServiceRequest/MatterServiceInput/UpdateMatter/CreateMatterDate
But instead of inserting, it overwrites the existing values.
I know I am doing something wrong as this step should be trivial.
Can somebody point me in the right direction.
Thanks,
Abhi