Hi,
I'm having some trouble getting the correct URL of the succeeding file versions through Alfresco web service. Below is my code for getting the uuid of the file uploaded. After setting the versionable aspect, checkout, update the content, then checkin the file, I noticed that the uuid I got is different with the one I see in the Alfresco Web Client when I click on the file icon. What is the correct way of getting the uuid's for the successing major versions of the file?
UpdateResult[] result = null;
try {
result = repositoryServiceStub.update(cml);
} catch (RepositoryFault e) {
throw e;
} catch (RemoteException e) {
throw e;
}
String xpath = result[0].getDestination().getPath();
log.info("getPath(): " + xpath);
String strUuid = result[0].getDestination().getUuid();
log.info("getUuid(): " + strUuid);
String strDestStoreAddress = result[0].getDestination().getStore().getAddress();
log.info("getAddress(): " + strDestStoreAddress);