BizTalk Server General - XML Messages

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2005 > XML Messages





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 Messages
abhisheks

2005-03-24, 7:44 am

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
Tomas Restrepo \(MVP\)

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 ?


You could use a map in your orchestration that maps one input document to
two output documents and do a little bit of trickery in there (though it
would be a fairly simple XSLT). Also, I believe you could do this fairly
easily using the xpath function and then creating a message from the
resulting XML....

--
Tomas Restrepo
tomasr@mvps.org


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com