Créer un document

Afin de créer un document, le service DocumentWSService expose une opération create

POST /core/services/document

	<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:doc="http://flower.com/docs/ws/api/document" 
	xmlns:doc1="http://flower.com/docs/domain/document"
	xmlns:com="http://flower.com/docs/domain/component"
	xmlns:com1="http://flower.com/docs/domain/common" 
	xmlns:acl="http://flower.com/docs/domain/acl" 
	xmlns:file="http://flower.com/docs/domain/file" 
	xmlns:flower="flower" >
	   <soapenv:Header>
	    <flower:token>{{token}}</flower:token>
	   </soapenv:Header>
	   <soapenv:Body>
	      <doc:createRequest>
	         <doc1:Document category="DOCUMENT" name="Mon document">
	            <com:data>
	               <com:classId>GEC_Courrier</com:classId>
	            </com:data>
	             <com:Tags>
	               <com:tags name="GEC_AdresseDestinataire">
	                  <com:value>destinataire@gmail.com</com:value>
	               </com:tags>
	            </com:Tags>
	            <doc1:files>
	              <file:Name>FileName</file:Name>
	              <file:Content>cid:200566171966</file:Content>
	            </doc1:files>
	         </doc1:Document>
	      </doc:createRequest>
	   </soapenv:Body>
	</soapenv:Envelope>


Le service /core/services/documentMTOM fournit les mêmes opérations et supporte le MTOM pour le transfert des contenus. L’utilisation de ce service est recommandée pour la création de document avec des contenus de taille conséquente.