Forum Discussion
omatzura
17 years agoSuper Contributor
Hi Bryan,
Since the xml you want to get the value from is contained in a CDATA section, this becomes a bit tricky. What you can do is the following:
1) Create a Property-Transfer Step between the two requests
2) Create a Properties Step with one property named "tempvalue" (or whatever)
3) In the Property-Transfer you will need to create two transfers:
- The first should have the first Requests' response as source and transfer the content of the out element to the tempvalue property (be sure to uncheck the "Transfer Text Content" option)
- The second should have this property as a source, together with the appropriate XPath for the filename, and the seconds Requests' request as target with the appropriate XPath for the actFileName element
The first transfer copies the XML as a string to the property, the second treats it as XML (which is now possible) and transfers the desired value to the following request.
Ok, hope this was understandable and that it works ok.. let me know!
regards
/Ole
eviware.com
Since the xml you want to get the value from is contained in a CDATA section, this becomes a bit tricky. What you can do is the following:
1) Create a Property-Transfer Step between the two requests
2) Create a Properties Step with one property named "tempvalue" (or whatever)
3) In the Property-Transfer you will need to create two transfers:
- The first should have the first Requests' response as source and transfer the content of the out element to the tempvalue property (be sure to uncheck the "Transfer Text Content" option)
- The second should have this property as a source, together with the appropriate XPath for the filename, and the seconds Requests' request as target with the appropriate XPath for the actFileName element
The first transfer copies the XML as a string to the property, the second treats it as XML (which is now possible) and transfers the desired value to the following request.
Ok, hope this was understandable and that it works ok.. let me know!
regards
/Ole
eviware.com
Related Content
- 9 years ago
- 9 years ago