Create virtual services in SVM

This topic describes how to create virtual services in the Service Virtualization Management interface.

Overview

The SV Management web interface provides an option for creating data rules that specify the business behavior of a virtual service. SV Management creates virtual services in the background by:

  • Learning enough data to cover a representative set of scenarios.

  • Importing sample request or response pairs. Service Virtualization automatically determines which fields should be copied from the request to the response and which should be ignored during request matching, so that the virtual service works for any request ID fields, and not just the recorded ones.

Back to top

Create a virtual service

You can create services in SV Management using a wizard.

To create a virtual service:

  1. In the Services tab, on the bottom toolbar, click Add Service and select Create a New Service.

  2. In the Import Real Service Description page, configure the following:

    Server

    Click the drop-down and select the SV Server. While you can manage multiple SV servers from a single SV Management application; typically only a single server listed.

    Service Description

    (Optional) For protocols such as SOAP, you can specify the WSDL URL or some other service description URL, from which SVM can download a supported Service Description file. You can also specify credentials to access this resource.

    To upload the Service Description file from a file, click Select File and navigate to the file you want to use.

    Note: If you don't have any resources to help Service Virtualization learn message structures in advance, leave the service descriptions empty. Service Virtualization will later learn message structures based on real traffic or imported sample messages.

    Click Next.

  3. In the Choose Service Protocol page, select a protocol for your new virtual service from the list . You can enter text in the Filter box to filter the available protocols.

    Click Next.

  4. In the Service Properties page, define protocol-specific properties for your virtual service.

    For details, see Service Properties Page.

    Click Next.

  5. In the Summary of Virtualization page, configure the following settings:

    Service Name Enter a name for the virtual service.
    Project

    Select the project name to which the virtual service will belong. You can select an existing project name on the server, or create a new virtualization project for the service.

    Show Advanced Properties

    Enables you to specify additional properties when required. The properties available on this page depend on the protocol you select for the new service on the Choose Service Protocol page. For details, see Service Properties Page.

    Click Virtualize to create the new service. The new service that is added to the service list is initially empty because it doesn't yet contain any sample data.

  6. You can either:

    • Switch to Learning (click in the runtime toolbar) and learn some messages which will come to the standard Learned Data Rule in the Data Model. For details, see Data modeling.

    • Import sample requests and corresponding responses.

      1. In the runtime toolbar, click and select Import Message.

      2. The Import Request/Response Message dialog box opens, enabling you to import messages from a file or by manually entering text.

        Request/Response Message Enter request and response message content. You can import request messages, response messages, or both.
        From File

        Click to select a file from the file system. Each file may contain only the request or response part of a single message.

      3. Click OK to import the messages. The imported messages go to a Dynamic Rule. Imported messages are analyzed and functions are automatically inferred to provide dynamic behavior.

        Tip: We recommend that you:

        • Review the inferred behavior in SV Designer to make sure it is correct before you rely on it.

        • Import additional sample requests and responses so that Service Virtualization has more data on which to run the analysis.

Back to top