How to update a message inside a loop? (Urgent)

Home Page Forums BizTalk 2004 – BizTalk 2010 How to update a message inside a loop? (Urgent)

Viewing 2 reply threads
  • Author
    Posts
    • #14042

      Hi All

      I am a newbie using biztalk 2004 to develop a simple project. I have following inbound message..

      <Orders>
      <Order>
      <ID>1</ID>
      <Success></Success>
      </Order>
      .
      .
      .
      <Order>
      <ID>6</ID>
      <Success></Success>
      </Order>

      </Orders>

      I want loop the order node and send order id to a web service and put the modify the success node value. The final output should be like this:
      <Orders>
      <Order>
      <ID>1</ID>
      <Success>NoStock</Success>
      </Order>
      .
      .
      .
      <Order>
      <ID>6</ID>
      <Success>OK</Success>
      </Order>

      </Orders>

      Anyone has some similiar sample, could you email me at yangbin990@hotmail.com

    • #14041

      I think I would write a c# helper function that would insert an XML node at the appropriate location. I posted such code on this website a while back (search for \”AddChild\”).

    • #20793

       Hello Bizltalkers!!

      I know that post is quite old… but I’m facing some similar problem using Biztalk 2006 (newbie guy!).

      Using (as an example) the XML previouslly posted, I should loop inside it in order to choose the destination system (webservice, Oracle, SQL, all kind of systems you could imagine!). So, I got something like this:

      <Orders>
      <Order>
      <Type>1</Type>
      </Order>

      (…)

      <Order>
      <Type>6</Type>
      </Order>

      </Orders>

      So for example…. when I got the Type 1 it goes to Oracle, 6 goes to WebService.

      How can I accomplish that using Orchestration?

      Nice week for all of you!! And many many tks!

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