Forum Discussion
Hi richie
Thank you very much for your reply and for your help. I will try to explain myself more clearly.
- My goal is to source specific tag values in my xml-file from a excel-sheet. For instance with this example request (without header, see below). As you can see i already tagged and generated the values from a DataBase (Excel). Now some of the values will be empty in the Excel Sheet. Now ReadyAPI correctly shows the empty elements like you described:
- <v13:FirstName>
<v13:PrimaryValue>${TestData_DataEntry#FirstName}</v13:PrimaryValue>
</v13:FirstName> - =
- <v13:FirstName/> <----- = empty
Now i need from SoapUIpro to delete these "nested tags" when a request is sended. I have selected "Remove Empty Content " as "true". But it only deletes partially of the tags. It only deletes the "PrimaryValue" and leaves FirstName. I need SoapUI to delete the whole tag and not only "PrimaryValue"
Thank you very much for your help. If you need further specification pls let me know
Hi,
If I understand it, you want SoapUI to automatically remove empty/redundant tags, but SoapUI isn't doing this as you need need.
This may confuse matters, and not fix the issue, but as a workaround, use data driven to 'inject' the whole tag into the request instead of just the values. That way, you have more control over what is inserted into the request, esp empty tags.
Chris
Related Content
Recent Discussions
- 2 days ago
- 2 days ago