<?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 Re: Unable to call assign workflow in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259492#M212622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm assuming you're referring to the Surf class: org.springframework.extensions.webscripts.connector.RemoteClient ?&amp;nbsp; Are you actually doing anything specific with this class because by the looks of the rest of your post you're just using the WebScript service context to access repository WebScripts. The "slingshot" WebScript you're referenced is specifically designed to be used by the Share application though, so I'm not entirely sure what you're expecting, however using FireBug or Web Developer Tools you should be able to see all the parameters that are passed when Share uses this REST call. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact that you're not getting a 401 response at least indicates that whatever you're doing you're authenticating correctly whatever it is you're doing. A bit more information may help us to help you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 08:30:22 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2012-03-07T08:30:22Z</dc:date>
    <item>
      <title>Unable to call assign workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259490#M212620</link>
      <description>Hi all,I have taken RemoteClient Java file, to call alfresco services and get the responce.I tried with this service "http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=admin" , I got the xml response as Ticket.Next, I would like to access assign workflow service like below code……..&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Tue, 07 Feb 2012 11:11:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259490#M212620</guid>
      <dc:creator>veena16</dc:creator>
      <dc:date>2012-02-07T11:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call assign workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259491#M212621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know what that RemoteClient class is. Is that something you wrote? Also, I don't know what version of Alfresco you are using, so I'll assume 3.2 as that is what is set on your forum user profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the assign-workflow web script expects JSON. Maybe the RemoteClient class you are using translates that parameters Map into a JSON object. If so, that's good. You also need to make sure that the content-type header is being set to application/json or the web script won't be invoked for your post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may already be aware of this, but the controller for the web script you are trying to call lives in $TOMCAT_HOME/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/action/assign-workflow.js. You can inspect that to see what the controller is expecting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach to figuring this out is to turn on the Rhino JavaScript debugger and set a breakpoint. Then, use Share to assign a workflow. You can then inspect the object as it is passed in to the controller. Alternatively, you could use Firebug or your browser's developer console to debug the client-side JavaScript so that you can see the structure of the object as it is passed to the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last question in your post is really about making AJAX calls and is not specific to Alfresco. Look at the JQuery documentation to figure out how to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 00:42:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259491#M212621</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-07T00:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call assign workflow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259492#M212622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm assuming you're referring to the Surf class: org.springframework.extensions.webscripts.connector.RemoteClient ?&amp;nbsp; Are you actually doing anything specific with this class because by the looks of the rest of your post you're just using the WebScript service context to access repository WebScripts. The "slingshot" WebScript you're referenced is specifically designed to be used by the Share application though, so I'm not entirely sure what you're expecting, however using FireBug or Web Developer Tools you should be able to see all the parameters that are passed when Share uses this REST call. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact that you're not getting a 401 response at least indicates that whatever you're doing you're authenticating correctly whatever it is you're doing. A bit more information may help us to help you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 08:30:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unable-to-call-assign-workflow/m-p/259492#M212622</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2012-03-07T08:30:22Z</dc:date>
    </item>
  </channel>
</rss>

