This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > April 2005 > XML Message





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XML Message
Abhishek

2005-03-24, 5:50 pm

Hi

I am stuck up with a problem in Biztalk Can you help me out please ?

I have a message coming in the the Biztalk orchestration. The message
is some what like following:

<AccountsInfo>
<Account>
<Style>Style1</Style>
</Account>
<Account>
<Style>Style1</Style>
</Account>
<Account>
<Style>Style2</Style>
</Account>
</AccountsInfo>

Now I want to create two seperate messages out of this with each of
the styles like:

Message 1:

<AccountInfo>
<Account>
<Style>Style1</Style>
</Account>
<AccountInfo>

Message 2:

<AccountInfo>
<Account>
<Style>Style2</Style>
</Account>
<AccountInfo>

Can you give me any idea how to do this ?

Thanks
Abhishek (abhisheksaraswat@gmail.com)
Jon Flanders[DevelopMentor]

2005-03-24, 5:50 pm

You could create a map that takes the incoming message and outputs two
messages. You can use a logical functoid to check the valueof the style
element and ue it to create the appropriate outgoing messages.

--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Abhishek" <abhisheksaraswat@gmail.com> wrote in message
news:cfc59162.0503240601.36ab016f@posting.google.com...
> Hi
>
> I am stuck up with a problem in Biztalk Can you help me out please ?
>
> I have a message coming in the the Biztalk orchestration. The message
> is some what like following:
>
> <AccountsInfo>
> <Account>
> <Style>Style1</Style>
> </Account>
> <Account>
> <Style>Style1</Style>
> </Account>
> <Account>
> <Style>Style2</Style>
> </Account>
> </AccountsInfo>
>
> Now I want to create two seperate messages out of this with each of
> the styles like:
>
> Message 1:
>
> <AccountInfo>
> <Account>
> <Style>Style1</Style>
> </Account>
> <AccountInfo>
>
> Message 2:
>
> <AccountInfo>
> <Account>
> <Style>Style2</Style>
> </Account>
> <AccountInfo>
>
> Can you give me any idea how to do this ?
>
> Thanks
> Abhishek (abhisheksaraswat@gmail.com)



gordon

2005-03-31, 8:47 pm

Actually that solution would limit the number of output messages. Instead
you should:

1) Create a map to count the number of nodes
2) Use a loop shape with upper limit the count of nodes
3) Create a index message with a integer element starting at 1
4) In the loop create a map with two inputs. The message you want to split
and the index message
5) The output of this map will be a single node xml document
6) Increment the index message

Gordon

"Jon Flanders[DevelopMentor]" wrote:

> You could create a map that takes the incoming message and outputs two
> messages. You can use a logical functoid to check the valueof the style
> element and ue it to create the appropriate outgoing messages.
>
> --
> Jon Flanders [DevelopMentor]
> http://staff.develop.com/jfland/
> http://www.develop.com/courses/biztalk
> "Abhishek" <abhisheksaraswat@gmail.com> wrote in message
> news:cfc59162.0503240601.36ab016f@posting.google.com...
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2010 webservertalk.com