Deploying service stubs
You deploy and run service stubs on a stub server, which is a small application server dedicated to running service stubs. The client application, or test, addresses the stub server instead of the actual application of the original service.
Before you begin
The local stub server runs in the workbench on the local computer. Service stubs can be accessed locally. The local stub server is automatically stopped when you close the workbench.
To use a service stub instead of the original service, you must be able to change the endpoint of the client application or service test to replace the URL of the original application with the URL of the stub server.
Procedure
- In the stub editor, click the Deploy button.
Alternatively, you can right-click the stub in the test navigator and selectThis opens the Stub Monitor view.
- In the Stub Monitor view, click Run. If you make any changes to the service stub, the stub is redeployed to the stub server after saving.
- To add more service stubs to the stub server, click Add and select a service stub from the workspace.
- Copy the URL of the service stub from the Stub
Monitor view and paste it into the configuration of the
client application.You can also directly access the WSDL specification of the service stub, which is a copy of the original WSDL with replaced URL endpoints.