cancel
Showing results for 
Search instead for 
Did you mean: 

Remote WebScripts invocation of Alfresco in Android App.

suryabadami
Champ in-the-making
Champ in-the-making
I am tring to invoke WebScript in Alfresco remotely using the URL http://192.168.1.2:8080/alfresco/service/sample/folder/Company%20Home and the url will promth me with the authentication window allowing me to entire the username and password. This invocation works completely fine in the Browser..

Followed the steps described in the alfresco : http://wiki.alfresco.com/wiki/Web_Scripts

But when im tring to do the same in android app using webview im facing Authentication Error (HTTP Status 401-Error) and its not promthing me with the authentication window..

Please help me regarding this. Thanks
5 REPLIES 5

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Hi,

You first need to log in and get a ticket, then request the webscript using the ticket.

In order to log in with a username and password the webscript you have to call is http://yourhost:yourport/alfresco/service/api/login?u={username}&pw={password?}

Once you have the ticket you just need to append it to your webscript call by adding the alf_ticket parameter this way:

http://192.168.1.2:8080/alfresco/service/sample/folder/Company%20Home?alf_ticket=whatever_you_get_in...

Hope this helps…

Adei

suryabadami
Champ in-the-making
Champ in-the-making
Thanks a lot Smiley Happy It worked!!!

suryabadami
Champ in-the-making
Champ in-the-making
Your answer was just what I neeedd. It’s made my day!
Thanks!!! Smiley Happy

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
welcome! Mark this post as SOLVED, please

And if you want give me a point Smiley Wink

suryabadami
Champ in-the-making
Champ in-the-making
Smiley Happy Smiley Happy Sure Smiley Happy
Getting started

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.