AnsweredAssumed Answered

Problem getting URL of succeeding versions of file

Question asked by junieboy on Sep 23, 2010
Latest reply on Sep 24, 2010 by rwetherall

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();"getPath(): " + xpath);
        String strUuid = result[0].getDestination().getUuid();"getUuid(): " + strUuid);
        String strDestStoreAddress = result[0].getDestination().getStore().getAddress();"getAddress(): " + strDestStoreAddress);