Wiremock Default Response

432 views
Skip to first unread message

AndrewHLK

unread,
Jul 23, 2015, 9:20:25 PM7/23/15
to wiremock-user
Hi,

I have defined the request and response in json. So, any request that matches the header and body return the defined response.
Can wiremock support a default response if the matching is not true? The default response can be a Soap Fault or something as long as it is not 404.

Thanks in advanced.

Andrew

Tom Akehurst

unread,
Jul 24, 2015, 6:47:45 AM7/24/15
to wiremock-user, andre...@gmail.com, andre...@gmail.com
Yes, you can effectively achieve this by creating a stub with priority(10) and urlMatching(".*"). 

The low priority means that WireMock will try everything else first.
Reply all
Reply to author
Forward
0 new messages