CMIS over SOAP with PHP SoapClient

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?

0 votes

1 answers

2138 views

ANSWER



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?

0 votes



ron
Have you taken a look at the Apache Chemistry CMIS PHP client available at http://chemistry.apache.org/php/phpclient.html?
04/17/2012

Please open a new Question on this site if you have a new question, don't piggyback on a previous one. This is for the convenience of the readers of the site.
04/17/2012

ron
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.
04/17/2012

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

ask
Ron, yes I have looked at Apache Chemistry PHP Client, but this library uses Atom and CURL. I need to upload files via SOAP. Florent, ok now I will create a new topic.
04/18/2012