cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a comment in payload ??

arunneerolil
Contributor
0 Kudos

Hi All,

How to add a comment in message payload ??

For eg:

Current Output

============

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

<dcsextractdata extractname="">

<dataheaders>

<dataheader>

<record_type datatype="123" />

<action datatype="CHAR">E</action>

<code>FK</code>

</dataheader>

</dataheaders>

</dcsextractdata>

Required Output

=============

<!-- This contains MVJ control data -->

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

<!-- imct.dtd is used here -->

<dcsextractdata extractname="">

<dataheaders>

<dataheader>

<record_type datatype="123" />

<action datatype="CHAR">E</action>

<code>FK</code>

</dataheader>

</dataheaders>

</dcsextractdata>

Thanks in Advance

Regards,

Chemmanz

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

you can use XSLT mapping or JAVA mapping

Message was edited by:

Sreeram Reddy

arunneerolil
Contributor
0 Kudos

Hi all,

thank u all for your reply.

anyway to do it using graphical mapping ??

Regards,

Chemmanz

Former Member
0 Kudos

yha thats why i told to use External Defination in my previouse response

arunneerolil
Contributor
0 Kudos

hi sreeram,

no that way won't work.

Chemmanz

Former Member
0 Kudos

then you need to use XLST . wht is the error your getting?

arunneerolil
Contributor
0 Kudos

no error.

comments are getting removed while importing XSD/DTD to XI as external def

chemmanz

Former Member
0 Kudos

HI,

My be try with add the comments in payload and then send it to out.

Regards

Chilla..

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can easily do it with XSLT mapping

which you can either put just after you mapping (inside interface mapping)

or inside an adapter module (all in standard)

Regards,

michal

Former Member
0 Kudos

Hi,

Are you usign content conversion .

If yes we can do with FCC.

Else which type of Adapter you are using ..

I hope .. export into XSD and change and take it import under the external definitions , later that can be used.

..

Can you please tell , if i am wrong.

Regards

Chilla..

arunneerolil
Contributor
0 Kudos

hi chandra,

i am using file recieiver adapter.

but why should i go for FCC ??

i need the XML file itself as the ouput with some comments added.

regards,

Chemmanz

Former Member
0 Kudos

you can try with external defination define your output strute including comments and import in to XI and map see if itworks ia mnot sure on this