BizTalk Server Orchestration - Use of unconstructed "DocumentOut" message - resolve how???

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > April 2004 > Use of unconstructed "DocumentOut" message - resolve how???





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Use of unconstructed "DocumentOut" message - resolve how???
H

2004-04-15, 11:52 am

I have created an Orchestration with two Schemas DocumentIn and DocumentOut.
I have then used a transformation shape and a Mapper to transform the message DocumentIn to DocumentOut.
I have then attempted to use a Classlibrary Class Method that takes in two XML arguments (DocumentIn and DocumentOut (messages)). The method transfers elements from DocumentIn and recreates/extends the DocumentOut with items from DocumentIn that could no
t be mapped. This is then returned as a new XmlDocument. The Class method is marked as [Serializable]. When I run the Class Method isolated from BizTalk everything works fine, however when I implement the Class Method in BizTalk I get "use of unconstru
cted message 'DocumentOut'" when trying to build the Orchestration. Error refers to the Construct Message Shape with a MessageAssignment Shape with the code "DocumentOut = MsgMgmt.AssignMsgPayLoad(DocumentIn, DocumentOut)".

Who do I resolve this? I realize I there must be missing some really simple concept I am missing here but the message does not give a reason why and I cannot find anything currently on the web.

Cheers,

H
Matt Milner

2004-04-15, 7:44 pm

you are trying to use the documentout message as a parameter to your method,
that's what it is complaining about since you are not out of the construct
shape yet. You might be able to get away with having a second construct
shape and documentout2. Then call your method passing in documentout and
gettting back documentout2. Keep in mind that messages should be immutable
in BTS so once you create a message, any changes should cause a new message
to be created.

matt


"H" <anonymous@discussions.microsoft.com> wrote in message
news:A2829101-E3A8-4638-BB5D-65756B1170A0@microsoft.com...
> I have created an Orchestration with two Schemas DocumentIn and

DocumentOut.
> I have then used a transformation shape and a Mapper to transform the

message DocumentIn to DocumentOut.
> I have then attempted to use a Classlibrary Class Method that takes in two

XML arguments (DocumentIn and DocumentOut (messages)). The method transfers
elements from DocumentIn and recreates/extends the DocumentOut with items
from DocumentIn that could not be mapped. This is then returned as a new
XmlDocument. The Class method is marked as [Serializable]. When I run the
Class Method isolated from BizTalk everything works fine, however when I
implement the Class Method in BizTalk I get "use of unconstructed message
'DocumentOut'" when trying to build the Orchestration. Error refers to the
Construct Message Shape with a MessageAssignment Shape with the code
"DocumentOut = MsgMgmt.AssignMsgPayLoad(DocumentIn, DocumentOut)".
>
> Who do I resolve this? I realize I there must be missing some really

simple concept I am missing here but the message does not give a reason why
and I cannot find anything currently on the web.
>
> Cheers,
>
> H



H

2004-04-16, 11:13 am

Thanks, my problem centered around the immutable nature of messages. The message could have been more meaningful especially as the Orchestration Designer shows everything is ok and only fails on build.

H
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com