Workflow Name: amset33getcategories#

Constituent Services: AuthenticationService, ClassificationService, InitGetCategoriesWS, 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 Categories that are associated with a given node.

Input/Output#

Code snippet 33.1. InitGetCategoriesWS 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/amset33getcategories/InitGetCategoriesWS" xmlns:clas="http://xml.netbeans.org/schema/classification" xmlns:ns="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Body>
    <init:InitGetCategoriesWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <clas:getCategories>
          <clas:items>
            <ns:nodes>
              <ns:store>
                <ns:scheme>workspace</ns:scheme>
                <ns:address>SpacesStore</ns:address>
              </ns:store>
              <ns:uuid>7f9829cc-8d1e-4741-8729-508a39dca3f5</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>
          </clas:items>
        </clas:getCategories>
      </part1>
    </init:InitGetCategoriesWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 33.2. ClassificationsService.getCategories() 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-07T09:09:40.06+00:00</wsu:Created>
                <wsu:Expires>2009-09-07T09:13:40.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_92d095fde5464a7b6e6f862ba4c0d011ba4c8bc6</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <getCategories
            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/amset33getcategories/InitGetCategoriesWS"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset33getcategories/InitGetCategoriesWS"
            xmlns:ns="http://www.alfresco.org/ws/model/content/1.0" xmlns:ns0="http://www.alfresco.org/ws/service/classification/1.0">
            <clas:items>
                <ns:nodes>
                    <ns:store>
                        <ns:scheme>workspace</ns:scheme>
                        <ns:address>SpacesStore</ns:address>
                    </ns:store>
                    <ns:uuid>7f9829cc-8d1e-4741-8729-508a39dca3f5</ns:uuid>
                    <ns:path/>
                </ns:nodes>
                <ns:store>
                    <ns:scheme/>
                    <ns:address/>
                </ns:store>
                <ns:query>
                    <ns:language/>
                    <ns:statement/>
                </ns:query>
            </clas:items>
        </getCategories>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 33.3. ClassificationsService.getCategories() 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>
        <getCategoriesResponse xmlns="http://www.alfresco.org/ws/service/classification/1.0">
            <getCategoriesReturn>
                <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">7f9829cc-8d1e-4741-8729-508a39dca3f5</ns2:uuid>
                    <ns3:path xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">/app:company_home/cm:Waffle_x0020_Bus_x0020_Workflows</ns3:path>
                </node>
            </getCategoriesReturn>
        </getCategoriesResponse>
    </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 09:17 by clayton