|
Home > Archive > BizTalk Server General > June 2004 > how can I send message to different queue based on a value in my incoming XML ?
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 |
how can I send message to different queue based on a value in my incoming XML ?
|
|
|
| I can send a message to a fixed MSMQ queue but how can I
set it dynamically based on a value in my incoming XML ?
Any suggestion is greatly appreciated.
thanks
| |
| Scott Colestock 2004-06-26, 10:51 am |
| If you are using orchestration, you can use a distinguished field with the
associated schema, and use it to establish the value of a dynamic port in
your orchestration.
- Scott Colestock
"John" <anonymous@discussions.microsoft.com> wrote in message
news:2105c01c45a13$a2cda0c0$a101280a@phx
.gbl...
> I can send a message to a fixed MSMQ queue but how can I
> set it dynamically based on a value in my incoming XML ?
> Any suggestion is greatly appreciated.
> thanks
| |
| Kevin Lam [MS] 2004-06-26, 10:51 am |
| You can use a dynamic send port and set it with a custom receive pipeline
component or from within an orchestration.
From a pipeline component you would need to access the value acting as the
MSMQ path in the document, through XPath for example, set the
BTS.OutboundTransportLocation context property on the message to the MSMQ
send location (e.g. "DIRECT=OS:MyMachine\Private$\MyQueue").
If you are doing it from an orchestration you can make the XML property that
contains the MSMQ path a distinguished property and set it to
Microsoft.XLANGs.BaseTypes.Address on your orchestration port bound to the
dynamic send port e.g. from within an expression
MyMSMQtPort(Microsoft.XLANGs.BaseTypes.Address) = MyMessage.msmqPath.
-Kevin
--
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
"John" <anonymous@discussions.microsoft.com> wrote in message
news:2105c01c45a13$a2cda0c0$a101280a@phx
.gbl...
>I can send a message to a fixed MSMQ queue but how can I
> set it dynamically based on a value in my incoming XML ?
> Any suggestion is greatly appreciated.
> thanks
|
|
|
|
|