BizTalk Server Applications Integration - Several kinds of promoted properties(!)

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > April 2004 > Several kinds of promoted properties(!)





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 Several kinds of promoted properties(!)
Christof

2004-04-29, 6:36 pm

Hi,

BizTalk Server actually knows 2 kinds of message context:
- MessageDataPropertyBase
- MessageContextPropertyBase

Most default projects use the BizTalk Server default: MessageDataPropertyBase. So... let me explain:

- MessageDataPropertyBase is used when promoting properties on a document schema. (For example: and "order" schema, that -on it- has declared a promoted property "OrderID".) This kind of properties is always(!) associated with a document schema. This means that the property cannot be present if your message is not an instance from such a schema.

- MessageContextPropertyBase is used when the MessageDataPropertyBase is not flexible enough. Especially in the context of adapters this makes sense: this is context that is unassociated with any schema! This means that this kind of context can possibly be present on each kind of message. (For example: the FILE adapter that promotes the property "ReceivedFileName" on any message types that it pulls in.)

Try to use the MessageContextPropertyBase in the sample code please. For instructions on how to configure this on your property schema, please review the docs.
Kind regards,

Christof


"Cecilie" <anonymous@discussions.microsoft.com> wrote in message news:94414A5F-DCBC-45E8-A66D-D9B735144357@microsoft.com...
>
> Thanks for det sample code!
> I manage to read standard properties like "ReceivedFileName" with the Read function, but not to read my own properties promoted in my schema. Maybe I use the wrong namespace....how do I determine which namespace to use along with the property name in the Read function? May I find it in my PropertySchema.xsd?
>
> Regards,
> Cecilie

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com