12-16-04 11:49 PM
I believe the problem is having declared the variable in the expression
shape. Instead of declaring the variable (myData) in the expression shape,
you will need to create an orchestration variable (just like you create a
message object). So given that you have the reference added to your .NET
assembly, just go to the orchestration view, right click variables and selec
t
'New Variable'. In properties you can set it's name and can select type by
choosing <.NET class> and browsing to your referenced assembly. Then in your
expression shape, you can instantiate your object.
"Stevie" wrote:
> This may sound really stupid, but I can't believe that I am having a
> really hard time creating an instance of my .NET object.
>
> I added an Expression shape, and I added a code snippet as such.
>
> MyNameSpace.Data myData;
>
> I am using the default constructor so according to the Help, I don't
> have to do a new MyNameSpace.Data(), right?
>
> Anyway, the design-time error is "illegal declarator: declaration may
> only appear in a service or a scope."
>
> The expression is already inside a scope. As you can tell, I'm a newbie
> at BizTalk.
>
> Can someone please help?
>
> TIA!
>
>
[ Post a follow-up to this message ]
|