Help needed to loop through child records in the message & pass it to web service.

Home Page Forums BizTalk 2004 – BizTalk 2010 Help needed to loop through child records in the message & pass it to web service.

Viewing 2 reply threads
  • Author
    Posts
    • #23001

      Hi All,

      I am receiving following message in my orchastration,

      <Employees>

      <Employee>

      <Name></Name>

      <ID></ID>

      <Email></Email>

      <Status></Status>

      </Employee>

      <Employee>

      <Name></Name>

      <ID></ID>

      <Email></Email>

      <Status></Status>

      </Employee>

      </Employees>

       

      Child record “Employee” can occur any number of times in Employees message. I want to loop through all the child “Employee” records & pass every child record to WebService method which will validate whether the Name & Email corresponding to ID is correct or not & at the same time it will update the “status” node in passed “Employee” child record.

       

      Please suggest me proper approach to implement this requirement.

      Thanks in Advance,

      KpKing

    • #23035

      Hi KpKing,

      You’re looking for debatching solution. Search on the internet there are several options available with sample code included.

    • #23049

      Hi KpKing,

      Do you need to debatch and then rebatch the <Employees> incomming message?

      If you don’t then you could make your Receive Pipeline split the messages up and just process each Employee separately; generate ports and message types from the web service, map the Employee msg to web service request, generate the update message from the web service response msg as an example 🙂

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