<?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 Alfresco Web Services Via Ruby in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88474#M60030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get Ruby to interface with Alfresco web services. I am following the instructions on the wiki (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Ruby" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Ruby&lt;/A&gt;&lt;SPAN&gt;). I am successfully authenticating with the server and getting a ticket, but any operations after that seem to be failing with the following message in the Ruby console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#&amp;lt;SOAP::Mapping:&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bject:0x34b82d4&amp;gt;: Server Error (SOAP::FaultError)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing that may be causing this is that the wiki says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"In addition to installing this library, and because this library is not fully implemented, you will have to patch it with the patch containing MessageText code instead of the default MessageDigest."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not find any documentation on what that meant on the wiki or by doing an pretty extensive Google search. So, I have not done any patching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the sample code I am trying to run, and it is pretty much like the code in the Wiki.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;require 'soap/wsdlDriver'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;require "wss4r/rpc/wssdriver"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;require "wss4r/tokenresolver/authenticateuserresolver"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;require "pathname"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;authentication_wsdl_url = "file://" + Pathname.new(File.dirname(__FILE__)).realpath + "/../wsdl/authentication-service.wsdl"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;authenticator = SOAP::WSDLDriverFactory.new(authentication_wsdl_url).create_rpc_driver()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;authentication_result = authenticator.startSession(:username =&amp;gt; 'admin', &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;assword =&amp;gt; 'admin').startSessionReturn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;p authentication_result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ticket = authentication_result.ticket&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;p ticket&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;repository_wsdl_url = "file://" + Pathname.new(File.dirname(__FILE__)).realpath + "/../wsdl/repository-service.wsdl"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repository = SOAP::WSDLDriverFactory.new(repository_wsdl_url).create_rpc_driver()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# adding authentication information&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;resolver = Tokenresolver::AuthenticateUserResolver.new()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repository.security().add_security_resolver(resolver)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repository.security().add_security_token(UsernameToken.new(authentication_result.username, ticket))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# the query itself&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#query_result = repository.query({:store =&amp;gt; {:scheme =&amp;gt; 'workspace', :address =&amp;gt; 'SpacesStore'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&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;&amp;nbsp;&amp;nbsp; :query =&amp;gt; {:language =&amp;gt; 'lucene', :statement =&amp;gt; 'TEXT:"hello"'},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;&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;&amp;nbsp;&amp;nbsp; :includeMetaData =&amp;gt; false})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stores = repository.getStores({})&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;p stores&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with the commented out query as well and that ended up with the same result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any ideas what I am doing wrong? Or, do you have any suggestions on at least finding out where the problem is? I could not find anything in the alfresco log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2007 15:13:04 GMT</pubDate>
    <dc:creator>bdunbar</dc:creator>
    <dc:date>2007-05-24T15:13:04Z</dc:date>
    <item>
      <title>Alfresco Web Services Via Ruby</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88474#M60030</link>
      <description>I am trying to get Ruby to interface with Alfresco web services. I am following the instructions on the wiki (http://wiki.alfresco.com/wiki/Web_Service_Samples_for_Ruby). I am successfully authenticating with the server and getting a ticket, but any operations after that seem to be failing with the</description>
      <pubDate>Thu, 24 May 2007 15:13:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88474#M60030</guid>
      <dc:creator>bdunbar</dc:creator>
      <dc:date>2007-05-24T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Web Services Via Ruby</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88475#M60031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, this "Alfresco's Ruby Library" seems non-existent and the testWebServices.rb is nowhere to be found..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May someone please shed some light on this, preferably by posting that said patch here verbatim?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 19:51:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88475#M60031</guid>
      <dc:creator>kim</dc:creator>
      <dc:date>2008-01-08T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Web Services Via Ruby</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88476#M60032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forge.alfresco.com/projects/ruby/" rel="nofollow noopener noreferrer"&gt;http://forge.alfresco.com/projects/ruby/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 21:44:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88476#M60032</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-01-08T21:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Web Services Via Ruby</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88477#M60033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is an old thread, but hope someone can help me. I'm trying to access an alfresco 3.2 instance from a ruby app. Followed every step described on the wiki, and ended up here, still getting the same error bdunbar mentioned. I've downloaded the project on &lt;/SPAN&gt;&lt;A href="http://forge.alfresco.com/projects/ruby/" rel="nofollow noopener noreferrer"&gt;http://forge.alfresco.com/projects/ruby/&lt;/A&gt;&lt;SPAN&gt; but don't really understand the right way to apply the mentioned patch. Can somebody share any tip about how do the patch? Any help would be really appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 19:43:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-web-services-via-ruby/m-p/88477#M60033</guid>
      <dc:creator>frank_miller</dc:creator>
      <dc:date>2012-04-16T19:43:11Z</dc:date>
    </item>
  </channel>
</rss>

