Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help to loop through child records in message & pass it to webserv

2 views
Skip to first unread message

Kiran_Juikar

unread,
Aug 12, 2009, 4:27:01 AM8/12/09
to
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,
Kiran


Ronbo

unread,
Sep 30, 2009, 7:05:04 PM9/30/09
to
It sounds like you want a splitter pattern. You're going to end up using an
expression shape and constructing the messages using some XSLT.


There's a good blog entry with a link to a couple of solutions here:

http://geekswithblogs.net/AskPaula/archive/2008/01/28/118999.aspx


It can also be done by using an envelope and body schema, where your header
is the "envelope" and the child records are the body schema.

See:
http://www.codeproject.com/KB/biztalk/BizEnvelop.aspx

Also handy:
http://msdn.microsoft.com/en-us/library/aa578066.aspx
http://msdn.microsoft.com/en-us/library/aa578090.aspx

Good luck!

0 new messages