I have an API that I need to write a HTTP synthetic monitor but to run the API I need to first get the access token from a soap request xml response. My Problem is how I can get the access token from an XML response. Can any one please share how I can capture data from xml response using the HTTP synthetic monitor script mode.
Solved! Go to Solution.
I don’t think Dynatrace will be able to make soap request but if you will have somehow XML response you should use post execution script.
using this method you will get whole string and you should be able to parse it at least using regex inside script.
Hi Sebatian and Hannah,
Thank you very much for your response. I was able to call the soap request using HTTP monitor and I also verified that the Access Token is in the response in xml format. I will do what you suggested to use regex.
Thanks again and I appreciate the help.