<?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 building custom webservice Alfresco 4.2 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-building-custom-webservice-alfresco-4-2/m-p/288187#M241317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;We are trying to build a custom webservice in order to allow an external system to run a query for all documents that have been modified between two given dates, and return all the metadata of these documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue we are facins is that after building the webservce the schmea is no finding some of the namesapace I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am ussing&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;&lt;SPAN&gt;xmlns:ns="&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/ws/model/content/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/ws/model/content/1.0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;type="java&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;rg.alfresco.repo.webservice.authentication.AuthenticationFault"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but with this, the namespaces are not being found. When we try to deploy the wsdl we obtain the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;java.lang.NoClassDefFoundError: [Lorg/alfresco/webservice/types/ResultSetRow;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.lang.Class.getDeclaredMethods0(Native Method)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.lang.Class.getDeclaredMethod(Class.java:2128)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:874)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(JavaServiceDesc.java:846)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.description.JavaServiceDesc.getOperations(JavaServiceDesc.java:410)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1016)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:430)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.Java2WSDL.run(Java2WSDL.java:588)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at org.apache.axis.wsdl.Java2WSDL.main(Java2WSDL.java:682)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt;Caused by: java.lang.ClassNotFoundException: org.alfresco.webservice.types.ResultSetRow&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.net.URLClassLoader.findClass(URLClassLoader.java:381)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #808000;"&gt;&lt;EM&gt; ... 12 more&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We manage all dependencies with Maven and we are able to get access to them with no issue. I have seen that some other colleagues in this forum have fixed this issue by placing the libraries in&amp;nbsp; WEBINF/lib but this is not working either for me.&lt;/P&gt;&lt;P&gt;Here I attache the webservice and the xsd&lt;/P&gt;&lt;P&gt;Could you guide me to see what my error can be?&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 18:49:02 GMT</pubDate>
    <dc:creator>jlabuelo</dc:creator>
    <dc:date>2016-11-16T18:49:02Z</dc:date>
    <item>
      <title>Problem building custom webservice Alfresco 4.2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-building-custom-webservice-alfresco-4-2/m-p/288187#M241317</link>
      <description>Hi allWe are trying to build a custom webservice in order to allow an external system to run a query for all documents that have been modified between two given dates, and return all the metadata of these documents.The issue we are facins is that after building the webservce the schmea is no finding</description>
      <pubDate>Wed, 16 Nov 2016 18:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-building-custom-webservice-alfresco-4-2/m-p/288187#M241317</guid>
      <dc:creator>jlabuelo</dc:creator>
      <dc:date>2016-11-16T18:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem building custom webservice Alfresco 4.2</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-building-custom-webservice-alfresco-4-2/m-p/288188#M241318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you aware that Alfresco 4.2 is the LAST version to support web services and that this feature has been removed in Alfresco 5? Creating custom web services at this point seems like a waste of effort. Additionally, your use case can be perfectly dealt with using the industry standard CMIS API. It supports querying of nodes / documents e.g. with modification date within a specific range and returning results with their metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to class loading order in JVM you absolutely have to place your JARs in WEB-INF/lib if they have dependencies to Alfresco JARs. Putting them anywhere else will cause classes not to be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 09:11:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-building-custom-webservice-alfresco-4-2/m-p/288188#M241318</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-17T09:11:37Z</dc:date>
    </item>
  </channel>
</rss>

