Record on both connections
I'm interested in recording a traffic file that contains responses from both the primary and secondary connections in my message proxy Connection. My approach is to send back a fake bad HTTP response code with the primary response in order to invoke the secondary connection so I can capture that response.
I have my virtual asset configured in the primary connection and I have a live service endpoint configured in the secondary connection. My objective is to turn on recording and capture the response from the virtual asset in the traffic file, pass back a custom HTTP response code > 400 (to cause the secondary connection to be invoked) and then include the response from the secondary connection in the traffic file. My goal is to capture the request and both virtual and live responses so that I can create a process to validate my virtual asset.
I've set this up but it doesn't seem to be working. Is this possible and maybe my implementation is just not correct? I have he Recording Session set to "Append new session data". The behavior I see is that the traffic file contains only the request and the response from the secondary connection.