cancel
Showing results for 
Search instead for 
Did you mean: 

What changes between Web Services Api 1.4 and 2.0 ?

icarrara
Champ in-the-making
Champ in-the-making
The Liferay's Alfresco Content portlet is able to validate on and get contents from Alfresco 1.4 using Web Services api.

From the same Liferay's portlet I'm tryng to access an Alfresco Server 2.0 but in Liferay's log I got the following error:

12:44:33,718 ERROR [Call:2469] Exception:
org.xml.sax.SAXException: Invalid element in org.alfresco.webservice.authentication.AuthenticationResult - sessionid

Why?

And, please, where I can get a list of changes between Alfresco Web Services api 1.4 and 2.0 ?

Thank you!

Ivano Carrara
4 REPLIES 4

t_boibes
Champ in-the-making
Champ in-the-making
Hello,

maybe it will help you :

http://wiki.alfresco.com/wiki/Release_2.0#Upgrading_from_V1.4.x

bye,
thomas.

icarrara
Champ in-the-making
Champ in-the-making
Thank you Thomas!

I found:
The bean "authenticationComponentImpl" is no longer used in the Spring config. It should not be over-ridden.

The correct bean to over-ride for NTLM LDAP etc is now "authenticationComponent". See the sample files which have been updated to reflect this.

The change removes a transactional layer that is no longer required.

Retrieved from "http://wiki.alfresco.com/wiki/Upgrading_to_2.0"

BUT I don't know if this is the point.

At the same time I can't find articles related to Web Services changes.

Ummm… My hope was that API didn't change between a release and another release ……

bparis
Champ in-the-making
Champ in-the-making
I've just installed version 2 and get into exactly the same problem.

Could anyone have a response ?

Thanks,
Bernard

bparis
Champ in-the-making
Champ in-the-making
To get an authentication ticket from alfresco :

in the previous API we needed to use

            String ticket = AuthenticationUtils.getCurrentTicket() ;

now with Alfresco2.0 API use instead

            String ticket = AuthenticationUtils.getTicket() ;

Bernard