| Gold E 2006-04-27, 7:25 am |
| I use the construct statement inside an expression shape and it would compile
regardless of where I placed the shape. One thing to note... I believe you
will have to initialize all the promoted properties in the message, otherwise
it won't compile and you might receive the error you mentioned below. I only
use this approach with simple schemas where there are only a handful of
properties I need to initialize (e.g. creating a message that is passed to a
web service with one or two parameters).
Of course, one alternate approach is to use a map and default
values/functoids to generate/constrcut the new message.
I don't have BTS 2006 on hand to test this out with, so it is possible it's
a version difference. Although I would hope they wouldn't remove this
capability, unless it was replaced by an alternate approach.
"erithtotl@gmail.com" wrote:
> Gold E:
>
> Do you use this in an expression shape or message assign? In a message
> assign I get a compiler error (but no syntax issues). If I use it in
> an expression, then I get a 'use of unconstructed message' in my send
> shape, because the message was not initialized in a construct shape.
>
> Note I'm using BizTalk 2006.
>
> Thanks!
>
>
|