AnsweredAssumed Answered

API REST: PUT /VSEs/{serviceName}/{virtualServiceName}

Question asked by Relbou on Mar 11, 2016
Latest reply on Mar 15, 2016 by sdetweil2

Hello,

I try to modify the model behavior of a VS with the REST API.

I don't understand what's the problem with the xml:

<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>

  <VirtualService  xmlns=\"http://www.ca.com/lisa/invoke/v2.0\" name=\"${testname}\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www.ca.com/lisa/invoke/v2.0 VirtualService.xsd\" href=\"http:/xxxxxxxxxxx:1505/api/Dcm/VSEs/${vse}/${testname}\" type=\"application/vnd.ca.lisaInvoke.virtualService+xml\">

            <ExecutionMode>Transaction Tracking</ExecutionMode>

</VirtualService>

 

Groovy code:

 

Thank you for your Help.

 

Best regards.

Outcomes