cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in creating header node at reciver XML file?

Former Member
0 Kudos

Hello All,

Iam creating proxy to file scenario.....at receiver side iam creating XML file like below.

<?xml version="1.0" encoding="UTF-8" ?>

<OrderTransaction>

<TransactionInformation Version="2.0.0">

<DocId>0180000186</DocId>

<Sender>........

.............................

........................

</OrderTransaction>

bit now client require one header node like below

<!DOCTYPE OrderTransaction PUBLIC "Order" "Order.dtd">

now th recevier xml need to look like

<?xml version="1.0" encoding="UTF-8" ?>

<OrderTransaction>

<!DOCTYPE OrderTransaction PUBLIC "Order" "Order.dtd">

<TransactionInformation Version="2.0.0">

<DocId>0180000186</DocId>

<Sender>........

.............................

........................

</OrderTransaction>

how to add that node........... i cant add it as node element............ Please help me out.

Thanks and Regards,

Chinna

Edited by: chinnasapxi on Mar 16, 2010 8:11 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you can also try to use java mapping as the second mapping step after message mapping and replace <OrderTransaction> with <OrderTransaction>\n<!DOCTYPE OrderTransaction PUBLIC "Order" "Order.dtd">\n.

Former Member
0 Kudos

Hi Chinna,

Probably writing a script and calling in receiver file adapter after message processing and in the script just add the line in the 3rd line and then put the rest.

Regards,

---Satish