views:

17

answers:

0

I tried to create cmis:document and apply custom aspect on it. At that time I wanted to set some aspect properties:

    <cmisra:object>
    <cmis:properties>
        <cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
            <cmis:value>cmis:document</cmis:value>
        </cmis:propertyId>

        <alf:setAspects>
            <alf:aspectsToAdd>P:sc:mydoc</alf:aspectsToAdd>
            <alf:properties>
                <cmis:propertyString propertyDefinitionId="sc:documentName">
                    <cmis:value>Name22</cmis:value>
                </cmis:propertyString>
                <cmis:propertyInteger propertyDefinitionId="sc:registrationNumber">
                    <cmis:value>234</cmis:value>
                </cmis:propertyInteger>
            </alf:properties>
        </alf:setAspects>
    </cmis:properties>
</cmisra:object>

But it's not working. If I try to update document with some aspect properties it works fine.

Do I need to set aspect properties in to stages:
1. apply aspect to document;
2. set some aspect properties?

Is there some way to do it in one stage?

Any help would be really appreciated.