cancel
Showing results for 
Search instead for 
Did you mean: 

how to access alfresco using flex and webscripts

vinuraga
Champ in-the-making
Champ in-the-making
Hi
am new to flex and webscript,
i wanted to access the content from alfresco repository by using webscripts and flex,
i want some example how to do

Thanks in advance
Vinod
3 REPLIES 3

stevereiner
Champ in-the-making
Champ in-the-making
Alfresco has a project located in the subversion codebase \HEAD\root\modules\flex-sdk\framework  with a small framework that provide support for calling webscripts from flex and doing authentication. See http://wiki.alfresco.com/wiki/Flex_SDK_Developer_Guide.
In the svn codebase there is also the ace project \HEAD\root\modules\ace which uses this framework and has examples of login, logout, search (has some dependencies on the content models from the  \HEAD\root\modules\knowledge-base project)

I have started a forge project for flex+browser and flex+air  Alfresco clients
Currently this has a prototype of the FlexSpaces+AIR client (air install file) along with source of the 23 data webscripts used by the prototype/cleints.
The data web scripts are JavaScript based, with Freemarker templates returning XML to the Flex / ActionScript / AIR client.
Will have some flex / actionscript source available soon (beyond the source for webscripts thats available now)

http://forge.alfresco.com/projects/flexspaces/

http://forums.alfresco.com/viewtopic.php?f=36&t=11876

Steve Reiner
http://www.integratedsemantics.org
http://www.integratedsemantics.com

vinuraga
Champ in-the-making
Champ in-the-making
hi Steve,
Thanks for quick reply,
I have seen th flex samples frm the alfresco svn,i tried to work they are not working,
i hav taken all webscripts of flipbook sample and put in alfresco repositry,
thn tried to access tht,but it is not coming,
thn i tried with running the .mxml file,it is giving
File not found: file:/C:/Documents%20and%20Settings/vinod/My%20Documents/Flex%20Builder%203/Book/bin/Flexbook.swf
error.

Tell me how to solve the problem,
am new to this technology.

Thanks in advance
vinod

stevereiner
Champ in-the-making
Champ in-the-making
With the gallery flexbook sample you need the alfresco flex framework project also imported into Flex Builder, and change the project library paths in the flipBook project to pt to the framework project. (from Project menu,  select Properties, select "Flex Build Path"  list left list, select "Library path" tab, select Add Project.. button,  and select "framework".   Once built, Flexbook isn't a sample of a standalone program, it is geared to show how to embed a swf in a html webscript (see viewgallery.get.html) It needs parameters passed to it (url for gallery webscript and ticket). 

For example of a standalone flex program look at the ace project (need to add the library path to alfresco flex framework project) and remove dependencies on the knowledge base module project content models to make it generic (dependencies on the knowledge-base module can be removed from the code by switching to a generic keyword search  atom format webscript call, removing the stuff about user details and other knowledge-base module types. ACE gives you examples of login, basic search, logout.)

Once I get some flex/actonscript code released in the FlexSpaces forge project, it will have examples of login,logout,search, checkin,checkout, properties, folderlist, tree, workflow, upload/download, view/preview, move/copy/delete, create space, etc.  and without dependencies on a specific content model

http://forge.alfresco.com/projects/flexspaces/

http://forums.alfresco.com/viewtopic.php?f=36&t=11876

Steve Reiner
http://www.integratedsemantics.org
http://www.integratedsemantics.com
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.