Workflow Name: amset14getuser#

Constituent Services: AuthenticationService, AdministrationService, InitGetUserWS, 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#

An Alfresco userName returns user details: name (uuid), organizationId, email, node-dbid (database identifier), presenceUsername, organization, jobtitle, lastName, homeFolder, presenceProvider, location, sizeQuota, userName, sizeCurrent, firstName.


Input/Output#

The SOAP message that initates the workflow:

Code snippet 14.1. InitGetUser 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/amset14getuser/InitGetUserWS" xmlns:adm="http://xml.netbeans.org/schema/administration">
  <soapenv:Body>
    <init:InitGetUserWSOperation>
      <username>admin</username>
      <password>adminPassword</password>
      <getUserInit>
        <adm:getUser>
          <adm:userName>mattereaterlad</adm:userName>
        </adm:getUser>
      </getUserInit>
    </init:InitGetUserWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 14.2. AdministrationService.getUser() 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-08-30T08:37:31.97+00:00</wsu:Created>
                <wsu:Expires>2009-08-30T08:41:31.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_7f726985c2c531a476f764bc0b33a47f012e8238</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <getUser
            xmlns="http://www.alfresco.org/ws/service/administration/1.0" xmlns:msgns="http://www.alfresco.org/ws/service/administration/1.0">
            <msgns:userName>mattereaterlad</msgns:userName>
        </getUser>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 14.3. AdministrationService.getUser() 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>
        <getUserResponse xmlns="http://www.alfresco.org/ws/service/administration/1.0">
            <result>
                <userName>mattereaterlad</userName>
                <properties>
                    <ns1:name xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}name</ns1:name>
                    <ns2:isMultiValue xmlns:ns2="http://www.alfresco.org/ws/model/content/1.0">false</ns2:isMultiValue>
                    <ns3:value xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">3bba3e7f-d5f8-4801-a303-9e0a48f5a509</ns3:value>
                </properties>
                <properties>
                    <ns4:name xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}organizationId</ns4:name>
                    <ns5:isMultiValue xmlns:ns5="http://www.alfresco.org/ws/model/content/1.0">false</ns5:isMultiValue>
                    <ns6:value xmlns:ns6="http://www.alfresco.org/ws/model/content/1.0"/>
                </properties>
                <properties>
                    <ns7:name xmlns:ns7="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}email</ns7:name>
                    <ns8:isMultiValue xmlns:ns8="http://www.alfresco.org/ws/model/content/1.0">false</ns8:isMultiValue>
                    <ns9:value xmlns:ns9="http://www.alfresco.org/ws/model/content/1.0">b.p.clark@leeds.ac.uk</ns9:value>
                </properties>
                <properties>
                    <ns10:name xmlns:ns10="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/system/1.0}node-dbid</ns10:name>
                    <ns11:isMultiValue xmlns:ns11="http://www.alfresco.org/ws/model/content/1.0">false</ns11:isMultiValue>
                    <ns12:value xmlns:ns12="http://www.alfresco.org/ws/model/content/1.0">465</ns12:value>
                </properties>
                <properties>
                    <ns13:name xmlns:ns13="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}presenceUsername</ns13:name>
                    <ns14:isMultiValue xmlns:ns14="http://www.alfresco.org/ws/model/content/1.0">false</ns14:isMultiValue>
                    <ns15:value xmlns:ns15="http://www.alfresco.org/ws/model/content/1.0"/>
                </properties>
                <properties>
                    <ns16:name xmlns:ns16="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}organization</ns16:name>
                    <ns17:isMultiValue xmlns:ns17="http://www.alfresco.org/ws/model/content/1.0">false</ns17:isMultiValue>
                    <ns18:value xmlns:ns18="http://www.alfresco.org/ws/model/content/1.0"/>
                </properties>
                <properties>
                    <ns19:name xmlns:ns19="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}jobtitle</ns19:name>
                    <ns20:isMultiValue xmlns:ns20="http://www.alfresco.org/ws/model/content/1.0">false</ns20:isMultiValue>
                    <ns21:value xmlns:ns21="http://www.alfresco.org/ws/model/content/1.0"/>
                </properties>
                <properties>
                    <ns22:name xmlns:ns22="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}lastName</ns22:name>
                    <ns23:isMultiValue xmlns:ns23="http://www.alfresco.org/ws/model/content/1.0">false</ns23:isMultiValue>
                    <ns24:value xmlns:ns24="http://www.alfresco.org/ws/model/content/1.0">kem</ns24:value>
                </properties>
                <properties>
                    <ns25:name xmlns:ns25="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}homeFolder</ns25:name>
                    <ns26:isMultiValue xmlns:ns26="http://www.alfresco.org/ws/model/content/1.0">false</ns26:isMultiValue>
                    <ns27:value xmlns:ns27="http://www.alfresco.org/ws/model/content/1.0">workspace://SpacesStore/c1ab9cd3-a1f5-4b8f-abd1-561844a2ca2e</ns27:value>
                </properties>
                <properties>
                    <ns28:name xmlns:ns28="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}presenceProvider</ns28:name>
                    <ns29:isMultiValue xmlns:ns29="http://www.alfresco.org/ws/model/content/1.0">false</ns29:isMultiValue>
                    <ns30:value xmlns:ns30="http://www.alfresco.org/ws/model/content/1.0">skype</ns30:value>
                </properties>
                <properties>
                    <ns31:name xmlns:ns31="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}location</ns31:name>
                    <ns32:isMultiValue xmlns:ns32="http://www.alfresco.org/ws/model/content/1.0">false</ns32:isMultiValue>
                    <ns33:value xmlns:ns33="http://www.alfresco.org/ws/model/content/1.0"/>
                </properties>
                <properties>
                    <ns34:name xmlns:ns34="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}sizeQuota</ns34:name>
                    <ns35:isMultiValue xmlns:ns35="http://www.alfresco.org/ws/model/content/1.0">false</ns35:isMultiValue>
                    <ns36:value xmlns:ns36="http://www.alfresco.org/ws/model/content/1.0">-1</ns36:value>
                </properties>
                <properties>
                    <ns37:name xmlns:ns37="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}userName</ns37:name>
                    <ns38:isMultiValue xmlns:ns38="http://www.alfresco.org/ws/model/content/1.0">false</ns38:isMultiValue>
                    <ns39:value xmlns:ns39="http://www.alfresco.org/ws/model/content/1.0">mattereaterlad</ns39:value>
                </properties>
                <properties>
                    <ns40:name xmlns:ns40="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}sizeCurrent</ns40:name>
                    <ns41:isMultiValue xmlns:ns41="http://www.alfresco.org/ws/model/content/1.0">false</ns41:isMultiValue>
                    <ns42:value xmlns:ns42="http://www.alfresco.org/ws/model/content/1.0">0</ns42:value>
                </properties>
                <properties>
                    <ns43:name xmlns:ns43="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}firstName</ns43:name>
                    <ns44:isMultiValue xmlns:ns44="http://www.alfresco.org/ws/model/content/1.0">false</ns44:isMultiValue>
                    <ns45:value xmlns:ns45="http://www.alfresco.org/ws/model/content/1.0">tenzil</ns45:value>
                </properties>
            </result>
        </getUserResponse>
    </soapenv:Body>
</soapenv:Envelope>

Add new attachment

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