Answer by Rob V. ·
Hey Eric,
There's not a way to directly manipulate the SOAP header in dT. However, if you are able to get the XML string either before or after the call (as an argument to a method, for example) you can use the normal Transformation Regex technique to pull out the value for that tag.
Rob
Hey Rob. Thank you for the response.
Are method arguments the best way to capture strings such as XML headers? What other techniques like this are viable?
Thank you,
Eric
Method arguments are one way. Method return values are another way. The "Servlet" sensor in Java (ASP.NET sensor in .NET) allows you to capture a variety of session state (HTTP params, session variables, request headers, etc). Some other sensors like messaging sensors allow you to capture the message contents (like JMS).
Keep in mind that we have a limit (you set it) as to how long the strings you capture can be. We'll truncate the return string at that point. So especially for free-form stuff like XML you need to be sure that the tag you want is in the first N characters of the string you're returning.
Rob
JANUARY 15, 3:00 PM GMT / 10:00 AM ET