Service Virtualization

 View Only
  • 1.  Lisa Invoke Test API's for creating SV

    Posted Jul 08, 2020 02:36 PM
    Hi community,

    I am trying to run the API's, in this case, Version 3, for the POST method with RR pair, without success.
    Any thoughts ?

    Without the Header Content-Type: multipart/form-data;boundary="---=_Part_3_20890266.1594219121597":

    With the Header Content-Type:





  • 2.  RE: Lisa Invoke Test API's for creating SV
    Best Answer

    Posted Jul 09, 2020 03:13 AM
    Edited by Joao Ramos Jul 09, 2020 09:05 AM
    Hi Ramos,

    In SV API v3, you can create virtual service using R-R pair with below configuration:

    URL: http://host:port/lisa-virtualize-invoke/api/v3/vses/VSEName/services

    Header:

    Body:
    where R-R folder contains the messages and config file contains the configuration to be used, sample for the same is below

    ------------------------------------test.config----------------
    {
    "virtualService": {
    "version": "2",
    "name": "Test_VJ",
    "description": "Invoke API V2",
    "status": ""
    },
    "transportProtocol": {
    "typeId": "HTTP",
    "basePath": "/",
    "useGateway": true,
    "hostHeaderPassThrough": false
    },
    "dataProtocol": {
    "forRequest": true,
    "typeId": "SOAPDPH"
    }
    }

    ---------------------------------------------------------------------------
    Authentication: username & password for devtest

    With above data, you will be able to create virtual services. 

    If you want to create service using REST INVOKE API, then you have to use below url:
    http://host:port/api/Dcm/VSEs/NameofVSE/actions/createService

    Body:

    and your zip folder structure should be:

    Thanks



    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 3.  RE: Lisa Invoke Test API's for creating SV

    Posted Jul 09, 2020 09:09 AM
    Thank you Jain,

    I did that on Postman and it worked. I don't know why, it did not on SoapUI .

    Regards,