BizTalk Server Orchestration - Multiple operations on receive port

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > September 2005 > Multiple operations on receive port





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 Multiple operations on receive port
Jeremy Chapman

2005-09-14, 5:52 pm

I have one logical receive port with several operations, each for a
different message type.

I then have one receive shape connected to each operation on the receive
port.

In my orchestration I need to construct a message from data in which ever
message came in. In the expression, how do I determine what message type to
get data from? Because only one will be active based on the message
received.


Gary

2005-09-15, 7:48 am

Hi Jeremy,

Have you looked at using the listen shape, you could put your receive shapes
in the listen shape and your orchestration will wait until one of the
messages arrives. Underneath each receive shape you could then construct the
message.

Hope this helps,
Gary

"Jeremy Chapman" wrote:

> I have one logical receive port with several operations, each for a
> different message type.
>
> I then have one receive shape connected to each operation on the receive
> port.
>
> In my orchestration I need to construct a message from data in which ever
> message came in. In the expression, how do I determine what message type to
> get data from? Because only one will be active based on the message
> received.
>
>
>

Pankaj

2005-09-15, 7:48 am

You can always extract the root element and namespace from the xml message.
Based on the root element and namespace, you can decide the action to be
taken.

Hope this helps

Regards
Pankaj
Jeremy Chapman

2005-09-15, 5:59 pm

Good idea, although after trying this I discovered that anything
constructed inside the listen shape can not be used outside the shape. Which
means I'd have to duplicate a bunch of the shapes that would otherwise be
common.


"Gary" <Gary@discussions.microsoft.com> wrote in message
news:12322B4F-FF54-45CD-8B2D-93F006197EE4@microsoft.com...[vbcol=seagreen]
> Hi Jeremy,
>
> Have you looked at using the listen shape, you could put your receive
> shapes
> in the listen shape and your orchestration will wait until one of the
> messages arrives. Underneath each receive shape you could then construct
> the
> message.
>
> Hope this helps,
> Gary
>
> "Jeremy Chapman" wrote:
>


Jason Agostoni

2005-09-16, 7:47 am

You should be able to use a message constructed in the listen shape. I
am assuming you are getting a "use of uncontructed" message error.
What it is telling you is that it is possible that the message you are
using has not been constructed (e.g. if it another branch in the listen
shape is taken). Ways around that include: pre-constructing all of
your messages using an XmlDocument object (searching wil yield sample
code) or just setting a slew of variables to the result of your
message. These variable can be initialized just before you enter your
listen shape.

Jason Agostoni
..Net Architect
www.ceiamerica.com
http://jason.agostoni.net

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com