Share this page

# Create a Virtual Service

This task describes how to create a virtual service. For additional details on specific service types, see Virtual Service Types.

See the Service Virtualization video gallery for a clip on how to create a virtual service by learning a real service.

Note:

- This task is part of a higher-level task. For details, see End-to-end workflow.
- To learn more about virtual services, see Virtual services.

In this topic:

## Optional: Create a new project

When you select a task from the Get Started page, these tasks first create a new virtualization project and then a new virtual service. For user interface details, see Welcome page.

For details on how to manually create a new virtualization project, see Manage Virtualization Projects.

Back to top

## Open an existing project

Select one of the following:

- On the Start Page, under Recent Projects, select a project.
- From the main menu, select File > Open Project/Solution.

Note: Projects created in earlier versions of Service Virtualization are fully compatible with Service Virtualization 5.4.1. When you open a project created in a previous version of Service Virtualization, a pop up window displays, informing you that the project contains resources in an older format. Click Yes to confirm that you want to update your existing project.

For more details, see Project migration.

For more information on virtualization projects, see Virtualization Projects.

Back to top

## Create a virtual service

Do one of the following:

Create a virtual service

In an existing project, select one of the following to launch the new virtual service wizard:

- From the main menu, select File > New > Virtual Service.
- In the Virtualization Explorer, right-click a virtualization entity and select Add > Virtual Service.

For user interface details, see Create New Virtual Service Wizard.

Create multiple virtual services in one step

Note: Available for SOAP over HTTP(S) services only.

You can create multiple virtual services by specifying a list of .wsdl files, or by providing a .csv file containing the paths to .wsdl files.

1. In an open project, select one of the following:

   - From the main menu, select File > New > Multiple Virtual Services.
   - In the Virtualization Explorer, right-click a virtualization entity and select Add > Multiple Virtual Services.

2. In the Import Real Service Description dialog box, enter a list of paths to your .wsdl files, separated by semicolons.

   For example, `C:\Services\ShoppingCart.wsdl;C:\Services\MemberAccounts.wsdl;C:\Services\ClaimProcessing.wsdl`

   Alternatively, enter the path to a CSV file containing the paths to the .wsdl files.

3. Follow the on-screen instructions.

For user interface details, see Create Multiple Virtual Services Wizard.

Run service discovery

- For creating SOAP services: Discover all the services used by an application. For details, see Model Composite Applications.
- For creating REST services: Run HTTP Service Discovery to record communication passing through the HTTP(S) Proxy agent, and then create new REST virtual services based on the discovered services. For details, see HTTP Service Discovery.

Back to top

## Optional: Create a service template

1. To save a service as a template: In the Virtualization Explorer, right-click the service and select Save as Template.
2. To create a new service from a template: From the main menu, select File > New > Virtual Service from Template.

Back to top

See also:

- Learning a REST service tutorial
- Interactive REST authoring tutorial

https://admhelp.microfocus.com Service Virtualization 8942
Tips to improve your search results... Service Virtualization Help Center SV Help 5.4-5.4.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: