Forum Discussion

BalaKishore's avatar
BalaKishore
New Contributor
15 years ago

modify xml element name in soap reponse in SOAP UI

Hi,

I am using soapUI for automation. Basically I want to modify soap xml node element name in SOAP UI reponse.

I have a test scenario where a First teststep response would become request to second teststep. This I achieved through property transfer.

Second scenario is to modify elements in teststep response.
If first teststep reponse is of type reponse 1, I what to change it to second modified reponse type.
I tried to use groovy script but failed to achieve the expected output. Please let me know, how to solve this issue.


reponse 1
<soapenv:Envelope xmlns:cus="http://customerservice">
<soapenv:Header/>
<soapenv:Body>
<cus:getSecureCustomerById>
<custId>123</custId>
<accessName>aa</accessName>
</cus:getSecureCustomerById></soapenv:Body>
</soapenv:Envelope>


modified response

<soapenv:Envelope xmlns:cus="http://customerservice">
<soapenv:Header/>
<soapenv:Body>
<cus:getSecureCustomerById>
<custId>123</custId>
<accessModify>aa</accessModify>
</cus:getSecureCustomerById></soapenv:Body>
</soapenv:Envelope>


Thanks in Advance
BalaKishore G
No RepliesBe the first to reply