Workflow Name: amset15deleteusers#

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

Supplying an Alfresco userName or userNames will delete these users from the system.


Input/Output#

Code snippet 15.1. InitDeleteUsersWS SOAP request, 1 user.

<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/amset15deleteusers/InitDeleteUsersWS" xmlns:adm="http://xml.netbeans.org/schema/administration">
  <soapenv:Body>
    <init:InitDeleteUsersWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <adm:deleteUsers>
          <adm:userNames>user7</adm:userNames>
        </adm:deleteUsers>
      </part1>
    </init:InitDeleteUsersWSOperation>
  </soapenv:Body>
</soapenv:Envelope>

Code snippet 15.2. AdministrationService.deleteUsers() SOAP request, one user.

<?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-30T09:59:46.86+00:00</wsu:Created>
                <wsu:Expires>2009-08-30T10:03:46.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_2fa41670eb509b0195ef677810f3d6ed16a46922</Password>
                <Username>admin</Username>
            </UsernameToken>
        </Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <deleteUsers
            xmlns="http://www.alfresco.org/ws/service/administration/1.0" xmlns:msgns="http://www.alfresco.org/ws/service/administration/1.0">
            <msgns:userNames>user7</msgns:userNames>
        </deleteUsers>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 15.3. AdministrationService.deleteUsers() SOAP response.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <m:InitDeleteUsersWSOperationResponse xmlns:m="http://j2ee.netbeans.org/wsdl/amset15deleteusers/InitDeleteUsersWS">
      <part1 xmlns="">
        <ns0:deleteUsersResponse xmlns="http://www.alfresco.org/ws/service/administration/1.0" xmlns:msgns="http://www.alfresco.org/ws/service/administration/1.0" xmlns:ns0="http://xml.netbeans.org/schema/administration" xmlns:ns1="http://j2ee.netbeans.org/wsdl/amset15deleteusers/InitDeleteUsersWS"/>
      </part1>
    </m:InitDeleteUsersWSOperationResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Code snippet 15.4. InitDeleteUsersWS SOAP request, more than 1 user.

<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/amset15deleteusers/InitDeleteUsersWS" xmlns:adm="http://xml.netbeans.org/schema/administration">
  <soapenv:Body>
    <init:InitDeleteUsersWSOperation>
      <alfrescoAdminUsername>admin</alfrescoAdminUsername>
      <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword>
      <part1>
        <adm:deleteUsers>
          <adm:userNames>user5</adm:userNames>
          <adm:userNames>user2</adm:userNames>
        </adm:deleteUsers>
      </part1>
    </init:InitDeleteUsersWSOperation>
  </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:42 by clayton