cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS over SOAP with PHP SoapClient

ask45ru
Champ on-the-rise
Champ on-the-rise

I trying to develop a simple PHP-client using native PHP SoapClient but I have problem with createDocument method. I have error 'cmis:objectTypeId must be set'.

My request xml contains

        <ns1:properties>
            <ns1:property propertyDefinitionId="cmis:objectTypeId">
                <ns1:value>cmis:document</ns1:value>
            </ns1:property>
        </ns1:properties>

Maybe I do it wrong, but I didn't find any examples of the request xml.

How can I pass parameters to method?

6 REPLIES 6

ask45ru
Champ on-the-rise
Champ on-the-rise

I found the solution. The problem was in the namespaces. But I have a new problem. How can I pass content stream to the method or set contents of file?

ron_1
Star Contributor
Star Contributor

Have you taken a look at the Apache Chemistry CMIS PHP client available at http

Florent_Guillau
World-Class Innovator
World-Class Innovator

Please open a new Question on this site if you have a new question, don't piggyback on a previous one.

ron_1
Star Contributor
Star Contributor

This was more of a comment/suggestion than a true question. My intent was to ensure that the question asker was aware of the FOSS PHP client as opposed to working directly with the native PHP SoapClient. Since CMIS is a complex web services interface, working directly with the SOAP interface can be cumbersome.

Florent_Guillau
World-Class Innovator
World-Class Innovator

My comment was not for you ron, but for the original poster who asks "but I have a new problem...".

ask45ru
Champ on-the-rise
Champ on-the-rise

Ron, yes I have looked at Apache Chemistry PHP Client, but this library uses Atom and CURL. I need to upload files via SOAP.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.