Forum Discussion

avitaurus19's avatar
avitaurus19
Occasional Contributor
11 years ago

2 statuses in response

Hi all,

I am very new to SOAP-UI. Response is returning 2 statuses. I want the test step to consider <ns3:Status> and consider it a failure. However it is considering <ns2:Status> and showing it as a success. Could you please let me know as to how i can make SOAP-UI test step consider <ns3:Status>?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:processRequestResponse xmlns:ns2="http://service/eif/ekaplus/com/EIFMessage">
<ns2:EIFResponse>
<ns2:Status>PROCESSED</ns2:Status> <ns2:ServiceId>ReceiveMaterial</ns2:ServiceId>
<ns2:Payload>
<ns3:GMRCreationResponse xmlns:ns3="http://www.ekaplus.com/schema/GMRCreationResponse_Migration" xmlns:ns2="http://www.ekaplus.com/schema/ReceiveMaterial" xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<ns3:Status>ERROR</ns3:Status>
<ns3:ErrorMessage>Business partner 'BOLIDEN' is not available in Eka System</ns3:ErrorMessage>
</ns3:GMRCreationResponse>
</ns2:Payload>
</ns2:EIFResponse>
</ns2:processRequestResponse>
</soap:Body>
</soap:Envelope>

12 Replies