title: alfresco web services cmisWS soap createdocument
body: <p>Can someone help me out how I would go on about create documents to repository using soap createDocument.</p>
  
  <p>I have a custom content model and and when I add a new document does not have the properties of the content model. </p>
  
  <pre><code>&lt;ns:properties&gt;   &lt;ns1:propertyId
   propertyDefinitionId="cmis:objectTypeId"&gt;
           &lt;ns1:value&gt;cmis:document&lt;/ns1:value&gt;
        &lt;ns1:value&gt;cms:customModel&lt;/ns1:value&gt;   &lt;/ns:properties&gt;
  </code></pre>
  
  <p>Also I am looking to upload multiple attachments at time but right now I can't</p>
  
  <pre><code> &lt;ns:contentStream&gt;
              &lt;ns:mimeType&gt;application/octet-stream&lt;/ns:mimeType&gt;
             &lt;!-- Optional:--&gt;
              &lt;ns:filename&gt;&lt;/ns:filename&gt;
              &lt;ns:stream&gt;&lt;xsl:copy-of select="//someelement"&gt;&lt;/xsl:copy-of&gt;&lt;/ns:stream&gt;
  
           &lt;/ns:contentStream&gt;
  </code></pre>
  
  <p>any help on how I can get this working is greatly appreciated.</p>