Not able to deploy/redeploy/start/stop the services in VSE using swagger REST api

book

Article ID: 38193

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

Issue: 

        We are using swagger to start /stop/deploy/redeploy VS. WE tried rest api for VSE to get specific info and operation like start stop , at present start / stop is having issue it is giving below error

    <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>1008</Id>

<Message>Method Not Allowed</Message>

<AdditionalInformation>

javax.ws.rs.WebApplicationException

 at com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66)

 at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

 at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

 at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

 at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)

 at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)

 at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)

 at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)

Cause: 

     When executing these REST operations from browser, browser sets the method as GET and submit the request. But these operations (Deploy/Start/Stop/Redeploy) expects method name as POST. Due to this REST service has not invoked properly and giving an error response.

Resolution:

   Install Rest client plug-in in your browser,like Postman REST client plugin for Chrome browser and pass mar file to it during deployMar and select method type as "POST" and submit the request to deploy the service to VSE.

     Postman REST client plugin can be downloaded from https://chrome.google.com/webstore/search/postman%20rest%20client?hl=en

 

Additional Information:

    Please go through below link for more details:

    https://communities.ca.com/message/114022292#114022292

Environment

Release: LSASVR99000-8.1-LISA-Server
Component: