BizTalk Server General - Listen on MQ for different XML Messages

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > Listen on MQ for different 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 Listen on MQ for different XML Messages
Nicato

2005-12-16, 5:54 pm

Hello
A system is sending different XML Messages to an MQ.
A message could be "CustomerUpdate" or "CustomerTermination" or
"CustomerStatus".
However, all these XML Messages have a different schema.
On the Biztalk side I am listening to exactly one MQ.
So BT would receive different XML messages through the same Queue.
My problem is now, that I don't know how to create an orchestartion to
manage all the different messages.
Since the message has not a unique format (schema) how should BT know how to
handle a message?
Since I can receive more than one message at the same time, it makes it
even worse.
Sample:
<?xml version="1.0" encoding="utf-16" ?>
<ROOT xmlns="http://schemas.microsoft.com/BizTalk/2003">
<?xml version="1.0" encoding="ISO-8859-1"?>
<Msg><CustomerUpdate>blabla</CustomerUpdate></Msg>
<?xml version="1.0" encoding="ISO-8859-1"?>
<Msg><CustomerStatus>dadada</CustomerStatus></Msg>
</ROOT>

As you can see, I have two full messages within the <ROOT>-Tag. They also
come with a XML declaration part (twice, for each message one).
How can I handle this?
Any suggestions?
Nicato

2005-12-16, 8:48 pm

I solved it via "brute force" -> I stripped of the declaration part <? ...?>.

"Nicato" wrote:

> Hello
> A system is sending different XML Messages to an MQ.
> A message could be "CustomerUpdate" or "CustomerTermination" or
> "CustomerStatus".
> However, all these XML Messages have a different schema.
> On the Biztalk side I am listening to exactly one MQ.
> So BT would receive different XML messages through the same Queue.
> My problem is now, that I don't know how to create an orchestartion to
> manage all the different messages.
> Since the message has not a unique format (schema) how should BT know how to
> handle a message?
> Since I can receive more than one message at the same time, it makes it
> even worse.
> Sample:
> <?xml version="1.0" encoding="utf-16" ?>
> <ROOT xmlns="http://schemas.microsoft.com/BizTalk/2003">
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Msg><CustomerUpdate>blabla</CustomerUpdate></Msg>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Msg><CustomerStatus>dadada</CustomerStatus></Msg>
> </ROOT>
>
> As you can see, I have two full messages within the <ROOT>-Tag. They also
> come with a XML declaration part (twice, for each message one).
> How can I handle this?
> Any suggestions?

Scott Colestock

2005-12-19, 5:54 pm

It should be noted that multiple <?xml...> declarations like that is not, in
fact, legal xml.

(You should consider having the contained messages wrapped in a CDATA
section, for instance.)

Scott Colestock
www.traceofthought.net


"Nicato" <Nicato@discussions.microsoft.com> wrote in message
news:104F2D30-D8EF-4354-9D3E-2E5B0BA59436@microsoft.com...[vbcol=seagreen]
>I solved it via "brute force" -> I stripped of the declaration part <?
>...?>.
>
> "Nicato" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com