简体   繁体   中英

alfresco web services cmisWS soap createdocument

Can someone help me out how I would go on about create documents to repository using soap createDocument.

I have a custom content model and and when I add a new document does not have the properties of the content model.

<ns:properties>   <ns1:propertyId
 propertyDefinitionId="cmis:objectTypeId">
         <ns1:value>cmis:document</ns1:value>
      <ns1:value>cms:customModel</ns1:value>   </ns:properties>

Also I am looking to upload multiple attachments at time but right now I can't

 <ns:contentStream>
            <ns:mimeType>application/octet-stream</ns:mimeType>
           <!-- Optional:-->
            <ns:filename></ns:filename>
            <ns:stream><xsl:copy-of select="//someelement"></xsl:copy-of></ns:stream>

         </ns:contentStream>

any help on how I can get this working is greatly appreciated.

You should use OpenCMIS or a similar CMIS library instead of writing to the WS binding directly.

You appear to be attempting to set two values for cmis:objectTypeId. If you are trying to create an instance of cms:customModel, that should be the only value.

You aren't setting any custom property values in the snippets you provided.

To my knowledge, there is nothing in the spec allows you to provide multiple attachments simultaneously. You should get a single upload working first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM