Quick Start: Creating a SOAP Service
The fastest way to create a SOAP mock service is to import its WSDL.
MockMotor has a fairy basic WSDL import functionality. It creates a single response for each operation from the provided WSDL, and these responses are configured to return a SOAP Fault. However, all that remains to do after an import is to provide your own payload and change the HTTP code to 200.
Let’s import one of the Amazon WSDLs.
Navigate to Environment Services Page
On the environment page, click Services tab.
On the Services page, click on “Add Service from WSDL” button:
In the appeared dialog, click on Browse and select WSDL file to import.
If WSDL has associated XSD files, ignore them. MockMotor only needs the *.wsdl file itself.
Click on Import.
MockMotor doesn't support loading WSDL from an URL. Download WSDL to a local file before importing.
Review Created Service
Browser will redirect you to the new service description page. MockMotor populates the service name and URL from the WSDL.
For AWS service the values look pretty good:
Note that the full URL of the service is shown under its name.
Review Created Responses
Click on the Responses tab. You’ll see that MockMotor created a response for each WSDL operation.
The responses are matched by SOAP Action, and configured to respond with SOAP Fault and no delay:
If you need to modify a response, click on it and update any property you need.
For instance, update a response for CartClear operation, setting its payload, HTTP status and delay:
Then save it:
Send Traffic to it
And now you can use the new responses! Point your application to the service URL and you should see them work.