06-26-04 03:51 PM
The problem seems like you are trying to do a test in the loop for the
restult of a message that hasn't been constructed yet. Unless your
orchestration is doing more than your diagram below indicates, the actual
order of steps would be:
> Orc A:
> Recv Req (Msg A)
> |
> |
> V
> Loop (while MsgB.result==false) -------
> | |
> | |
> Call Orchestration (Orc B)<----------------
> |
> |
> V
> Constrcut Msg( Transform Msg B to Msg C)
> |
> |
> V
> Send Msg C
Above the order of the Loop and Call have been switched. So the while loop
will try to check the property of an unconstructed message since the call to
the sub-orchestration hasn't been called yet for the first iteration. So
what you can do is just add a call to the sub-orchestration before the loop
to initialize the message.
> Orc A:
> Recv Req (Msg A)
> |
> |
> V
> Call Orchestration (Orc B)
> |
> |
> V
> Loop (while MsgB.result==false) -------
> | |
> | |
> Call Orchestration (Orc B)<----------------
> |
> |
> V
> Constrcut Msg( Transform Msg B to Msg C)
> |
> |
> V
> Send Msg C
-Kevin
--
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
"Narasimha" <Narasimha@discussions.microsoft.com> wrote in message
news:AD18F0F1-6132-46F5-A74C-8CFFED6B3D2A@microsoft.com...
> Hi All,
>
> I am experiencing some problems with the loop shape.
> Here is what i am tryign to acheive:
>
> Now i have so much working:
>
> (Orc= orchestration)
>
> Orc A:
> Recv Req (Msg A) --- Call Orchestration (Orc B) --- Constrcut Msg(
> Transform Msg B to Msg C)
> --- Send Msg C
>
> Orc B:
> [---Correlated Send and Recv--]
> Send Msg A --- Recv -- Msg B
>
> [Msg A is input message parameter for Orc B]
> [Msg B is output message parameter for Orc B]
>
> Now this biztalk proj compiles fine,
>
> Now here comes the problem, Now if i put a loop around the orchestration
> call
> shape in Orc A,
> that is:
>
> Orc A:
> Recv Req (Msg A)
> |
> |
> V
> Call Orchestration (Orc B)<----------------
> | |
> | |
> Loop (while MsgB.result==false) -------
> |
> |
> V
> Constrcut Msg( Transform Msg B to Msg C)
> |
> |
> V
> Send Msg C
>
> Now when i compile this project, the error i get is:
> * use of unconstructed message 'MsgB' (at expression for the Loop shape)
> * use of unconstructed message 'MsgB' (at the transform shape within the
> Construct Msg shape)
>
> What more shd i do to get it working??
> Why does this occur??
>
> I tried a way suggested, to constrcut the message C using message
> assignment and using a variable of System.Xml.XmlDocument...but it is
> leading to other problems like a error at runtime saying FormatExcpetion.
>
> Why is this problem with loop, am i doing anything wrong or is it a bug
> with BizTalk 2004?
>
> Plz Help me out! :|
>
> i am pretty desperate to get it working so you can reply
> me at ngmujumdar@hotmail.com
>
> Thanks in advance
>
>
[ Post a follow-up to this message ]
|