BizTalk Server General - Promoted Context Properties in Direct binding

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > December 2005 > Promoted Context Properties in Direct binding





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 Promoted Context Properties in Direct binding
Samuel L

2005-12-07, 5:55 pm

Hi!

I have got two orchestration A and B which are connected via a direct
binding using a partner port. The partner port is in A and is defined to
receive an XmlDocument message. The thing is that I would like to send a
message with custom promoted context properties, but they don't get promoted.

Using HAT, I can see that the context properties exist in the message
context, but the promoted column is set to false... So they are not promoted!

Is there a way to promote context properties when sending an XmlDocument
message directly between two orchestrations?

Thanks for all help and comments!

Stephen W. Thomas

2005-12-07, 5:55 pm

Hello.

I should be able to use a Correlation Set to force the promotion of your
values. I think they also need to been MessageContext type promoted
properties.

It seems a little strange – but it should work.

This is talked about a little more by Charles Young:
http://geekswithblogs.net/cyoung/articles/17364.aspx

Hope this helps.

Stephen W. Thomas
http://www.biztalkgurus.com
http://geekswithblogs.net/sthomas/


"Samuel L" wrote:

> Hi!
>
> I have got two orchestration A and B which are connected via a direct
> binding using a partner port. The partner port is in A and is defined to
> receive an XmlDocument message. The thing is that I would like to send a
> message with custom promoted context properties, but they don't get promoted.
>
> Using HAT, I can see that the context properties exist in the message
> context, but the promoted column is set to false... So they are not promoted!
>
> Is there a way to promote context properties when sending an XmlDocument
> message directly between two orchestrations?
>
> Thanks for all help and comments!
>

Tomas Restrepo \(MVP\)

2005-12-07, 5:55 pm

Hi Samuel,

> I have got two orchestration A and B which are connected via a direct
> binding using a partner port. The partner port is in A and is defined to
> receive an XmlDocument message. The thing is that I would like to send a
> message with custom promoted context properties, but they don't get
> promoted.
>
> Using HAT, I can see that the context properties exist in the message
> context, but the promoted column is set to false... So they are not
> promoted!
>
> Is there a way to promote context properties when sending an XmlDocument
> message directly between two orchestrations?


Yep, as Stephen quite correctly pointed out, sending messages through direct
binding doesn't actually promote the properties. The way to get it to work
is to follow he's comments:

1. Make sure your property definitions are of MessageContextBase (and not
MessageDataBase), and
2. Create a correlation set on the properties you need promoted, and
initialize it on the send shape.

If you have more than one send where you need to do this in an
orchestration, you can use scopes and create the correlations as local to
the specified scope; which minimizes cluter a bit.


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com