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