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.
CMLCreate create = new CMLCreate(); create.setParent(destinationFolder); create.setAssociationType(Constants.ASSOC_CONTAINS); if (isFolder) { //it`s a link of folder type create.setType("{http://www.alfresco.org/model/application/1.0}folderlink"); }else{ create.setType("{http://www.alfresco.org/model/application/1.0}filelink"); } create.setProperty(prop); create.setChildName("Childname"); CML cml = new CML(); cml.setCreate(new CMLCreate[] { create }); WebServiceFactory.setEndpointAddress("http://140.92.25.160:80/alfresco/api"); AuthenticationUtils.startSession("admin","admin"); RepositoryServiceSoapBindingStub repositoryServiceSoapBindingStub = WebServiceFactory.getRepositoryService(); result = repositoryServiceSoapBindingStub.update(cml); if(result.length > 0 ){ isSuccess = true; } AuthenticationUtils.endSession(); }
http://localhost:8080/alfresco/soapapi