Message Assigning Problem
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Message Assigning Problem




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Message Assigning Problem  
Samuel L


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-11-05 12:48 PM

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






[ Post a follow-up to this message ]



    Re: Message Assigning Problem  
Yoss Dahan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: Message Assigning Problem  
Samuel L


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-14-05 10:53 PM

Thanks Yoss!

I seemed to work it out... Actually this wasn't the problem! =)
I had some other errors acting as trouble makers!

"Yoss Dahan" wrote:

> Samuel L wrote: 
> 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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:49 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register