AnsweredAssumed Answered

Using ContentService webservice with BPEL

Question asked by markhayen on Jul 30, 2007
Latest reply on Aug 6, 2007 by rwetherall
Hi there alfresco people,

I am using Oracle BPEL to connect to the Alfresco Webservices, already succeeded in getting authorization using WS-SE headers.

But now I want to get content using the Content-Webservice.

Then I need to construct the SOAP-message with the correct parameters:


<read xmlns="http://www.alfresco.org/ws/service/content/1.0">
   <items>
      <nodes xmlns="http://www.alfresco.org/ws/model/content/1.0">
         <store>
            <scheme>workspace</scheme>
            <address>SpacesStore</address>
         </store>
         <uuid>578373d5-0af5-11dc-9bc5-2ddbdefb608b</uuid>
         <path>/company_home/Andez2 Documentatie</path>
      </nodes>
      <store xmlns="http://www.alfresco.org/ws/model/content/1.0'/>
      <query xmlns="http://www.alfresco.org/ws/model/content/1.0'/>
   </items>
   <property>STS-xml.doc</property>
</read>

The STS-xml.doc is an existing document in the Companyhome/Andez2 Documentatie Folder, but there is no result from the webservice. see below:

<readResponse xmlns="http://www.alfresco.org/ws/service/content/1.0">
   <content>
      <node>
         <ns1:store xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
            <ns1:scheme>workspace</ns1:scheme>
            <ns1:address>SpacesStore</ns1:address>
         </ns1:store>
         <ns2:uuid xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">578373d5-0af5-11dc-9bc5-2ddbdefb608b</ns2:uuid>
         <ns3:path xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">/</ns3:path>
      </node>
      <property>STS-xml.doc</property>
      <length>0</length>
      <format xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance'/>
      <url xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance'/>
   </content>
</readResponse>

What am I missing here ?

THX

Mark Hayen

Outcomes