<?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: File upload from Web Service can not be searched ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113399#M79852</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;From a quick visual inspection of the code I think the problem lies with this line ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; companyHomeParent.setChildName("cm:" + fileName); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The web service API always expects QName's to be in their fully expanded string form.&amp;nbsp; It will not understand what to do with prefixed QNames. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try modifying that line of code to read ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; companyHomeParent.setChildName("{&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;}" + fileName); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2007 09:04:03 GMT</pubDate>
    <dc:creator>rwetherall</dc:creator>
    <dc:date>2007-07-13T09:04:03Z</dc:date>
    <item>
      <title>File upload from Web Service can not be searched ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113398#M79851</link>
      <description>Hi,I upload a file "A01-200704.xls" unto space "/company_home/upload" through web service, this file can not be search by PATH:\"/app:company_home/cm:upload/cm:A01-200704.xls\". But if I upload this file through Add Content of Alfresco admin browser page, it can be searched, i think there should be</description>
      <pubDate>Sun, 08 Jul 2007 02:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113398#M79851</guid>
      <dc:creator>liao1108</dc:creator>
      <dc:date>2007-07-08T02:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: File upload from Web Service can not be searched ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113399#M79852</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;From a quick visual inspection of the code I think the problem lies with this line ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; companyHomeParent.setChildName("cm:" + fileName); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The web service API always expects QName's to be in their fully expanded string form.&amp;nbsp; It will not understand what to do with prefixed QNames. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try modifying that line of code to read ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; companyHomeParent.setChildName("{&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;}" + fileName); &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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 09:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113399#M79852</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2007-07-13T09:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: File upload from Web Service can not be searched ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113400#M79853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also make sure , you are specifying correct content type Ex: html/text for text. Look into valid content types. If you dont specify content type, then alfresco doesnt know how to search.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 23:16:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/file-upload-from-web-service-can-not-be-searched/m-p/113400#M79853</guid>
      <dc:creator>satishvarmadand</dc:creator>
      <dc:date>2008-12-19T23:16:03Z</dc:date>
    </item>
  </channel>
</rss>

