+1 abrsh01
Also, DevTest uses a technique we call Magic Strings.
Refer to this link for some guidance: Magic Strings - DevTest Solutions - 10.1 - CA Technologies Documentation
If the ID is an Element in the XML request (for example, <ID>10137658</ID> ), DevTest should be creating an argument when the SOAP or XML DPH executes -- unless you have overridden and removed the argument. Look at the VSI and validate if the ID argument is present in the request side arguments. If it is there, it can be marshalled into the response using magic string notation.
For example, if the ID were in the XML as (and subsequently seen in the argument list in the VSI):
<body>
<fieldA>
<ID>10137658</ID>
one could use {{=request_fieldA_ID;/*defaultValue*/}} in the Magic String notation.
Notes:
- The default minimum length of an XML argument value considered for Magic String is set to 3 digits. (see property: lisa.magic.string.length=3 in the lisa.properties file) If the ID is less than this, you can still use Magic Strings; however, the recorder will ignore the field when trying to automatically determine Magic Strings. This approach (ignoring short element values) prevents a lot of extra overhead and the creation of potentially faulty magic strings in responses.
- If the ID is described using an XML Attribute (i.e., <fieldA ID="10137658" >field a value</ID> ), you may need to use a DPH and XPath the ID (or via script extract the ID into a property) to use as a Magic String.