<?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 Problem with WebServiceFactory.getRepositoryService() in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182822#M135952</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;Iam new to WebServices and Alfresco. Iam trying to use Web services client to add a file into the Alfresco and downloaded Web Services samples available on the Alfresco site&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How ever when iam trying to &lt;/SPAN&gt;&lt;SPAN style="color:#FF8000;"&gt;compile&lt;/SPAN&gt;&lt;SPAN&gt; SAMPLESBASE.java iam facing with following exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cannot access org.apache.axis.client.Stub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WebServiceFactory.getRepositoryService().get(new Predicate(new Refer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ence[]{SAMPLE_FOLDER}, STORE, null));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed following steps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Downloaded and Installed Alfresco server&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Downloaded and added webservicesclient.jar into classpath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Downloaded and placed Webservicesclient.properties in tomcat\webapps\Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Downloaded and added Axis related libraries into the classpath&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Request some one to thow some light in where iam going wrong and what steps am i missing in compiling and executing this class file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it required to generate the clients for this class? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me in resolving this problems&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sreedhar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 12:35:39 GMT</pubDate>
    <dc:creator>lsreedhar</dc:creator>
    <dc:date>2008-12-12T12:35:39Z</dc:date>
    <item>
      <title>Problem with WebServiceFactory.getRepositoryService()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182822#M135952</link>
      <description>Hi,Iam new to WebServices and Alfresco. Iam trying to use Web services client to add a file into the Alfresco and downloaded Web Services samples available on the Alfresco siteHow ever when iam trying to compile SAMPLESBASE.java iam facing with following exceptioncannot access org.apache.axis.client</description>
      <pubDate>Fri, 12 Dec 2008 12:35:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182822#M135952</guid>
      <dc:creator>lsreedhar</dc:creator>
      <dc:date>2008-12-12T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with WebServiceFactory.getRepositoryService()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182823#M135953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Before to invoke WebServiceFactory.getRepositoryService().get(…. you can try to add this snippet to specify the endpoint of webservice stub on the server instead of using properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WebServiceFactory.setEndpointAddress(ALFRESCO_WS_SERVER_ENDPOINT);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;and then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WebServiceFactory.getRepositoryService().get(….&lt;BR /&gt;etc….&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I hope this can help you&amp;nbsp; :wink:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2009 14:56:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182823#M135953</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-01-14T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with WebServiceFactory.getRepositoryService()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182824#M135954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;WebServiceFactory.setEndpointAddress(ALFRESCO_WS_SERVER_ENDPOINT);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;AuthenticationUtils.startSession(ALFRESCO_USERNAME, ALFRESCO_PASSWORD);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;without having to hardcode the alfresco user and password, but using the currently logged user's session? (say my java class is used in a java backed webscript)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 20:48:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-with-webservicefactory-getrepositoryservice/m-p/182824#M135954</guid>
      <dc:creator>flopez</dc:creator>
      <dc:date>2011-03-31T20:48:40Z</dc:date>
    </item>
  </channel>
</rss>

