I'm a little bit confused. I create new content with the webservice so I call ContentService.create() which takes a ContentFormat. This one is constructed with a mimetype and encoding. But how do I add a new mimetype (like rfc/822)? I found the tutorial to create a new content type but how is this linked to the mimetype? I want to create a new content with the mentioned mimetype (which is not available in alfresco yet) and I need to add some properties to the content (which is probably done with the content type). Can somebody please enlighten me how this is supposed to work?
To add new mime types you edit the mimetype-map.xml file which you will find in projects/repository/config/alfresco if you are running from the source, in <alfresco-home>/tomcat/webapps/alfresco/WEB-INF/classes if you are running from the Tomcat bundle or <alfresco-home>/jboss/server/default/conf if you are running from the JBoss bundle.
In the meantime I tried to create a content node with CML but this fails. I have defined my own model, placed it in the alfresco/extension directory and added it to extension-context.xml (alfresco/extension/rfc822.xml).
Yes, that helped. So now I can create a content node of my type and set the properties with the NamedValue. But how can I set the content? Probably a stupid question but everything I found referred to the java api and not to the webservice.