Execute multiple Biztalk 2004 messages from .NET

Home Page Forums BizTalk 2004 – BizTalk 2010 Execute multiple Biztalk 2004 messages from .NET

Viewing 1 reply thread
  • Author
    Posts
    • #13826

      Hi

      I am using .NET component to execute a Biztalk 2004 rules policy which takes an input xml message and returns me updated xml message, as explained in Case A.

      Case A:
      Input xml with ID value:
      <Emp>
      <ID>1002</ID>
      <Income/>
      </Emp>

      Output xml with ID and Income value:

      <Emp>
      <ID>1002</ID>
      <Income>50000</Income>
      </Emp>

      Case B:
      Input xml with IDs of multiple employees:
      <Employees>
      <Emp>
      <ID>1000</ID>
      <Income/>
      </Emp>
      <Emp>
      <ID>1001</ID>
      <Income/>
      </Emp>
      <Emp>
      <ID>1002</ID>
      <Income/>
      </Emp>
      </Employees>

      Output desired:
      <Employees>
      <Emp>
      <ID>1000</ID>
      <Income>40000</Income>
      </Emp>
      <Emp>
      <ID>1001</ID>
      <Income>50000</Income>
      </Emp>
      <Emp>
      <ID>1002</ID>
      <Income>60000</Income>
      </Emp>
      </Employees>

      My question is: How can I acheive the desired output using .NET components? I want to execute policy only through C# code and get back the result.

      Please advise. Thanks in advance.

      Pankaj[code:1:7ff55824ef][/code:1:7ff55824ef][code:1:7ff55824ef][/code:1:7ff55824ef]

    • #13825

      If I remember right, if you pass in the fact as an Xml Document the rules should run multiple times for each Emp node. Have you tried that?

      We were working with object in .net code. We had some repeating nodes and they were just handled for us. I would expect the Xml Document would be too.

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