04-16-04 12:44 AM
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
[ Post a follow-up to this message ]
|