Creating a service stub
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.
Before you begin
Service stubs are stored in test projects. If your 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 Secure Sockets Layer (SSL) authentication, ensure that you have any required key files in your 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 Web Services Description Language (WSDL) files.
Procedure
- In the workbench, click New Service Stub toolbar button. or click the
- Select the WSDL of the service that you want 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.