Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Message convoying problems (different messages need to be received one by one)
- This topic has 0 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
July 23, 2008 at 7:46 AM #20223
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}Normal
0
falsefalse
false
falseEN-US
X-NONE
X-NONEMicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:””;
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:”Calibri”,”sans-serif”;
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:”Times New Roman”;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}Hello,
I’m working with the Biztalk for about 6 month, so I’m still
quit a newbie. Since now I had simple projects, but now I have one which makes
me dream Biztalk solutions at night again J
I was hunting the proper solution for my problem for several last days but
seems to be I’ve stuck somewhere and now I almost give up about this. So I am
asking Biztalk community help this time (and hoping that at least for some of
you this problem will seem interesting or challenging).What I want to do can look easy and simple from the first
glance. The orchestration first of all receives a message from primary source
(Http request type of transportation which requires response. The response
should be created in the orchestration). Then from the information inside the
initial message the new message is constructed and sent to SecondParty (Http
post as well). Orchestration is waiting for response to the request (http response
has message ID, status which can be “accepted”
or “not accepted” and several other parameters). According to the status of the
response orchestration is intended to do the following actions:1) If status is “not accepted”, the negative final response
to primary source should be constructed.2) If status is “accepted”, additional actions should be
performed.Until this point everything is clear for me.
The mystery starts when I am trying to receive the second message
from the SecondParty (the Second Party sends another message to our system
after the first response and some actions in their side). According to Second
Party specifications this message is sent as HTTP request using GET method (the
response not needed). The received information is message id (which should be
the same as previously received) and status (this time status can be “sent” or “not
sent”). If the second response is not received in 5 minutes, the orchestration
should create negative response to primary source, as well as received 2nd
response with status “not sent”. If received second response with status “sent”,
then I can create positive response to primary source.I tried to look for the solution in the Internet, tried
using correlation, parallel receives, sequential convoy method, even tried to
call or start sub orchestration to receive the second response from the Second
Party. In all these ways I encountered errors and can’t build the project. I
tried to receive two messages one by one, with two activate receive shapes, but
seems to be Biztalk does not like this, suggestions in the Internet were to use
correlation between first and second response (technically I could do this
because there is field MessageID in both first and second response schemas). I
tried this, but then Biztalk wants me to use the same port type and this cannot
be applied because of the specifics of the project. So I also cannot use
un-typed messages in this case, even this was one of my ideas. The same is
when I try to call or start new
orchestration, I can’t use any receive shape that has Activate parameter set to
True. If this parameter is False, I get the same errors that receive shape has
to have at least one correlation initialized, and when I initializing
correlation, the problem with different receive ports starts to kill me again.
Later I created a new solution for testing purposes, but the
same things happening as in the real project (see the picture below; receiving
something, transforming, asking other source for information, receiving
response about the query, receiving more information, transforming received
information, storing). When Receive_Resp2
Activate set to False, I get the error “you
must specify at least one already-initialized correlation set for a
non-activation receive that is on a non-selfcorrelating port” (error pointing Receive_Resp2
receive shape). When I set initializing correlation on Receive_Resp1 and
following correlation on Receive_Resp2, then I get more errors: “a parallel
convoy may not initialize correlations used in a sequential convoy”, “in a
sequential convoy the ports must be identical” and “uninitialized correlation {CorrelationName}”.
As previously I tried to ad Listen shape but also unsuccessfully.
As far as I understand I need to combine parallel and concurrent
convoy types but it’s possible I’m not right. What would you guys suggest me to
do with this problem? What could be a solution to receive one message of one
type first, then do some actions, then receive the second message of the
different type from another receive port upon some conditions and then do some
other actions according to the information in both or only one message? Any brilliant
ideas? Maybe somebody had already encountered this problem and can share his
experience? I would be really thankful for any ideas.Kestas
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.