Unconstructed message bites again...
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 > Unconstructed message bites again...




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

    Unconstructed message bites again...  
Neal Walters


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


 
07-15-04 10:50 PM

We receive doc1, we transform doc1 to doc2.  We then have a decide shape tha
t branches based on a value in doc2.  THEN, in the two branches of the decid
e shape, we want to change the value of a distinguished field in doc2.

The Expression shape disallows and says we have to be in a construct message
 shape.  If we use an assign message (inside a construct) shape, we still ge
t the compile error that says "unconstructed message".  We know that it has 
been constructed.  Doesn't
the message keep flowing on forward.  Can you not change any of its values o
nce it has been constructed???

Thanks,
Neal Walters
http://Biztalk-Training.com






[ Post a follow-up to this message ]



    RE: Unconstructed message bites again...  
Alan Smith


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


 
07-16-04 07:48 AM

Hi Neal,

I've had this too. I think it's due to the way the BizTalk constructmessag w
orks.
When the construct shape starts, it will create a new instance of doc2, and 
the
original message will not be present.

One option you could take is to perform the map, then in the same construct
shape, add a message assignment shape below the transform. In this shape,
use an if statement to make the doc2 modification.

Cheers,

Alan.

BizTalk & .net
Consulting Training Mentoring
Stockholm London Europe
See aboutme for contact info



"Neal Walters" wrote:

> We receive doc1, we transform doc1 to doc2.  We then have a decide shape t
hat branches based on a value in doc2.  THEN, in the two branches of the dec
ide shape, we want to change the value of a distinguished field in doc2.
>
> The Expression shape disallows and says we have to be in a construct message shape
.  If we use an assign message (inside a construct) shape, we still get the compile 
error that says "unconstructed message".  We know that it has been constructed.  Doe
sn'
t the message keep flowing on forward.  Can you not change any of its values once it has bee
n constructed???
>
> Thanks,
> Neal Walters
> http://Biztalk-Training.com
>





[ Post a follow-up to this message ]



    RE: Unconstructed message bites again...  
System.Xml.XmlDocument


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


 
07-20-04 12:48 PM

Create a Temp message of Type Doc2
In the First Transformation use a message assignment in which assign
Temp = doc2

In the second construct message do the reverse of above
i.e doc2 = Temp
doc2.Distinguishedfield = "something"

I hope this will solve your problem

Regards
Raja



"Alan Smith" wrote:
[vbcol=seagreen]
> Hi Neal,
>
> I've had this too. I think it's due to the way the BizTalk constructmessag
 works.
> When the construct shape starts, it will create a new instance of doc2, an
d the
> original message will not be present.
>
> One option you could take is to perform the map, then in the same construc
t
> shape, add a message assignment shape below the transform. In this shape,
> use an if statement to make the doc2 modification.
>
> Cheers,
>
> Alan.
>
> BizTalk & .net
> Consulting Training Mentoring
> Stockholm London Europe
> See aboutme for contact info
>
>
>
> "Neal Walters" wrote:
> 
n't the message keep flowing on forward.  Can you not change any of its values once it has b
een constructed???[vbcol=seagreen] 





[ Post a follow-up to this message ]



    RE: Unconstructed message bites again...  
Shankar Stanam[MSFT]


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


 
07-21-04 07:46 AM

Might want to be little careful with message assignment, as biztalk does
not do the deep copy.  Might want to look at the documentation at
http://msdn.microsoft.com/library/e...g_orch_vwlg.asp for
further help on the topic



This posting is provided "AS IS" with no warranties, and confers no rights.
EBusiness Server Team







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:09 AM.      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