Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 04:15 PM

    hi Vincent,

    does that mean my last answer (standard solution) is not good and/or not enough ? ([your previous thread|removing-carriage-return-from-the-last-line-of-a-f])

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

    Mickael

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 08, 2011 at 05:22 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.