Multiple operations on receive port
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Multiple operations on receive port




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Multiple operations on receive port  
Jeremy Chapman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-14-05 10: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.







[ Post a follow-up to this message ]



    RE: Multiple operations on receive port  
Gary


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-15-05 12:48 PM

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.
>
>
>





[ Post a follow-up to this message ]



    Re:Multiple operations on receive port  
Pankaj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-15-05 12:48 PM

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





[ Post a follow-up to this message ]



    Re: Multiple operations on receive port  
Jeremy Chapman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-15-05 10: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:
> 







[ Post a follow-up to this message ]



    Re: Multiple operations on receive port  
Jason Agostoni


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-16-05 12:47 PM

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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:04 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register