Hi,
I have a simple SOAP request in XML format below. The attributes extension and root are referencing from the DataSource.
<v3:providerOrganizationID>
<v3:value extension="${DataSource#UPI}" root="${DataSource#Root}" />
</v3:providerOrganizationID>
And I have a negative test cases where the Extension and Root may have an Empty value in the DataSource. Is there an option specified in Ready! API to remove the attribute when the extension and root attributes are set to Empty? So, the outcome would become
<v3:providerOrganizationID>
</v3:providerOrganizationID>
Thanks.
Solved! Go to Solution.
Yes, I would expect the container element (providerOrganizationID) would also be removed. Can I use Java instead of Groovy to remove the container element, attribute and tags?
Thanks.
Thank you richie and nmrao!
Hi @Sandro2020, were you able to complete your task using the advice from the Community? Or, mayhaps, you solved this in a different way?
@Sandro2020 : you can achieve this by writing a small groovy code, it can't get deleted by any built in feature.
You can refer above replies on how to write the code for deleting the node. 🙂
Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓
User | Count |
---|---|
4 | |
3 | |
2 | |
1 | |
1 |
Subject | Author | Latest Post |
---|---|---|