Hello to all. I have a problem in WireMock. I'm us...
# help
d
Hello to all. I have a problem in WireMock. I'm using WireMock to mock Soap web service. I have different json configuration files (1 file-1 operation) inside mappings folder. In order to distinguish stubs based on operation name I used headers matching for SoapAction header with equalTo match. This worked for some operations, but not for all. It seems WireMock choose wrong json file for some operations, or does not check matching for all available stub configurations inside mappings folder. Any help or tip?
r
WireMock will always choose the first stub it finds that matches the request. If you have multiple stubs that match a request, you can prioritise which one is picked by adding a
priority
field to the stub mapping. More info can be found here https://wiremock.org/docs/stubbing/#stub-priority