Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mock SOAP web service without SoapUI

I have a web service that I want to mock in following way: I will have a list of given IDs, and a set of response items for them, and if user will send a request with ID from the list, proper response should be sent back. How to do it without tools like SoapUI (I don't want to install any additional software on the server that will be tested if possible). Thanks in advance for any help.

like image 689
Benzon Avatar asked Oct 28 '25 07:10

Benzon


1 Answers

SoapUI open source provides exactly what you want to achieve, without any need to install SoapUI on the server.

I consider this approach very efficient:

  1. Create your mock service inside SoapUI.

  2. Test the mock on your computer with SoapUI.

  3. Create a WAR with the mock service (or more services) - just click on the project and choose "Deploy As WAR"

  4. Deploy the WAR to the target server.

The resulting WAR is standalone and you do not need to deploy any other software.

I recommend this tutorial: https://www.soapui.org/soap-mocking/getting-started.html

Regards, Karel

like image 178
KarelHusa Avatar answered Oct 30 '25 15:10

KarelHusa