custom message context property
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 General > custom message context property




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

    custom message context property  
Stefan


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


 
05-29-06 10:21 PM

I would like to pass some message specific args along with the message
through a custom send pipeline, but the arguments are not part of the
original message. I figured i would have to use message context properties
but i'm not really sure how.

Is there a way to add message context properties from an orchestration so
that they are accessible from a custom pipeline component?







[ Post a follow-up to this message ]



    Re: custom message context property  
Tomas Restrepo \(MVP\)


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


 
05-29-06 10:21 PM

Stefan,

>I would like to pass some message specific args along with the message
> through a custom send pipeline, but the arguments are not part of the
> original message. I figured i would have to use message context properties
> but i'm not really sure how.

Yep, those are the ones you want to use. Make sure you define them in your
property schema as being of MessageContextPropertyBase type (instead of
MessageDataPropertyBase type).

> Is there a way to add message context properties from an orchestration so
> that they are accessible from a custom pipeline component?

Sure, just add them to the message context during message construction in a
Message Assignment shape, using the syntax:

MyMessage(<Property> ) = <value>;


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







[ Post a follow-up to this message ]



    Re: custom message context property  
Stefan


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


 
05-29-06 10:21 PM

I created a property scema with the property "thumbprint" as a
"MessageContextProperty". However, when i try to do

MyMessage(thumbprint) = "foo";

i get a message saying that the identifer "thumbprint" doesn't exsist.
The property schema is in the same project as all my other schemas, so
references should be correct. What am i missing?

"Tomas Restrepo (MVP)" wrote:

> Stefan,
> 
>
> Yep, those are the ones you want to use. Make sure you define them in your
> property schema as being of MessageContextPropertyBase type (instead of
> MessageDataPropertyBase type).
> 
>
> Sure, just add them to the message context during message construction in 
a
> Message Assignment shape, using the syntax:
>
> MyMessage(<Property> ) = <value>;
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>





[ Post a follow-up to this message ]



    Re: custom message context property  
Tomas Restrepo \(MVP\)


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


 
05-29-06 10:21 PM

Stefan,

>I created a property scema with the property "thumbprint" as a
> "MessageContextProperty". However, when i try to do
>
> MyMessage(thumbprint) = "foo";
>
> i get a message saying that the identifer "thumbprint" doesn't exsist.
> The property schema is in the same project as all my other schemas, so
> references should be correct. What am i missing?

You're missing the namespace/typename. Remeber that all schemas have a
typename associated with them (which is part of the .xsd file properties),
which in turns gets a namespace when compiled by the biztalk project. You
need to use the fully qualified name of the property

(for example: MyPropertySchema.Thumbprint, or
Winterdom.Schemas.AdapterProperties.Thumbprint).

Check your schema settings and you should be able to find it.


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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:23 AM.      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