Question

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.

Was it helpful?

Solution

If you want to integrate it with an application you can better use the Login Webscript.

So in your app, just make a configure view, which stores the user + pass (encrypted). And then before you do the request login and then with the ticket Authentication call your webscript.

It will then look like this: http://192.168.1.2:8080/alfresco/service/sample/folder/Company%20Home?alf_ticket=<TICKET>

Sometimes that doesn't work, then use http://192.168.1.2:8080/alfresco/service/sample/folder/Company%20Home?ticket=<TICKET> instead.

Good luck!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top