Hi,
I'm trying to import a workflow to Orchestrator through the REST API, but it always end up with an error 500 :
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal Server Error
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Date: Thu, 28 Feb 2013 16:54:57 GMT
Connection: close
Server: vCO Server
I proceed this way :
I prepare the file that will be send :
------------------------------5bf10fbcf09
Content-Disposition: form-data; name="listVm"; filename="listVm.workflow"
Content-Type: application/zip
Binary
------------------------------5bf10fbcf09--
and then make a POST request to my vCO server :
curl -ik -u "user:pass" -H "Accept:application/xml" -H "Content-type:multipart/form-data; boundary=------------------------------5bf10fbcf09" -H "Content-length:19442" https://IP:PORT/api/workflows/ -X POST -d @listVm.wf
Then it's going in pending state :
HTTP/1.1 100 Continue
and about 60s later it returns me an error 500
Thanks for your help !!