Hello team,
Any help is greatly appreciated.
I am using the following command to create REST virtual service on DevTest server 10.1
The RRPairs.ZIP contains the request response pairs and serviceProperties.xml. This ZIP file is in the same location from where I am executing CURL Command.
C:\curl-7.56.1-win64-mingw\curl-7.56.1-win64-mingw>curl -X POST -u admin:admin -F file=@RRPairs.zip
http://devtest01.CORPHOST.com:1505/api/Dcm/VSEs/VSE/actions/createService
The response I am getting is as follows:
<?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>Index: 0, Size: 0</AdditionalInformation></Error>
C:\curl-7.56.1-win64-mingw\curl-7.56.1-win64-mingw>
Best Regards
Sunil
Make sure the .zip file is located in the directory where you are currently running cUrl from.
Can you post the entire stack trace?
Tor trouble shoot this issue, please follow the below steps:
1) run listing of the VSE first, example:
curl --user admin:admin http://localhost:1505/api/Dcm/VSEs
MAke sure you have the right VSE name.
2) Then run the command to create your service. for example:
curl --user admin:admin -X POST -F file=@LOS.zip http://localhost:1505/api/Dcm/VSEs/VSE/actions/createService
LOS.zip must be in the directory where you are currently running CURL.
Thanks
Shiney.