Workflow Name: amset32getclassifications#

Constituent Services: AuthenticationService, ClassificationService, InitGetClassificationsWS, DateTimeWS#

Technical Notes#

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

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

Workflow description#

This workflow returns the Classifications that are associated with a given store (scheme and address).

Input/Output#

Code snippet 32.1. InitGetClassificationsWS 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/amset32getclassifications/InitGetClassificationsWS" xmlns:clas="http://xml.netbeans.org/schema/classification" xmlns:ns="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Body>
    <init:InitGetClassificationsWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <clas:getClassifications>
          <clas:store>
            <ns:scheme>workspace</ns:scheme>
            <ns:address>SpacesStore</ns:address>
          </clas:store>
        </clas:getClassifications>
      </part1>
    </init:InitGetClassificationsWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 32.2. ClassificationService.getClassifications() 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-07T01:57:03.38+00:00</wsu:Created>
                <wsu:Expires>2009-09-07T02:01:03.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_0e4a40a10939ecc065007ba5eb833cf8699f452b</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <getClassifications
            xmlns="http://www.alfresco.org/ws/service/classification/1.0"
            xmlns:clas="http://xml.netbeans.org/schema/classification"
            xmlns:init="http://j2ee.netbeans.org/wsdl/amset32getclassifications/InitGetClassificationsWS"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset32getclassifications/InitGetClassificationsWS"
            xmlns:ns="http://www.alfresco.org/ws/model/content/1.0" xmlns:ns0="http://www.alfresco.org/ws/service/classification/1.0">
            <clas:store>
                <ns:scheme>workspace</ns:scheme>
                <ns:address>SpacesStore</ns:address>
            </clas:store>
        </getClassifications>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 32.3. ClassificationService.getClassifications() 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>
        <getClassificationsResponse xmlns="http://www.alfresco.org/ws/service/classification/1.0">
            <getClassificationsReturn>
                <ns1:classification xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}generalclassifiable</ns1:classification>
                <ns2:rootCategory xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">
                    <ns2:id>
                        <ns2:store>
                            <ns2:scheme>workspace</ns2:scheme>
                            <ns2:address>SpacesStore</ns2:address>
                        </ns2:store>
                        <ns2:uuid>a22b8f21-a957-4216-a1fc-79da103584c9</ns2:uuid>
                        <ns2:path>/cm:categoryRoot/cm:generalclassifiable/cm:Software_x0020_Document_x0020_Classification</ns2:path>
                    </ns2:id>
                    <ns2:title>Software Document Classification</ns2:title>
                </ns2:rootCategory>
                <ns3:title xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">Classifiable</ns3:title>
            </getClassificationsReturn>
            <getClassificationsReturn>
                <ns4:classification xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}generalclassifiable</ns4:classification>
                <ns5:rootCategory xmlns:ns5="http://www.alfresco.org/ws/model/content/1.0">
                    <ns5:id>
                        <ns5:store>
                            <ns5:scheme>workspace</ns5:scheme>
                            <ns5:address>SpacesStore</ns5:address>
                        </ns5:store>
                        <ns5:uuid>38a9a6fd-fbc9-438c-b07a-25376cdfbda6</ns5:uuid>
                        <ns5:path>/cm:categoryRoot/cm:generalclassifiable/cm:Languages</ns5:path>
                    </ns5:id>
                    <ns5:title>Languages</ns5:title>
                </ns5:rootCategory>
                <ns6:title xmlns:ns6="http://www.alfresco.org/ws/model/content/1.0">Classifiable</ns6:title>
            </getClassificationsReturn>
            <getClassificationsReturn>
                <ns7:classification xmlns:ns7="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}generalclassifiable</ns7:classification>
                <ns8:rootCategory xmlns:ns8="http://www.alfresco.org/ws/model/content/1.0">
                    <ns8:id>
                        <ns8:store>
                            <ns8:scheme>workspace</ns8:scheme>
                            <ns8:address>SpacesStore</ns8:address>
                        </ns8:store>
                        <ns8:uuid>eb03d74b-b840-4273-b270-a4e1730ea027</ns8:uuid>
                        <ns8:path>/cm:categoryRoot/cm:generalclassifiable/cm:Regions</ns8:path>
                    </ns8:id>
                    <ns8:title>Regions</ns8:title>
                </ns8:rootCategory>
                <ns9:title xmlns:ns9="http://www.alfresco.org/ws/model/content/1.0">Classifiable</ns9:title>
            </getClassificationsReturn>
            <getClassificationsReturn>
                <ns10:classification xmlns:ns10="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}generalclassifiable</ns10:classification>
                <ns11:rootCategory xmlns:ns11="http://www.alfresco.org/ws/model/content/1.0">
                    <ns11:id>
                        <ns11:store>
                            <ns11:scheme>workspace</ns11:scheme>
                            <ns11:address>SpacesStore</ns11:address>
                        </ns11:store>
                        <ns11:uuid>f99ac0fd-dcc1-4d7c-83c2-7070e2bd0f7d</ns11:uuid>
                        <ns11:path>/cm:categoryRoot/cm:generalclassifiable/cm:Tags</ns11:path>
                    </ns11:id>
                    <ns11:title>Tags</ns11:title>
                </ns11:rootCategory>
                <ns12:title xmlns:ns12="http://www.alfresco.org/ws/model/content/1.0">Classifiable</ns12:title>
            </getClassificationsReturn>
        </getClassificationsResponse>
    </soapenv:Body>
</soapenv:Envelope>

Add new attachment

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