cancel
Showing results for 
Search instead for 
Did you mean: 

some CMIS apis using http methods not supported in flex

stevereiner
Champ in-the-making
Champ in-the-making
In working on "CMIS Spaces" based on FlexSpaces code, with Flex/ActionScript, and Alfresco 3 CMIS draft implementation, atom/rest apis

some other CMIS things:
1. only 16x16 icons, no 32 or 64.
2. getChildren not sorted
3. for learning would be good to provide sample xml files coming back from alfresco vs. the ones in the spec download on the alfresco wiki
4. for learning need a better version of part 1 of the spec without all the redlines  on the alfresco wiki (sap had a better formatted one https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/0035143a-cf68-2b10-cd9d-d85470ed68de&prtm...  in a link on this page
5. spec section 2 atom rest api, should have  include xml response samples with each api, document the http args not just list them, document the url to call it whis is different than the name (or is there even a standard on the other than use links you get from the service url? ie spec has a getChildren section, has example ?getchildren,   alfresco implementation uses  /children)
6. Noticed some cmis avm things on the alfresco roadmap. Interested in hearing more about this
7. Kind of a pain  having to make additional calls to get permission info
8. Name of the root ("Company Home") not in initial cmis service url  response or in  the root-children response (Having <cmisSmiley Surprisedbject> for it would without  having to make another call).
9. Also found server doesn't return http header content-length in getChildren response
10. cmis needs an optional login ticket arg like regular alfresco. Will still have one initial basic auth prompt on viewing files (+Browser) and initial auth prompt playing videos  (+Browser, +AIR) stored in the repository  with a flex app.

Steve
2 REPLIES 2

stevereiner
Champ in-the-making
Champ in-the-making
Took out comment about wondering whether same cmis api calls work in parallel, things are fine for me with parallel calls both using sockets/as3httpclientlib or in a non sockets mode (HTTPService / URLLoader)

It looks like the CMIS uses http methods not supported normally in Flex (unless you use sockets or add a proxy)
i.e.  PUT, DELETE  see in the spec for some things

Does CMIS plan or already have a way of passing the method as arg (like web scripts) ?
(answer from Dave via twitter: proposal is to support the same method override as Google data api)

stevereiner
Champ in-the-making
Champ in-the-making
Note on using method pass way as google data api
(which use X-HTTP-Method-Override:  header to say what the real method is)
http://code.google.com/apis/gdata/docs/2.0/basics.html
and mention in CMIS spec

Flex doesn't support custom headers normally unless
1. need to have cross domain file with allow-http-request-headers-from domain=x headers=y,z
and
2.  use instead of HTTPService
a.  URLLoader  (Flex+AIR)
b.  Sockets (Flex+Browser, Flex+AIR)

(these seem to also what it takes to be able to use put, delete   too)