I have BizTalk Orchestration hosted Schema as a Service named as "MainService"
It has RequestResponcePort which is Direct bound with Multiple Receive Shapes with Different Filter like one Receive Shape has filter as Bts.Operation='ABC'. Its workflow has below steps
Now I have two other services which calls above service,
Service1-
Service2-
I know in this scenario Service1 & Service2 will get their responses correctly but I want to understand how the subscription will work here based on what the subscription will be decided as both the services Service1 and Service2 are expecting same messageType as response from "MainService". e.g. subscription based on interchangeId or correlationToken etc
If you could advise me where can I find the exact subscriptions criteria for them in DB or in AdminConsole (I try to check but I could not understand)
I have created same scenario to understand, it worked however I could not understand based on what subscription criteria it correctly returns responses to corresponding services
You can query the subscriptions from the BizTalk Admin console. From New Query, select Subscriptions, on the second line select Service Name, and in the drop down to the right select the service name you want and click Run.
Then you will see results like below, and you can expand it to see the exact subscription details.
They will either be an Activation Subscription i.e. those that will trigger of the Orchestration, or Instance Subscription, on where an Orchestration is waiting for a (auto)correlated response. Quite often these will look like
http://schemas.microsoft.com/BizTalk/2003/system-properties.CorrelationToken == {GUID}