Want to Merge the recieved XML message to one

Asked By Abhinav Saxena
06-Nov-09 03:10 AM
Earn up to 0 extra points for answering this tough question.

I am having a Order Schema containing multiple Items.I have actally debatched the schema inside my orchestration using Loop.

i am processing some calculations on the the items elementst like status and total amount.

suppose i have 3 items in my Input i am getting 3 outputs of them

schema is like

<item>

   <id>

   <name>

   <Quantity>

   <Status>

 

now what i am not able to do is

i want the output as single message. I am able to read the three messages in my orchestration. But is there any possible way to combine these three messages into single message  My output should look like

<Order>

    <orderid>

   <Items>

      <Item>

            <id>

            <Name>

        </item>

      <Item>

            <id>

            <Name>

      </Item>

     </Items>

I read the Matt Meleski's Blog but it is having some attributes concepts.

Any help will be appreciated.    Thank you

 

  re: Want to Merge the recieved XML message to one

Daivagna Nanavati replied to Abhinav Saxena
10-Mar-10 02:20 AM
yes it is possible

you have loop shape so you can have string variable in expression shape out of loop so that it can be global,now in loop keep on adding your portion of your xml in that string variable,now when your loop gets over take one expression shape and craete one xml document,now using LoadXML method apply your string which has whole xml to your xml document and send it to yoursend port

chheeeerrssss
Create New Account