As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<wsdl:service name="AuthenticationService"> <wsdl:documentation>Provides simple authentication capability. </wsdl:documentation> <wsdl:port binding="auth:AuthenticationServiceSoapBinding" name="AuthenticationService"> <wsdlsoap:address location="http://localhost: 8080/alfresco/api/AuthenticationService"/> </wsdl:port> </wsdl:service>
<wsdl:service name="AuthenticationService"> <wsdl:documentation>Provides simple authentication capability.</wsdl:documentation> <wsdl:port binding="auth:AuthenticationServiceSoapBinding" name="AuthenticationService"> <wsdlsoap:address location="http://localhost:8080/alfresco/api/AuthenticationService'/> </wsdl:port> </wsdl:service>
function alfresco_test_api_page() { // … Drupal specific code to setup $server, $user, $pass // $server points to the alfresco server try { // Login $session = Session::create($user, $pass, $server .'/api'); // Get the children of the company home if ($currentStore = new SpacesStore($session)) { $nodes = $session->query($currentStore, null); } $session->close(); } catch (Exception $e) { // … Drupal specific code to handle the error } return print_r($nodes, TRUE); }
[detail] => stdClass Object ( [RepositoryFault] => stdClass Object ( [errorCode] => 0 [message] => Failed to parse query: ) [exceptionName] => org.alfresco.repo.webservice.repository.RepositoryFault [stackTrace] => at org.alfresco.repo.webservice.repository.RepositoryWebService.query(RepositoryWebService.java:233) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397) at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186) at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:652) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203) at java.lang.Thread.run(Thread.java:595) [hostname] => alpaca )
<wsdl:service name="AuthenticationService"> <wsdl:documentation>Provides simple authentication capability.</wsdl:documentation> <wsdl:port binding="auth:AuthenticationServiceSoapBinding" name="AuthenticationService"> <wsdlsoap:address location="http://localhost:8080/alfresco/api/AuthenticationService'/> </wsdl:port> </wsdl:service>