07-13-2009 05:45 AM
07-24-2009 06:14 AM
07-24-2009 06:49 AM
07-24-2009 06:51 AM
07-24-2009 06:59 AM
@sys\:node-uuid:"4109ffeb-6a1c-4e66-b9ca-467f18e38686" AND TEXT: "guy"
So if you create document using web services you can use the returned reference to obtain the uuid.
org.alfresco.webservice.types.Reference.getUuid()
Why should you store the uuid in another database? It depends on your use-case 😉
07-24-2009 08:58 AM
Reference r1 = new Reference();
r1.setUuid("b29cb2e6-1a2b-49c3-8b71-327a34dacc88");
r1.setStore(STORE);I pass this newly created reference object to perform actions like read,write,chkin,chkout.Hope this is the correct way.07-30-2009 07:23 AM
org.apache.ws.security.WSSecurityException: WSHandler: password callback failed; nested exception is:
org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.
at org.apache.ws.security.handler.WSHandler.performCallback(WSHandler.java:709)
at org.apache.ws.security.handler.WSHandler.readPwViaCallbackClass(WSHandler.java:670)
at org.apache.ws.security.handler.WSHandler.getPassword(WSHandler.java:625)
at org.apache.ws.security.action.UsernameTokenAction.execute(UsernameTokenAction.java:31)
at org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:192)
at org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:170)
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.client.AxisClient.invoke(AxisClient.java:127)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.alfresco.webservice.content.ContentServiceSoapBindingStub.read(ContentServiceSoapBindingStub.java:467)Caused by: org.alfresco.webservice.util.WebServiceException: Ticket could not be found when calling callback handler.
at org.alfresco.webservice.util.AuthenticationUtils.handle(AuthenticationUtils.java:171)
at org.apache.ws.security.handler.WSHandler.performCallback(WSHandler.java:707)This code : AuthenticationUtils.startSession(lStrLoginName,lStrPassword);
AuthenticationDetails details1=AuthenticationUtils.getAuthenticationDetails();
lStrTicket=details1.getTicket();returns me a ticket but that ticket for some reason is not passed to the api call.07-31-2009 04:52 AM
07-31-2009 08:10 AM
07-31-2009 08:46 AM
AuthenticationUtils.startSession(lStrLoginName,lStrPassword);
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
Query query = new Query();
query.setLanguage(Constants.QUERY_LANG_LUCENE);
query.setStatement("PATH:\"app:company_home/app:user_homes\" AND TYPE:\\{http\\://www.alfresco.org/model/content/1.0\\}folder");
QueryResult result = null;
…
result = repositoryService.query(store, query, false);
…
AuthenticationUtils.endSession();
07-31-2009 10:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.