none
Code to split biztalk xml inner node message in to many RRS feed

  • Question

  • Hi,

    I want to split inner node message into many. Actually my xml message look like bellow

    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>
    <Detail>
    <detail1>1</detail1>
    <detail2>2</detail2>
    <detail3>3</detail3>
    <detail4>4</detail4>
    </Detail>
    </MSg>

    Above message need to be splitted to bellow

    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>
    <Detail>
    <detail1>1</detail1>
    <detail2>2</detail2>
    </Detail>
    </MSg>


    <MSg>
    <Header>
    <InterfaceName></InterfaceName>
    </Header>

    <Detail>
    <detail3>3</detail3>
    <detail4>4</detail4>
    </Detail>
    </MSg>
    <MSg>

    Can anyone help me to give the disassemble code to do it 

    Wednesday, September 24, 2014 6:18 AM

Answers

  • Hi,

    You can write your own Custom Disassemble Pipeline Component which will break a message into batch of multiple messages. Batch size can be configured at pipeline design time by Implement members of IPersistPropertyBag interface.

    The Scenario provided in the below link is exactly the same as your requirement. You just need to do few tweaks to the code.

     

    http://blogs.msdn.com/b/brajens/archive/2006/12/03/how-to-develop-biztalk-custom-pipeline-components-part2.aspx

    Rachit

    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

    • Proposed as answer by Pi_xel_xarEditor Wednesday, September 24, 2014 7:25 AM
    • Marked as answer by Angie Xu Monday, September 29, 2014 8:19 AM
    Wednesday, September 24, 2014 6:25 AM
    Moderator

All replies

  • Hi,

    You can write your own Custom Disassemble Pipeline Component which will break a message into batch of multiple messages. Batch size can be configured at pipeline design time by Implement members of IPersistPropertyBag interface.

    The Scenario provided in the below link is exactly the same as your requirement. You just need to do few tweaks to the code.

     

    http://blogs.msdn.com/b/brajens/archive/2006/12/03/how-to-develop-biztalk-custom-pipeline-components-part2.aspx

    Rachit

    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

    • Proposed as answer by Pi_xel_xarEditor Wednesday, September 24, 2014 7:25 AM
    • Marked as answer by Angie Xu Monday, September 29, 2014 8:19 AM
    Wednesday, September 24, 2014 6:25 AM
    Moderator
  • You can use an envelope schema . XML receive pipeline can be used to de batch Check these , 

    http://psrathoud.wordpress.com/2013/12/06/using-envelop-schema-in-biztalk-demo/

    http://psrathoud.wordpress.com/2013/11/24/131/

    Regards

    Wednesday, September 24, 2014 3:32 PM