cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a PI adapter module to edit the output xml message

Former Member
0 Kudos

Hi All,

I have a teaser for you!

I would like to write a PI adapter module to be used in a file receiver communication channel so that the target xml message is accessed and the carriage return on the last line is removed from the message before the file is created.

Would anyone have any idea?

Thanks in advance for your intputs!

Best regards,

Vincent

Accepted Solutions (0)

Answers (2)

Answers (2)

Ryan-Crosby
Active Contributor
0 Kudos

Hi Vincent,

Remember that since you are doing this as part of FCC that executes for the channel itself then you cannot achieve this in an adapter module. Your only option is to then remove the carriage return/new line after the file is generated.

Regards,

Ryan Crosby

prateek
Active Contributor
0 Kudos

Where was FCC mentioned in the question?

Ryan-Crosby
Active Contributor
0 Kudos

Hi Prateek,

It was included in the post that Mickael mentioned in his post.

Regards,

Ryan Crosby

prateek
Active Contributor
0 Kudos

Just to add, if you are using FCC and you want to use modules, try using MessageTransformBean module which provides all the functionalities as FCC and then in you can use other modules subsequently.

@Vincent, you shouldn't raise multiple threads for the same question. This wil bring in confusion for contributors. I suggest you to continue your posts on the older thread.

Regards,

Prateek Raj Srivastava

Former Member
0 Kudos

hi Vincent,

does that mean my last answer (standard solution) is not good and/or not enough ? ([your previous thread|])

Anyway... with SDN search button, you will find plenty of wiki, blog and pdf to know how to create a module.

Mickael