11-11-05 10:58 PM
Samuel L wrote:
> Hi!
>
> I receive a message A of schema type named Order in my orchestration. Then
I
> want to construct a message B of XmlDocument type. But simply assigning B=
A
> in a construct shape results in error... "Object reference not set to an
> instance of an object."
>
> I am able to perform my assignment if I add a temporary XmlDocument variab
le
> Tmp and do like this: Tmp=A; B=Tmp;
>
> Why does this work while the first straigh-forward approach does not work?
?
>
> Thanks for your comments!
>
I believe this is because when you create a variable an instance of it
is created for you (b calling the default constructor, unless otherwise
specified.
I have not tried that just now, but did you try actually calling the
XmlDocument constructor before assigning your message to the XmlDocument
type'd message?
try
B = new XmlDocument();
B=A;
Hope this works for yo
Yossi Dahan
Sabra Ltd.
[ Post a follow-up to this message ]
|