I have created a virtual service with one of the API forwarding requests to the real system. I need to capture the response field coming from the real system.
sv.Response object doesn't capture the field from the real response.
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
I have created a virtual service with one of the API forwarding requests to the real system. I need to capture the response field coming from the real system.
sv.Response object doesn't capture the field from the real response.
This is not possible. Once simulation determines that the request should be forwarded via hybrid simulation, you have no control over that process in simulator.
If you need to change the response from the real service your only option is to use Protocol Hook.