SOAP attachments in WireMock
问题 I'm using WireMock to mock a SOAP service. It works great, but one of the services contains an attachment. Is there any way to mock it with WireMock? Thanks 回答1: Yes it's possible. First, you can use SOAP ui to mock the response you are expecting with the attachment. [On the soap resource, right click: generate SOAP mock service] On the mock created, in the response you should see a dummy body corresponding to the wsld. There you can click on attachment and add a file: You run this mock and