AnsweredAssumed Answered

Removing xml node from response

Question asked by zifirr on Jan 24, 2017
Latest reply on Jan 24, 2017 by Seenu_Mathew

Good Day,

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ser-root:abc xmlns:ser-root="http://***/abcTest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Untitled>
<val1>2</val1>
<val2>1</val2>
<val3>84</val3>
</Untitled>
</ser-root:abc>
</soapenv:Body>
</soapenv:Envelope>

 

I have this xml response from a service.

I would like to remove val1 node from this document. 

 

I am trying to complete the following steps.

1) route to server and get response

2) reponse mutch match xpath -> /soapenv:Envelope/soapenv:Body/ser-abc/Untitled/val1

3)  set the context variable    and remove xml elements 

I think I am having problems with step3.

 

How do I use the variable prefix in step 2 and context variable in step 3?

 

Any help with the assertions would be appreciated.

Also is there any documentation about handling assertions with examples?

 

Warm Regards.

Outcomes