Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Acks and Nacks over Request-Response port
- This topic has 3 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
September 28, 2006 at 2:51 PM #15891
Our Biztalk installation is on a remote box and hence the protocol is Http. Hence to send back Acks or Nacks to the message sending party, we have configured 2-way Request-Response ports (as the senders URI may vary).
In this scenario I need to send Acks or Nacks if the message was bad /transmission did not succeed/wrong message type/bad message part/etc.
I have read Kevin Smith's blog entry on Acks or Nacks for one-way ports. Also tried out the sample from Stephen w Thomas.
However these both work with one-way ports and file adapters where the send URI is known. How can I effect this for a 2-way Request-Response port?
Supplementary questions – I have Orchestrations that subscribe to a few accepted message types. How can I subscribe to messages which turn out not to belong to any of these but flow through the same receive port?
-
September 30, 2006 at 11:08 PM #15912
In the past, I returned the correlation token of a started Orchestration to the caller and then had the called send another request to another service that checked the status of the previous request (i.e. had the Orchestration do validation).
If I remember correctly, I tried to handle something like this using an Orchestration with a Receive / Send Shape. It was about 3 years ago and my very first 2004 project.
I think I got it to work by returning custom text in the Http response message. I might have simply used a 2 way Http port with an Orchestration.
It was a long time ago so I don’t remember all the details.
Hope this helps.
-
October 2, 2006 at 1:42 PM #15919
OK, lets simplify this – let's forget the auto-generated Acks and Nacks. All I really need is a conditional message processing through to a Request-Response port
Inside an Orchestration I first pick up and examine a message to determine whether its valid or not. If invalid I want to send a BAD/Failure message and if the message is good, I want to process it and send a "Success" Acknowledgement.
How is this possible? There are 2 sides to the IF condition in the orchestration and only one socket to receive the Send shape arrow in the logical port. I must have 2 Send shapes – one for good and one for bad messages from the 2 branches of the IF condition. But I can attach only one Send shape to the receive socket of the Request-Response port.
-
October 2, 2006 at 4:41 PM #15921
This can be done via the Fault messages/operation of the Request-Response port.
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.