Workflow Name: amset13createusers#

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

Creates unbounded number of users.

Input/Output#

Code snippet 13.1. InitCreateUsersWS SOAP request (2 users).

<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/amset13createusers/InitCreateUsersWS" xmlns:adm="http://xml.netbeans.org/schema/administration" xmlns:ns="http://www.alfresco.org/ws/model/content/1.0">
  <soapenv:Body>
    <init:InitCreateUsersWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <adm:createUsers>
          <adm:newUsers>
            <adm:userName>user100</adm:userName>
            <adm:password>user100</adm:password>
            <adm:properties>
              <ns:name>{http://www.alfresco.org/model/content/1.0}firstName</ns:name>
              <ns:isMultiValue>false</ns:isMultiValue>
              <ns:value>hamish</ns:value>
              <ns:values></ns:values>
            </adm:properties>
          </adm:newUsers>
          <adm:newUsers>
            <adm:userName>user101</adm:userName>
            <adm:password>user101</adm:password>
            <adm:properties>
              <ns:name>{http://www.alfresco.org/model/content/1.0}firstName</ns:name>
              <ns:isMultiValue>false</ns:isMultiValue>
              <ns:value>dougal</ns:value>
              <ns:values></ns:values>
            </adm:properties>
          </adm:newUsers>
        </adm:createUsers>
      </part1>
    </init:InitCreateUsersWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 13.2. AdministrationService.createUsers() SOAP request (2 users).

<?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-31T09:14:01.03+00:00</wsu:Created>
                <wsu:Expires>2009-08-31T09:18:01.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_3f16818b3824eba1f10c30398d33e0098fd8cc09</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <createUsers
            xmlns="http://www.alfresco.org/ws/service/administration/1.0"
            xmlns:adm="http://xml.netbeans.org/schema/administration"
            xmlns:init="http://j2ee.netbeans.org/wsdl/amset13createusers/InitCreateUsersWS"
            xmlns:msgns="http://j2ee.netbeans.org/wsdl/amset13createusers/InitCreateUsersWS"
            xmlns:ns="http://www.alfresco.org/ws/model/content/1.0" xmlns:ns0="http://www.alfresco.org/ws/service/administration/1.0">
            <adm:newUsers>
                <adm:userName>user100</adm:userName>
                <adm:password>user100</adm:password>
                <adm:properties>
                    <ns:name>{http://www.alfresco.org/model/content/1.0}firstName</ns:name>
                    <ns:isMultiValue>false</ns:isMultiValue>
                    <ns:value>hamish</ns:value>
                    <ns:values/>
                </adm:properties>
            </adm:newUsers>
            <adm:newUsers>
                <adm:userName>user101</adm:userName>
                <adm:password>user101</adm:password>
                <adm:properties>
                    <ns:name>{http://www.alfresco.org/model/content/1.0}firstName</ns:name>
                    <ns:isMultiValue>false</ns:isMultiValue>
                    <ns:value>dougal</ns:value>
                    <ns:values/>
                </adm:properties>
            </adm:newUsers>
        </createUsers>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 13.3. AdministrationService.createUses() SOAP response (2 users).

<?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>
        <createUsersResponse xmlns="http://www.alfresco.org/ws/service/administration/1.0">
            <result>
                <userName>user100</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">63e48280-5d72-4116-9eb5-c60760c96448</ns3:value>
                </properties>
                <properties>
                    <ns4:name xmlns:ns4="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/system/1.0}node-dbid</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">601</ns6:value>
                </properties>
                <properties>
                    <ns7:name xmlns:ns7="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}sizeCurrent</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">0</ns9:value>
                </properties>
                <properties>
                    <ns10:name xmlns:ns10="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}userName</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">user100</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}homeFolder</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">workspace://SpacesStore/222c4a51-f06f-49bd-a2d1-c3e6f31ce54b</ns15:value>
                </properties>
                <properties>
                    <ns16:name xmlns:ns16="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}firstName</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">hamish</ns18:value>
                </properties>
            </result>
            <result>
                <userName>user101</userName>
                <properties>
                    <ns19:name xmlns:ns19="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}name</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">82a6a57b-e5fb-41d4-81fc-07b502c7968b</ns21:value>
                </properties>
                <properties>
                    <ns22:name xmlns:ns22="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/system/1.0}node-dbid</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">604</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}sizeCurrent</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">0</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}userName</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">user101</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}homeFolder</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">workspace://SpacesStore/2a02656d-7b0f-43f7-937e-516532aaaac1</ns33:value>
                </properties>
                <properties>
                    <ns34:name xmlns:ns34="http://www.alfresco.org/ws/model/content/1.0">{http://www.alfresco.org/model/content/1.0}firstName</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">dougal</ns36:value>
                </properties>
            </result>
        </createUsersResponse>
    </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