Simple way of Aggregating Response Message?

Home Page Forums BizTalk 2004 – BizTalk 2010 Simple way of Aggregating Response Message?

Viewing 1 reply thread
  • Author
    Posts
    • #16410

      Hi All!

      In a scenario where we have an unbounded message, coming into the orchestration, we break the message using xpath query, and for every broken part we call an outside component inside a loop, which returns us the result.

      The response message would also be an unbounded one, like the request message, For every returned result from component we build one instance of the repeating node in the response message. But there seems to be no easy way of doing this assignment to that repeating part and then finally when the loop is over, assign all those repeating nodes to the final response message that we return to the caller of the orchestration.

      I've seen one or two examples where they use a pipeline to do this, really cant understand that. Is there an easy way of doing what I am trying to do?, if so please tell or redirect me.

       

      Regards,

      Sajid.

    • #16415

      Sajid,  I have found two solutions to this pattern.

      1.  Write a .net object that will accumulate nodes and when done return a message with the unbounded records.

      2.  Create an accumulator map.  Input is a composite message of 'current' unbounded collection and next element,  output is the 'new' combined unbounded collection.  Loop until done.  Looping functoids can help do this.

       Since you are already familiar with xpath, the first solution may be best for you

      luck

      Doug

       

       

       

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.