Service Virtualization

  • 1.  Invoke API createService Error

    Posted Aug 29, 2016 09:36 AM
      |   view attached

    I'm trying out the Invoke API createService and I'm getting an error. Has anyone seen this before?

     

    Here are the specifics:

     

    Command:

    curl -X POST -u admin:??? -F file=@LOS.zip http://lisaserver:1505/api/Dcm/VSEs/VSE/actions/createService

     

    The LOS.zip file is attached. The RR pair files are the samples from the portal 'Create a Virtual Service' page.

     

    Response:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Error xmlns="http://www.ca.com/lisa/invoke/v2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ca.com/lisa/invoke/v2.0 Error.xsd" type="application/vnd.ca.lisaInvoke.error+xml">
    <Id>1011</Id>
    <Message>Failed to create service</Message>
    <AdditionalInformation>Cannot create a protocol handler instance for HTTP/S</AdditionalInformation>
    </Error>

     

    The registry log shows:

    INFO com.ca.dts.security.authentication.AbstractDevTestAuthenticationProvider - Authentication successful for user 'admin' with the 'DevTest Legacy Authentication Module' authentication provider.
    INFO com.itko.lisa.invoke.resource.VseResource - VSE Name=VSE.
    INFO com.itko.lisa.invoke.ParamterUtils - File URI=null

     

     

    Thanks for your help

    Attachment(s)

    zip
    LOS.zip   1 KB 1 version


  • 2.  Re: Invoke API createService Error
    Best Answer

    Posted Aug 29, 2016 08:16 PM

    I gave this a try on my end using the exact curl command you tried:

     

    curl -X POST -u admin:admin -F file=@LOS.zip http://localhost:1505/api/Dcm/VSEs/VSE/actions/createService

     

    And the service was deployed correctly.  This was with DevTest 9.1.  Which version are you on?

     

    The message indicates that the File URI came through as null.  Is the LOS.zip file in the same directory you're executing the curl command from?



  • 3.  Re: Invoke API createService Error

    Posted Aug 29, 2016 09:15 PM

    I'm on 9.0.0 currently.

     

    I also tried a server that was set up to test 9.5 and got a different error:

    INFO com.itko.lisa.invoke.resource.VseResource - VSE Name=VSE.
    INFO com.itko.lisa.invoke.ParamterUtils - File URI=null
    INFO root - No Stateless Match Could not match a stateless transaction
    INFO com.itko.util.XMLUtils - The XML Doc to be opened: /tmp/LISA6482784304640909613/serviceTest/lisa.project
    ERROR com.itko.lisa.vse.stateful.recorder.DefaultRecordingSession - Error adding transaction store file as associated resource in vsm
    java.nio.file.NoSuchFileException: /home/lisa/lisatmp_9.5.0/txnstore/1ae61aaa-2379-4c82-929c-f4b45bf9fb0b/vse_txns.vts

     

    I'll download 9.51 and test that.

     

    Thanks for checking.