Search

SOAP Fault Assertion

Soap Fault Assertion is used to check whether the last received response is a soap fault. The response XML will be a soap fault when any fault in request input.


For other commonly used assertions in soap, check Assertions in SOAP.




In this example, we have passed the input values as '?' (invalid input), and we got soap fault response.



Let's create SOAP Fault Assertion,


The Soap Fault assertion passed.

Not SOAP Fault Assertion:


This Assertion is used to check whether the last received response is Not a soap fault.


Let's add Not Soap Fault Assertion,


As the SOAP response is a Fault message, the Not SOAP Fault failed.

Now let's pass valid input values in request, and valid response is fetched. Now we could see, the SOAP Fault is failed and Not SOAP Fault is passed.


23 views0 comments

Recent Posts

See All

A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the minimum number of characters you need to delete to make s good. The f

The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, so the numeric value of a is 1, the numeric value of b is 2, the numeric value of c is 3, and so on.