cancel
Showing results for 
Search instead for 
Did you mean: 

CML [SOLVED]

nm_santos
Champ in-the-making
Champ in-the-making
Good morning,

I've seen the wiki and samples available regarding web services.

There is one aspect in which I have a little difficulty.

I couldn't find any example of CML, just the general structure.

Does anyone have any useful links or documentation regarding this matter?

Thanks,
Nuno.
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
In alfresco SDK there is one project called SDK WebserviceSamples.
It has CML examples.
http://wiki.alfresco.com/wiki/Alfresco_SDK
Download that and try to explore it. 😎

nm_santos
Champ in-the-making
Champ in-the-making
In alfresco SDK there is one project called SDK WebserviceSamples.
It has CML examples.
http://wiki.alfresco.com/wiki/Alfresco_SDK
Download that and try to explore it. 😎

Cheers Smiley Happy

I'll get right to it.

Nuno

nm_santos
Champ in-the-making
Champ in-the-making
After spending a few hours looking at the samples, I'm still having some difficulty.

The documentation regarding CML is really scarce.

For example,

In the web service client sample, at this line what does the first parameter mean?

 CMLCreate create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_FOLDER, properties); 


And here the cm: ? I can't find information about it.
 protected static final Reference SAMPLE_FOLDER = new Reference(STORE, null, "/app:company_home/cm:sample1"); 
Thanks in advance,
Nuno.

mitpatoliya
Star Collaborator
Star Collaborator
First parameter is just the ID.
that is nothing but the some random ID give to that cml.do not have much idea on that.
cm: is the prefix used for that alfresco model basic content types.