Using WireMock with SOAP Web Services in Java
<p>I am totally new to <a href="http://wiremock.org/index.html" rel="noreferrer">WireMock</a>.</p>

<p>Until now, I have been using mock responses using SOAPUI. My use case is simple:</p>

<p>Just firing SOAP XML requests to different endpoints (<a href="http://localhost:9001/endpoint1" rel="noreferrer">http://localhost:9001/endpoint1</a>) and getting canned XML response back. But MockWrire has to be deployed as a standalone service onto a dedicated server which will act a central location from where mock responses will be served.</p>

<p>Just wanted some starting suggestions. As I can see WireMock is more suitable towards REST web services. So my doubts are:</p>

<p>1) Do I need to deploy it to a java web server or container to act as always running standalone service. I read that you can just spin off by using</p>

<pre><code>java -jar mockwire.jar --port [port_number]
</code></pre>

<p>2) Do I need to use MockWire APIs? Do I need to make classes for my use case? In my case, requests will be triggered via JUnit test cases for mocking.</p>

<p>3) How do I achieve simple URL pattern matching? As stated above, I just need simple mocking i.e get response when request is made to <a href="http://localhost:9001/endpoint1" rel="noreferrer">http://localhost:9001/endpoint1</a></p>

<p>4) Is there a better/easier framework for my usecase? I read about Mockable but it has restrictions for 3 team members and demo domain in free tier.</p>