<?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: web service api in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216057#M169187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to use lucene to search a file by name to get a unique return file. I used "TEXT:"filename&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; but get an exception (AxisFault). It appears that it return nothing or ??&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Query query = new Query();&lt;BR /&gt;query.setLanguage(Constants.QUERY_LANG_LUCENE); &lt;BR /&gt;query.setStatement("@cm\\:name:\"yourdocument.doc\"");&lt;BR /&gt;&lt;BR /&gt; … repositoryService.query(store, query, false); &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;Thanks, yours is working. How to add path before the file name?&amp;nbsp; Such as&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:folder1/cm:folder2/……)&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to invoke UploadContentServlet in web service program? Do I have to run the program on web server side or I can run from remote client machine has the client web service installed?&lt;/BLOCKQUOTE&gt;You want to upload a file?&lt;BR /&gt;&lt;BR /&gt;Please review this post how it works: &lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;From the link code, how to control where (which folders) to upload the file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, If I want to use the web service with upload servlet API, where to put the source file to be uploaded? Do I need to put the external&amp;nbsp; source file inside web server(tomcat) directory? Then which directory? Or could I upload a file from remote client machine? and if so, which folder to put to make it uploaded programmatically by&amp;nbsp; servlet URL connection call. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2009 16:24:37 GMT</pubDate>
    <dc:creator>mcheng621</dc:creator>
    <dc:date>2009-08-03T16:24:37Z</dc:date>
    <item>
      <title>web service api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216055#M169185</link>
      <description>I have two questions here:1. How to use lucene to search a file by name to get a unique return file. I used "TEXT:"filename&lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; but get an exception (AxisFault).&amp;nbsp; It appears that it return nothing or ?? 2. How to invoke UploadContentServlet in web service program? Do I have to run the program on web s</description>
      <pubDate>Fri, 31 Jul 2009 19:39:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216055#M169185</guid>
      <dc:creator>mcheng621</dc:creator>
      <dc:date>2009-07-31T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: web service api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216056#M169186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to use lucene to search a file by name to get a unique return file. I used "TEXT:"filename&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; but get an exception (AxisFault). It appears that it return nothing or ??&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Query query = new Query();&lt;BR /&gt;query.setLanguage(Constants.QUERY_LANG_LUCENE); &lt;BR /&gt;query.setStatement("@cm\\:name:\"yourdocument.doc\"");&lt;BR /&gt;&lt;BR /&gt; … repositoryService.query(store, query, false); &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to invoke UploadContentServlet in web service program? Do I have to run the program on web server side or I can run from remote client machine has the client web service installed?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;You want to upload a file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please review this post how it works: &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 11:32:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216056#M169186</guid>
      <dc:creator>cheffilet</dc:creator>
      <dc:date>2009-08-03T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: web service api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216057#M169187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to use lucene to search a file by name to get a unique return file. I used "TEXT:"filename&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; but get an exception (AxisFault). It appears that it return nothing or ??&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Query query = new Query();&lt;BR /&gt;query.setLanguage(Constants.QUERY_LANG_LUCENE); &lt;BR /&gt;query.setStatement("@cm\\:name:\"yourdocument.doc\"");&lt;BR /&gt;&lt;BR /&gt; … repositoryService.query(store, query, false); &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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;Thanks, yours is working. How to add path before the file name?&amp;nbsp; Such as&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:folder1/cm:folder2/……)&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;How to invoke UploadContentServlet in web service program? Do I have to run the program on web server side or I can run from remote client machine has the client web service installed?&lt;/BLOCKQUOTE&gt;You want to upload a file?&lt;BR /&gt;&lt;BR /&gt;Please review this post how it works: &lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=27&amp;amp;t=7346&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;From the link code, how to control where (which folders) to upload the file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, If I want to use the web service with upload servlet API, where to put the source file to be uploaded? Do I need to put the external&amp;nbsp; source file inside web server(tomcat) directory? Then which directory? Or could I upload a file from remote client machine? and if so, which folder to put to make it uploaded programmatically by&amp;nbsp; servlet URL connection call. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 16:24:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216057#M169187</guid>
      <dc:creator>mcheng621</dc:creator>
      <dc:date>2009-08-03T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: web service api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216058#M169188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks, yours is working. How to add path before the file name? Such as&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:folder1/cm:folder2/……)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Try following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;parentNode.setChildName(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, normilizeNodeName( spaceName )));&lt;BR /&gt;newNodeProperties = new NamedValue[]{Utils.createNamedValue(Constants.PROP_NAME, spaceName )};&lt;BR /&gt;&lt;BR /&gt;CMLCreate cmlCreate= new CMLCreate("1", parentNode, null, null, null, Constants.TYPE_FOLDER, newNodeProperties );&lt;BR /&gt;CML createSpaceCML= new CML();&lt;BR /&gt;createSpaceCML.setCreate(new CMLCreate[]{cmlCreate});&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;WebServiceFactory.getRepositoryService().update(cml);&lt;BR /&gt;&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;/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;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;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, If I want to use the web service with upload servlet API, where to put the source file to be uploaded?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That doesnt matter at all. As long as your Client and Server can communicate which each other you dont have to think about such a manner. The only thing you have to&amp;nbsp; do is to set up binary upon the the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more informations please have a look to following site: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 06:11:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216058#M169188</guid>
      <dc:creator>cheffilet</dc:creator>
      <dc:date>2009-08-04T06:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: web service api</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216059#M169189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks, yours is working. How to add path before the file name? Such as&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:folder1/cm:folder2/……)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Try following:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;parentNode.setChildName(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, normilizeNodeName( spaceName )));&lt;BR /&gt;newNodeProperties = new NamedValue[]{Utils.createNamedValue(Constants.PROP_NAME, spaceName )};&lt;BR /&gt;&lt;BR /&gt;CMLCreate cmlCreate= new CMLCreate("1", parentNode, null, null, null, Constants.TYPE_FOLDER, newNodeProperties );&lt;BR /&gt;CML createSpaceCML= new CML();&lt;BR /&gt;createSpaceCML.setCreate(new CMLCreate[]{cmlCreate});&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;WebServiceFactory.getRepositoryService().update(cml);&lt;BR /&gt;&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;/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;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;What I meant is that I want to do a search a document, I want to use the full node path in the query statement.&amp;nbsp; For example:&lt;BR /&gt; the statement similar to: &lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:space1/cm:space2/cm:GuardFile.txt\"");&lt;BR /&gt;But it does not work. how to make a correct query PATH for this example?&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, If I want to use the web service with upload servlet API, where to put the source file to be uploaded?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;That doesnt matter at all. As long as your Client and Server can communicate which each other you dont have to think about such a manner. The only thing you have to&amp;nbsp; do is to set up binary upon the the API.&lt;BR /&gt;&lt;BR /&gt;For more informations please have a look to following site: &lt;A href="http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/IngresTutorial_Alfresco_Web_Service_API_for_Java&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks, it is very helpful document. By the way how to upload existing PDF file? Will the same read and write function work on PDF format?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 15:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-service-api/m-p/216059#M169189</guid>
      <dc:creator>mcheng621</dc:creator>
      <dc:date>2009-08-04T15:28:00Z</dc:date>
    </item>
  </channel>
</rss>

