AnsweredAssumed Answered

Repository-Service request fails

Question asked by sveinikr on Aug 24, 2007
Hi,

I am trying to add a new node in alfresco and write content to it.
Can anyone see what is wrong with my request.

I am not able to see any difference in repositoryService's writeContent-function and contentServices' write function. Could someone explain the difference to me?

I am using Oracle BPEL and Alfresco 2.1 web services.

The soap request and response message follows in the bottom of this post.

Best regards,
Svein Ivar



<messages>
-<input>
-<update_CreateNode_Input>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
-<update xmlns:rep="http://www.alfresco.org/ws/service/repository/1.0" xmlns="http://www.alfresco.org/ws/service/repository/1.0">
-<rep:statements>
-<cml:create xmlns:cml="http://www.alfresco.org/ws/cml/1.0">
<cml:id>895d4b70-50a9-11dc-b065-673ee897bf12
</cml:id>
-<cml:parent>
-<cms:store xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">
<cms:scheme>workspace
</cms:scheme>
<cms:address>SpacesStore
</cms:address>
</cms:store>
<cms:uuid xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">10c0de33-4b34-11dc-b2af-3b2274469cab
</cms:uuid>
<cms:path xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">/{http://www.alfresco.org/model/application/1.0}company_home
</cms:path>
</cml:parent>
<cml:parent_id>10c0de33-4b34-11dc-b2af-3b2274469cab
</cml:parent_id>
<cms:childName xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">test.html
</cms:childName>
<cml:type>{http://www.alfresco.org/model/content/1.0}content
</cml:type>
-<cml:property>
<cms:name xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">Test
</cms:name>
<cms:isMultiValue xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">false
</cms:isMultiValue>
</cml:property>
</cml:create>
-<cml:writeContent xmlns:cml="http://www.alfresco.org/ws/cml/1.0">
<cml:property>{http://www.alfresco.org/model/content/1.0}content
</cml:property>
<cml:content>SGVsbG8gV29ybGQ
</cml:content>
-<cml:format>
<cms:mimetype xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">application/html
</cms:mimetype>
<cms:encoding xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">UTF-8
</cms:encoding>
</cml:format>
-<cml:where>
-<cms:nodes xmlns:cms="http://www.alfresco.org/ws/model/content/1.0">
-<cms:store>
<cms:scheme>workspace
</cms:scheme>
<cms:address>SpacesStore
</cms:address>
</cms:store>
<cms:uuid>895d4b70-50a9-11dc-b065-673ee897bf12
</cms:uuid>
<cms:path>/{http://www.alfresco.org/model/application/1.0}company_home
</cms:path>
</cms:nodes>
</cml:where>
</cml:writeContent>
</rep:statements>
</update>
</part>
</update_CreateNode_Input>
</input>
-<fault>
-<RepositoryFault xmlns="http://www.alfresco.org/ws/service/repository/1.0">
-<part name="fault">
-<ns1:RepositoryFault xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:errorCode xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">0
</ns1:errorCode>
<ns1:message xmlns:ns1="http://www.alfresco.org/ws/service/repository/1.0" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">org.alfresco.service.namespace.InvalidQNameException: Argument qname is mandatory
</ns1:message>
</ns1:RepositoryFault>
</part>
</RepositoryFault>
</fault>
</messages>

Outcomes