<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Import a Workflow with Orchestrator Rest API in VMware Aria Automation Orchestrator Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868314#M5386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to import a workflow to Orchestrator through the REST API, but it always end up with an error 500 : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;HTTP/1.1 100 Continue&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;HTTP/1.1 500 Internal Server Error&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Content-Type: text/html;charset=utf-8&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Transfer-Encoding: chunked&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Date: Thu, 28 Feb 2013 16:54:57 GMT&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Connection: close&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Server: vCO Server&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I proceed this way : &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I prepare the file that will be send :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------5bf10fbcf09&lt;/P&gt;&lt;P&gt;Content-Disposition: form-data; name="listVm"; filename="listVm.workflow"&lt;/P&gt;&lt;P&gt;Content-Type: application/zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------5bf10fbcf09--&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;and then make a POST request to my vCO server : &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl -ik -u "user:pass" -H "Accept:application/xml" -H "Content-type:multipart/form-data; boundary=------------------------------5bf10fbcf09" -H "Content-length:19442" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://IP:PORT/api/workflows/"&gt;https://IP:PORT/api/workflows/&lt;/A&gt;&lt;SPAN&gt; -X POST -d @listVm.wf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Then it's going in pending state :&lt;/DIV&gt;&lt;DIV&gt;HTTP/1.1 100 Continue&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;and about 60s later it returns me an error 500&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks for your help !!&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 17:05:56 GMT</pubDate>
    <dc:creator>clabman</dc:creator>
    <dc:date>2013-02-28T17:05:56Z</dc:date>
    <item>
      <title>Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868314#M5386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to import a workflow to Orchestrator through the REST API, but it always end up with an error 500 : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;HTTP/1.1 100 Continue&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;HTTP/1.1 500 Internal Server Error&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Content-Type: text/html;charset=utf-8&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Transfer-Encoding: chunked&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Date: Thu, 28 Feb 2013 16:54:57 GMT&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Connection: close&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Server: vCO Server&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I proceed this way : &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I prepare the file that will be send :&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------5bf10fbcf09&lt;/P&gt;&lt;P&gt;Content-Disposition: form-data; name="listVm"; filename="listVm.workflow"&lt;/P&gt;&lt;P&gt;Content-Type: application/zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Binary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------5bf10fbcf09--&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;and then make a POST request to my vCO server : &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;curl -ik -u "user:pass" -H "Accept:application/xml" -H "Content-type:multipart/form-data; boundary=------------------------------5bf10fbcf09" -H "Content-length:19442" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://IP:PORT/api/workflows/"&gt;https://IP:PORT/api/workflows/&lt;/A&gt;&lt;SPAN&gt; -X POST -d @listVm.wf&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Then it's going in pending state :&lt;/DIV&gt;&lt;DIV&gt;HTTP/1.1 100 Continue&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;and about 60s later it returns me an error 500&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks for your help !!&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:05:56 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868314#M5386</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-02-28T17:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868315#M5387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your REST end point&amp;nbsp; should be:&lt;/P&gt;&lt;P&gt; &lt;A _jive_internal="true" href="https://communities.vmware.com/ip:PORT/api/workflows"&gt;https://IP:PORT/ap&lt;/A&gt;i/content/workflows/&amp;lt;workflowcategory_path&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;workflowcategory_path&amp;gt; is teh path to the category where you want to import the workflow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, try it this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 07:53:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868315#M5387</guid>
      <dc:creator>ivand</dc:creator>
      <dc:date>2013-03-01T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868316#M5388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just tried your advice : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.vmware.com/ip:PORT/api/workflows"&gt;https://IP:PORT/ap&lt;/A&gt;i/content/workflows/Library/Orchestrator/Workflows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still the same error.... It seems that vCO can't read my binary... "error 500, read timeout"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 08:41:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868316#M5388</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-01T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868317#M5389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you attached vCO server log? It is located in &amp;lt;vco_install_folder&amp;gt;/app-server/server/vmo/logs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to see what error is thrown&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 08:44:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868317#M5389</guid>
      <dc:creator>ivand</dc:creator>
      <dc:date>2013-03-01T08:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868318#M5390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes for sur, here is the server.log with the error thrown by the server when I tried to import a workflow !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 08:59:10 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868318#M5390</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-01T08:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868319#M5391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I made a mistake &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should post to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://vco:port/"&gt;https://vco:port/&lt;/A&gt;&lt;A class="active_link" href="https://10.23.33.55:8281/api/content/workflows/%7BcategoryId%7D"&gt;content/workflows/{categoryId}&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where categoryId is the id of the category where you want to import the workflow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Look here in REST API docs: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://vco:port/api/docs/resource_Content%20Service.html#.content.workflows.-categoryId-"&gt;https://vco:port/api/docs/resource_Content%20Service.html#.content.workflows.-categoryId-&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This category id can be get using GET to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://vco:port/"&gt;https://vco:port/&lt;/A&gt;&lt;SPAN&gt;api/categories and look for target category ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Look here in REST API docs: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.23.33.55:8281/api/docs/resource_Category%20Service.html#.categories"&gt;https://10.23.33.55:8281/api/docs/resource_Category%20Service.html#.categories&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ivan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 10:21:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868319#M5391</guid>
      <dc:creator>ivand</dc:creator>
      <dc:date>2013-03-01T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868320#M5392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick answer &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same problem with the category.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But on documentations I've seen that you can Post this kind of request to this url : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://IP:PORT/api/workflows"&gt;https://IP:PORT/api/workflows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://IP:PORT/api/docs/resource_Workflow%20Service.html#.workflows"&gt;https://IP:PORT/api/docs/resource_Workflow%20Service.html#.workflows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it should work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in logs, the read timeout error makes me think to read problem of my binary...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 10:37:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868320#M5392</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-01T10:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868321#M5393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to verify....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The request must be sent to port 8281 or 8244 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:25:40 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868321#M5393</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-05T14:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868322#M5394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The request should be sent to the SSL port, the default for this is 8281.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:38:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868322#M5394</guid>
      <dc:creator>Burke-</dc:creator>
      <dc:date>2013-03-05T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868323#M5395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so, I'm right on this point : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -i -S -k --fail -v -u "admin:pass" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://IP:8281/api/workflows"&gt;https://IP:8281/api/workflows&lt;/A&gt;&lt;SPAN&gt; -H "Content-length:19098" -F "file=@listVm.workflow"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it still returns : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; POST /api/workflows HTTP/1.1&lt;/P&gt;&lt;P&gt;&amp;gt; Authorization: Basic Ywefklnfjkonlfe=&lt;/P&gt;&lt;P&gt;&amp;gt; User-Agent: curl/7.27.0&lt;/P&gt;&lt;P&gt;&amp;gt; Host: IP:8281&lt;/P&gt;&lt;P&gt;&amp;gt; Accept: */*&lt;/P&gt;&lt;P&gt;&amp;gt; Content-length:19098&lt;/P&gt;&lt;P&gt;&amp;gt; Expect: 100-continue&lt;/P&gt;&lt;P&gt;&amp;gt; Content-Type: multipart/form-data; boundary=----------------------------0d35baebabcc&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* HTTP 1.1 or later with persistent connection, pipelining supported&lt;/P&gt;&lt;P&gt;&amp;lt; HTTP/1.1 100 Continue&lt;/P&gt;&lt;P&gt;HTTP/1.1 100 Continue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* additional stuff not fine transfer.c:1037: 0 0&lt;/P&gt;&lt;P&gt;* The requested URL returned error: 500 Internal Server Error&lt;/P&gt;&lt;P&gt;* Closing connection #0&lt;/P&gt;&lt;P&gt;curl: (22) The requested URL returned error: 500 Internal Server Error&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;* SSL read: error:00000000:lib(0):func(0):reason(0), errno 104&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:48:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868323#M5395</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-05T14:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868324#M5396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a code that imports a workflow under a category:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VcoSessionFactory sessionFactory = new DefaultVcoSessionFactory(new URI("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://vcohost:8281/api"&gt;https://vcohost:8281/api&lt;/A&gt;&lt;SPAN&gt;")) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected SSLContext newSSLContext() throws KeyManagementException, NoSuchAlgorithmException {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return newUnsecureSSLContext();&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected HostnameVerifier newHostnameVerifier() {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return newUnsecureHostnameVerifier();&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This is for basic authentication in when vCO is in LDAP mode&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Authentication authentication = new UsernamePasswordAuthentication("userName", "password");&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This is for SSO authentication&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Authentication authentication = null;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // try {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // SsoAuthenticator authenticator =&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // new SsoAuthenticator(new&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // URI("&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://communities.vmware.com/ssoHost:ssoPort/ims/STSService?wsdl"&gt;https://ssoHost:ssoPort/ims/STSService?wsdl&lt;/A&gt;&lt;SPAN&gt;"), sessionFactory,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 1800l);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // authentication =&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // authenticator.createSsoAuthentication("userName",&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // "password");&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // } catch (IOException e) {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // throw new RuntimeException("unable to authenticate to SSO", e);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // } catch (URISyntaxException e) {&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // // Unlikely to happen&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // }&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VcoSession session = sessionFactory.newSession(authentication);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkflowService wfService = new WorkflowService(session);&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wfService.importWorkflowInCategory("categoryId", new File(&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "path_to_some_workflow.workflow"));&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I this code I am using only the Rest client that is provided with vCO:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="https://10.23.36.176:8281/api/docs/downloads.html"&gt;https://vcohost:8281/api/docs/downloads.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 11:17:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868324#M5396</guid>
      <dc:creator>ivand</dc:creator>
      <dc:date>2013-03-06T11:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868325#M5397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for these tips !! It works....:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you heard about some tips for vCO Rest API &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; Do not hesitate to up this topic !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:05:33 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868325#M5397</guid>
      <dc:creator>clabman</dc:creator>
      <dc:date>2013-03-06T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868326#M5398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi clabman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I successfully uploaded a workflow using the following content directly using HTTP POST request :&lt;/P&gt;&lt;P&gt;--e19b31b9-273b-4b34-b36b-5c59e1dcf326&lt;BR /&gt;Content-Disposition: form-data; name="file"; filename="mywf.workflow"&lt;BR /&gt;Content-Type: application/zip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;binary data&amp;gt;&lt;/P&gt;&lt;P&gt;--e19b31b9-273b-4b34-b36b-5c59e1dcf326&lt;BR /&gt;Content-Disposition: form-data; name="categoryId"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ff808081430be14fff436caace2b1742&lt;BR /&gt;--e19b31b9-273b-4b34-b36b-5c59e1dcf326&lt;BR /&gt;Content-Disposition: form-data; name="overwrite"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;true&lt;BR /&gt;--e19b31b9-273b-4b34-b36b-5c59e1dcf326--&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be careful, if you don't have the empty line after Content-Disposition or Content-Type line, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 18:16:57 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868326#M5398</guid>
      <dc:creator>bserratrice</dc:creator>
      <dc:date>2014-01-08T18:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868327#M5399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How you convert workflow file into binary data like -e19b31b9-273b-4b34-b36b-5c59e1dcf326&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 09:18:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868327#M5399</guid>
      <dc:creator>anuragvr</dc:creator>
      <dc:date>2014-01-09T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Import a Workflow with Orchestrator Rest API</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868328#M5400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use a file reader to convert your file content to string and insert it at the right place in the multipart "syntax" (RFC-2387).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 09:37:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation/Import-a-Workflow-with-Orchestrator-Rest-API/m-p/868328#M5400</guid>
      <dc:creator>bserratrice</dc:creator>
      <dc:date>2014-01-09T09:37:43Z</dc:date>
    </item>
  </channel>
</rss>

