Workflow Name: amsetf1createforumspace#
Constituent Services: AuthenticationService, RepositoryService, InitCreateForumSpaceWS, 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 Final running on remote server, 64-bit Java 1.6.0_13, Tomcat 6 on Red Hat Enterprise Linux 5.
Workflow description#
Creates a space for containing forums, or other forum spaces.
Input/Output#
Code snippet f1.1. InitCreateForumSpace 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/amsetf1createforumspace/InitCreateForumSpaceWS" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata" xmlns:ns="http://www.alfresco.org/ws/cml/1.0" xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0"> <soapenv:Body> <init:InitCreateForumSpaceWSOperation> <alfrescoAdminUsername>admin</alfrescoAdminUsername> <alfrescoAdminPassword>adminPassword</alfrescoAdminPassword> <part1> <rep:update> <rep:statements> <ns:create> <ns:id>CreateForumSpace</ns:id> <ns:parent> <ns1:store> <ns1:scheme>workspace</ns1:scheme> <ns1:address>SpacesStore</ns1:address> </ns1:store> <ns1:uuid>a390583c-1704-4fb5-955f-826d5a9f8563</ns1:uuid> <ns1:path></ns1:path> <ns1:associationType>{http://www.alfresco.org/model/content/1.0}contains</ns1:associationType> <ns1:childName>{http://www.alfresco.org/model/content/1.0}contains</ns1:childName> </ns:parent> <ns:parent_id></ns:parent_id> <ns1:associationType></ns1:associationType> <ns1:childName></ns1:childName> <ns:type>{http://www.alfresco.org/model/forum/1.0}forums</ns:type> <ns:property> <ns1:name>{http://www.alfresco.org/model/content/1.0}name</ns1:name> <ns1:isMultiValue>false</ns1:isMultiValue> <ns1:value>NewForumSpace15092009</ns1:value> <ns1:values></ns1:values> </ns:property> </ns:create> </rep:statements> </rep:update> </part1> </init:InitCreateForumSpaceWSOperation> </soapenv:Body> </soapenv:Envelope>
Code snippet f1.2. RepositoryService.update() 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-15T23:42:35.20+00:00</wsu:Created> <wsu:Expires>2009-09-15T23:46:35.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_4c9d7dab8447757a4bbdb64907f65926e124d562</Password> <Username>admin</Username> </UsernameToken> </Security> </SOAP-ENV:Header> <SOAP-ENV:Body> <update xmlns="http://www.alfresco.org/ws/service/repository/1.0" xmlns:init="http://j2ee.netbeans.org/wsdl/amsetf1createforumspace/InitCreateForumSpaceWS" xmlns:msgns="http://j2ee.netbeans.org/wsdl/amsetf1createforumspace/InitCreateForumSpaceWS" xmlns:ns="http://www.alfresco.org/ws/cml/1.0" xmlns:ns0="http://www.alfresco.org/ws/service/repository/1.0" xmlns:ns1="http://www.alfresco.org/ws/model/content/1.0" xmlns:rep="http://j2ee.netbeans.org/wsdl/amset5createcontent1/InitCreateContentWS/repodata"> <rep:statements> <ns:create> <ns:id>CreateForumSpace</ns:id> <ns:parent> <ns1:store> <ns1:scheme>workspace</ns1:scheme> <ns1:address>SpacesStore</ns1:address> </ns1:store> <ns1:uuid>a390583c-1704-4fb5-955f-826d5a9f8563</ns1:uuid> <ns1:path/> <ns1:associationType>{http://www.alfresco.org/model/content/1.0}contains</ns1:associationType> <ns1:childName>{http://www.alfresco.org/model/content/1.0}contains</ns1:childName> </ns:parent> <ns:parent_id/> <ns1:associationType/> <ns1:childName/> <ns:type>{http://www.alfresco.org/model/forum/1.0}forums</ns:type> <ns:property> <ns1:name>{http://www.alfresco.org/model/content/1.0}name</ns1:name> <ns1:isMultiValue>false</ns1:isMultiValue> <ns1:value>NewForumSpace15092009</ns1:value> <ns1:values/> </ns:property> </ns:create> </rep:statements> </update> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Code snippet f1.3. RepositoryService.update() 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> <updateResponse xmlns="http://www.alfresco.org/ws/service/repository/1.0"> <updateReturn> <statement>create</statement> <updateCount xsi:nil="true"/> <sourceId>CreateForumSpace</sourceId> <source xsi:nil="true"/> <destination> <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">a9a512ee-e24a-4b17-909c-7ef6569302dc</ns2:uuid> <ns3:path xmlns:ns3="http://www.alfresco.org/ws/model/content/1.0">/app:company_home/cm:Waffle_x0020_Bus_x0020_Workflows/cm:What_x0020_is_x0020_the_x0020_Protein_x0020_Folding_x0020_Problem/cm:contains</ns3:path> </destination> </updateReturn> </updateResponse> </soapenv:Body> </soapenv:Envelope>
The link and the new forums space NewForumSpace15092009 are shown below.
Figure f1.1. Link to new forums space.
![]() |
Figure f1.2. New forums space.
![]() |
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
png |
forumspace_a.png | 13.5 kB | 1 | 16-Sep-2009 07:18 | clayton | |
png |
forumspace_b.png | 8.2 kB | 1 | 16-Sep-2009 07:19 | clayton |
G’day (anonymous guest)
My Prefs