Workflow Name: amset34get#

Constituent Services: AuthenticationService, RepositoryService, InitGetWS, DateTimeWS#

Technical Notes#

Platform: GlassFishESB V2.1, NetBeans IDE 6.5 (including BPEL Designer, implementing WS-BPEL 2.0)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb).

Alfresco Labs 3 Final running on remote server, 64-bit Java 1.6.0_13, Tomcat 6 on Red Hat Enterprise Linux 5.

Workflow Description#

RepositoryService.get() returns all the property information associated with a node.

Input/Output#

Code snippet 34.1. InputGetWS SOAP request.

<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:init="http://j2ee.netbeans.org/wsdl/amset34get/InitGetWS" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata" xmlns:ns="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Body>
    <init:InitGetWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <rep:get>
          <rep:where>
            <ns:nodes>
              <ns:store>
                <ns:scheme>workspace</ns:scheme>
                <ns:address>SpacesStore</ns:address>
              </ns:store>
              <ns:uuid>b254309c-3e8b-4ee3-bc04-7f80db8dcb29</ns:uuid>
              <ns:path></ns:path>
            </ns:nodes>
            <ns:store>
              <ns:scheme></ns:scheme>
              <ns:address></ns:address>
            </ns:store>
            <ns:query>
              <ns:language></ns:language>
              <ns:statement></ns:statement>
            </ns:query>
          </rep:where>
        </rep:get>
      </part1>
    </init:InitGetWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 34.2. RepositoryService.get() SOAP request.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsu:Created>2009-09-16T16:36:58.85+00:00</wsu:Created>
                <wsu:Expires>2009-09-16T16:40:58.00+00:00</wsu:Expires>
            </wsu:Timestamp>
            <UsernameToken>
                <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">TICKET_111214c2de96020f28cb7ea7a79215a15a397cd3</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <get xmlns="http://www.alfresco.org/ws/service/repository/1.0"
            xmlns:init="http://j2ee.netbeans.org/wsdl/amset34get/InitGetWS"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset34get/InitGetWS"
            xmlns:ns="http://www.alfresco.org/ws/model/content/1.0"
            xmlns:ns0="http://www.alfresco.org/ws/service/repository/1.0" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata">
            <rep:where>
                <ns:nodes>
                    <ns:store>
                        <ns:scheme>workspace</ns:scheme>
                        <ns:address>SpacesStore</ns:address>
                    </ns:store>
                    <ns:uuid>b254309c-3e8b-4ee3-bc04-7f80db8dcb29</ns:uuid>
                    <ns:path/>
                </ns:nodes>
                <ns:store>
                    <ns:scheme/>
                    <ns:address/>
                </ns:store>
                <ns:query>
                    <ns:language/>
                    <ns:statement/>
                </ns:query>
            </rep:where>
        </get>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 34.3. RepositoryService.get() SOAP response.

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
    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">
    <soapenv:Body>
        <getResponse xmlns="http://www.alfresco.org/ws/service/repository/1.0">
            <getReturn>
                <ns1:reference xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">
                    <ns1:store>
                        <ns1:scheme>workspace</ns1:scheme>
                        <ns1:address>SpacesStore</ns1:address>
                    </ns1:store>
                    <ns1:uuid>b254309c-3e8b-4ee3-bc04-7f80db8dcb29</ns1:uuid>
                    <ns1:path>/app:company_home/cm:Waffle_x0020_Bus_x0020_Workflows/cm:What_x0020_is_x0020_the_x0020_Protein_x0020_Folding_x0020_Problem/cm:contains/cm:contains</ns1:path>
                </ns1:reference>
                <ns2:type xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/forum/1.0}forum</ns2:type>
                <ns3:aspects xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/system/1.0}referenceable</ns3:aspects>
                <ns4:aspects xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}auditable</ns4:aspects>
                <ns5:properties xmlns:ns5="http://www.alfresco.org/ws/model/content/1.0">
                    <ns5:name>{http://www.alfresco.org/model/content/1.0}name</ns5:name>
                    <ns5:isMultiValue>false</ns5:isMultiValue>
                    <ns5:value>NewDiscussionForum160909</ns5:value>
                </ns5:properties>
                <ns6:properties xmlns:ns6="http://www.alfresco.org/ws/model/content/1.0">
                    <ns6:name>{http://www.alfresco.org/model/system/1.0}node-dbid</ns6:name>
                    <ns6:isMultiValue>false</ns6:isMultiValue>
                    <ns6:value>642</ns6:value>
                </ns6:properties>
                <ns7:properties xmlns:ns7="http://www.alfresco.org/ws/model/content/1.0">
                    <ns7:name>{http://www.alfresco.org/model/system/1.0}store-identifier</ns7:name>
                    <ns7:isMultiValue>false</ns7:isMultiValue>
                    <ns7:value>SpacesStore</ns7:value>
                </ns7:properties>
                <ns8:properties xmlns:ns8="http://www.alfresco.org/ws/model/content/1.0">
                    <ns8:name>{http://www.alfresco.org/model/content/1.0}modified</ns8:name>
                    <ns8:isMultiValue>false</ns8:isMultiValue>
                    <ns8:value>2009-09-16T07:55:05.376+01:00</ns8:value>
                </ns8:properties>
                <ns9:properties xmlns:ns9="http://www.alfresco.org/ws/model/content/1.0">
                    <ns9:name>{http://www.alfresco.org/model/system/1.0}node-uuid</ns9:name>
                    <ns9:isMultiValue>false</ns9:isMultiValue>
                    <ns9:value>b254309c-3e8b-4ee3-bc04-7f80db8dcb29</ns9:value>
                </ns9:properties>
                <ns10:properties xmlns:ns10="http://www.alfresco.org/ws/model/content/1.0">
                    <ns10:name>{http://www.alfresco.org/model/content/1.0}created</ns10:name>
                    <ns10:isMultiValue>false</ns10:isMultiValue>
                    <ns10:value>2009-09-16T07:55:05.371+01:00</ns10:value>
                </ns10:properties>
                <ns11:properties xmlns:ns11="http://www.alfresco.org/ws/model/content/1.0">
                    <ns11:name>{http://www.alfresco.org/model/system/1.0}store-protocol</ns11:name>
                    <ns11:isMultiValue>false</ns11:isMultiValue>
                    <ns11:value>workspace</ns11:value>
                </ns11:properties>
                <ns12:properties xmlns:ns12="http://www.alfresco.org/ws/model/content/1.0">
                    <ns12:name>{http://www.alfresco.org/model/content/1.0}creator</ns12:name>
                    <ns12:isMultiValue>false</ns12:isMultiValue>
                    <ns12:value>admin</ns12:value>
                </ns12:properties>
                <ns13:properties xmlns:ns13="http://www.alfresco.org/ws/model/content/1.0">
                    <ns13:name>{http://www.alfresco.org/model/content/1.0}modifier</ns13:name>
                    <ns13:isMultiValue>false</ns13:isMultiValue>
                    <ns13:value>admin</ns13:value>
                </ns13:properties>
            </getReturn>
        </getResponse>
    </soapenv:Body>
</soapenv:Envelope>

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-) was last changed on 16-Sep-2009 16:38 by clayton