Create a service stub
Overview
You can use a WSDL (Web Service Description Language) specification file to generate a service stub that can simulate the behavior of the original service and uses the exact same interface.
Service stubs are stored in test projects. If the workspace does not contain a test project, the test creation wizard creates one, enabling you to change its name. To store a service stub in a specific project, verify that the project exists before you create the stub.
If you are using SSL authentication, ensure that you have any required key files in the workspace.
The wizard can import WSDL files from the workspace, the file system, a remote repository, or from a URL. Ensure that the WSDL files use the correct syntax for the test environment. Service stub generation might not work with some WSDL files.
Create a service stub
- In the workbench, click...
File | New | Other | Test | Test Assets | Service Test
...or click...
New Service Stub
![]()
![]()
- Select the WSDL of the service to simulate.
![]()
If necessary, you can import the WSDL from the file system, a URL, or a WSRR or UDDI repository.
![]()
- Click Next.
- Select a project location and a name for the new service stub.
![]()
Click Finish.
Results
The wizard generates a working service stub that reproduces the interface of the original service as defined in the WSDL specification. Each operation is reproduced with a default response. You can edit the service stub with the stub editor to change the default response or to create conditional responses.
Related:
Service stub overview Edit a service stub
Deploy service stubs
Add stub servers to a performance schedule
Record service stub activity in a log file
Error 404 - Not Found Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.