|
From: <pka...@us...> - 2009-05-04 14:50:29
|
Revision: 207
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=207&view=rev
Author: pkasprzak
Date: 2009-05-04 14:50:27 +0000 (Mon, 04 May 2009)
Log Message:
-----------
* Added support for creating categories
* Added appropriate Testcase
Modified Paths:
--------------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
Added Paths:
-----------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-04 13:54:05 UTC (rev 206)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-04 14:50:27 UTC (rev 207)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/>
+ <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/>
<system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/>
- <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/>
</catalog>
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-04 13:54:05 UTC (rev 206)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-04 14:50:27 UTC (rev 207)
@@ -11,10 +11,16 @@
<message name="ProcessCourseOperationRequest">
<part name="courseMessage" type="ns:courseMessageType"/>
</message>
+ <message name="ProcessCategoryOperationRequest">
+ <part name="categoryMessage" type="ns:categoryMessageType"/>
+ </message>
<portType name="ILIASClientAdapterPortType">
<operation name="ProcessCourseOperation">
<input name="input1" message="tns:ProcessCourseOperationRequest"/>
</operation>
+ <operation name="ProcessCategoryOperation">
+ <input name="input2" message="tns:ProcessCategoryOperationRequest"/>
+ </operation>
</portType>
<binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
@@ -24,6 +30,12 @@
<soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/>
</input>
</operation>
+ <operation name="ProcessCategoryOperation">
+ <soap:operation/>
+ <input name="input2">
+ <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/>
+ </input>
+ </operation>
</binding>
<service name="ILIASClientAdapterService">
<port name="ILIASClientAdapterPort" binding="tns:ILIASClientAdapterBinding">
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-04 13:54:05 UTC (rev 206)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-04 14:50:27 UTC (rev 207)
@@ -27,6 +27,9 @@
<variables>
<!-- Messages -->
+ <variable name="ProcessCategoryOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCategoryOperationRequest"/>
+ <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/>
+
<variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/>
<variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/>
<variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/>
@@ -37,7 +40,6 @@
<variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/>
<variable name="LoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/>
<variable name="LoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/>
- <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/>
<!-- Ilias -->
@@ -54,156 +56,325 @@
</variables>
<sequence>
+ <pick name="processObjects" createInstance="yes">
+ <onMessage partnerLink="ILIASAdapter" operation="ProcessCourseOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn">
+ <sequence>
+ <assign name="prepareLogin">
+ <copy>
+ <from>'test'</from>
+ <to variable="LoginIn" part="client"/>
+ </copy>
+ <copy>
+ <from>'root'</from>
+ <to variable="LoginIn" part="username"/>
+ </copy>
+ <copy>
+ <from>'homer'</from>
+ <to variable="LoginIn" part="password"/>
+ </copy>
+ </assign>
- <receive name="receive" createInstance="yes" partnerLink="ILIASAdapter" operation="ProcessCourseOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"/>
-
- <assign name="prepareLogin">
- <copy>
- <from>'test'</from>
- <to variable="LoginIn" part="client"/>
- </copy>
- <copy>
- <from>'root'</from>
- <to variable="LoginIn" part="username"/>
- </copy>
- <copy>
- <from>'homer'</from>
- <to variable="LoginIn" part="password"/>
- </copy>
- </assign>
-
- <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration"
+ <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration"
portType="tns:ILIASSoapWebservicePortType"
inputVariable="LoginIn"
outputVariable="LoginOut">
- <sxt:trace>
- <sxt:log level="info" location="onComplete">
- <from>concat('*** SID: ', $LoginOut.sid)</from>
- </sxt:log>
- </sxt:trace>
- </invoke>
+ <sxt:trace>
+ <sxt:log level="info" location="onComplete">
+ <from>concat('*** SID: ', $LoginOut.sid)</from>
+ </sxt:log>
+ </sxt:trace>
+ </invoke>
- <assign name="saveSID">
- <copy>
- <from variable="LoginOut" part="sid"/>
- <to variable="SID"/>
- </copy>
- </assign>
+ <assign name="saveSID">
+ <copy>
+ <from variable="LoginOut" part="sid"/>
+ <to variable="SID"/>
+ </copy>
+ </assign>
- <!-- Check if "test" category exists and if not add it -->
- <scope name="CheckAndCreateTestCategory">
+ <!-- Check if "test" category exists and if not add it -->
+ <scope name="CheckAndCreateTestCategory">
- <variables>
- <!-- Category description as object in Ilias-Format -->
- <variable name="CategoryXML" element="il_objs:Object"/>
+ <variables>
+ <!-- Category description as object in Ilias-Format -->
+ <variable name="CategoryXML" element="il_objs:Object"/>
- <!-- Result of object search for title -->
- <variable name="ObjectsRawXML" element="il_objs:Objects"/>
- <variable name="ObjectsXML" element="il_objs:Objects"/>
+ <!-- Result of object search for title -->
+ <variable name="ObjectsRawXML" element="il_objs:Objects"/>
+ <variable name="ObjectsXML" element="il_objs:Objects"/>
- </variables>
+ </variables>
- <sequence name="CheckForTestCategory">
- <!-- Init variables -->
- <assign name="init">
- <copy>
- <from>0</from>
- <to variable="CategoryRefId"/>
- </copy>
- </assign>
+ <sequence name="CheckForTestCategory">
+ <!-- Init variables -->
+ <assign name="init">
+ <copy>
+ <from>0</from>
+ <to variable="CategoryRefId"/>
+ </copy>
+ </assign>
- <!-- Prepeare search by title -->
- <assign name="prepareGetObjectsByTitle">
- <copy>
- <from variable="SID"/>
- <to>$GetObjectsByTitleIn.sid</to>
- </copy>
- <copy>
- <from>'test'</from>
- <to>$GetObjectsByTitleIn.title</to>
- </copy>
- <copy>
- <from>0</from>
- <to>$GetObjectsByTitleIn.user_id</to>
- </copy>
- </assign>
+ <!-- Prepeare search by title -->
+ <assign name="prepareGetObjectsByTitle">
+ <copy>
+ <from variable="SID"/>
+ <to>$GetObjectsByTitleIn.sid</to>
+ </copy>
+ <copy>
+ <from>'test'</from>
+ <to>$GetObjectsByTitleIn.title</to>
+ </copy>
+ <copy>
+ <from>0</from>
+ <to>$GetObjectsByTitleIn.user_id</to>
+ </copy>
+ </assign>
- <!-- Do search -->
- <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration"
- portType="tns:ILIASSoapWebservicePortType"
- inputVariable="GetObjectsByTitleIn"
- outputVariable="GetObjectsByTitleOut">
+ <!-- Do search -->
+ <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration"
+ portType="tns:ILIASSoapWebservicePortType"
+ inputVariable="GetObjectsByTitleIn"
+ outputVariable="GetObjectsByTitleOut">
<!--
- BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
- java.lang.NullPointerException
- <sxt:trace>
- <sxt:log level="info" location="onComplete">
- <from>concat('*** ObjectsXML: ', $GetObjectsByTitleOut.object_xml)</from>
- </sxt:log>
- </sxt:trace>
+ BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
+ java.lang.NullPointerException
+ <sxt:trace>
+ <sxt:log level="info" location="onComplete">
+ <from>concat('*** ObjectsXML: ', $GetObjectsByTitleOut.object_xml)</from>
+ </sxt:log>
+ </sxt:trace>
-->
- </invoke>
+ </invoke>
- <!-- Don't try to unmarshal empty string (i.e. no objects found) -->
- <if>
- <condition>$GetObjectsByTitleOut.object_xml != ""</condition>
- <sequence name="processObjectsXML">
+ <!-- Don't try to unmarshal empty string (i.e. no objects found) -->
+ <if>
+ <condition>$GetObjectsByTitleOut.object_xml != ''</condition>
+ <sequence name="processObjectsXML">
+ <sxt:trace>
+ <sxt:log level="info" location="onStart">
+ <from>'*** Processing ObjectsXML...'</from>
+ </sxt:log>
+ </sxt:trace>
+
+ <!-- Convert to XML structure -->
+ <assign name="unmarshalResult" >
+ <copy>
+ <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from>
+ <to variable="ObjectsRawXML"/>
+ </copy>
+ </assign>
+
+ <assign>
+<!--
+ BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
+ java.lang.NullPointerException
+ <sxt:trace>
+ <sxt:log level="info" location="onComplete">
+ <from>concat('*** ObjectsXML (after xslt): ', sxxf:doMarshal($ObjectsXML))</from>
+ </sxt:log>
+ </sxt:trace>
+-->
+ <copy>
+ <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from>
+ <to variable="ObjectsXML"/>
+ </copy>
+ </assign>
+
+ <!-- Determine, if there is a category in the result (Object/@type = "cat") and get it's refId for later -->
+ <assign name="checkForCategories">
+
+<!--
+ BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
+ java.lang.NullPointerException
+
+ <sxt:trace>
+ <sxt:log level="info" location="onComplete">
+ <from>concat('*** CategoryRefId: ', string($CategoryRefId))</from>
+ </sxt:log>
+ </sxt:trace>
+-->
+ <!-- Note: if an empty node is return below, it is converted by number() to "NaN" -->
+ <copy>
+ <from>number($ObjectsXML/il_objs:Object[@il_objs:type = 'cat']/il_objs:References/@il_objs:ref_id)</from>
+ <to variable="CategoryRefId"/>
+ </copy>
+ </assign>
+ </sequence>
+ </if>
+
+ <!-- If no appropriate catgeory was found, create one -->
+ <if>
+ <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition>
+ <sequence name="addTestCategory">
+ <assign name="prepareAddCategory">
+ <copy>
+ <from variable="SID"/>
+ <to>$AddObjectIn.sid</to>
+ </copy>
+ <copy>
+ <from>1</from>
+ <to>$AddObjectIn.target_id</to>
+ </copy>
+ <copy>
+ <from>
+ <literal>
+ <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat">
+ <Title>test</Title>
+ <Description>test category</Description>
+ </Object>
+ </literal>
+ </from>
+ <to variable="CategoryXML"/>
+ </copy>
+ </assign>
+
+ <!-- Render XML to string -->
+ <assign name="marshalCategoryXML">
+ <copy>
+ <from>sxxf:doMarshal($CategoryXML)</from>
+ <to>$AddObjectIn.object_xml</to>
+ </copy>
+ </assign>
+
+ <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration"
+ portType="tns:ILIASSoapWebservicePortType"
+ inputVariable="AddObjectIn"
+ outputVariable="AddObjectOut">
+ <sxt:trace>
+ <sxt:log level="info" location="onStart">
+ <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from>
+ </sxt:log>
+ </sxt:trace>
+ </invoke>
+
+ <!-- Set RefId -->
+ <assign name="setRefId">
+ <copy>
+ <from>$AddObjectOut.ref_id</from>
+ <to variable="CategoryRefId"/>
+ </copy>
+ </assign>
+ </sequence>
+ </if>
+ </sequence>
+ </scope>
+
+ <!-- Initialize course xml skeleton -->
+ <assign name="initializeCourseXML">
+ <copy>
+ <from>
+ <literal>
+ <Course xmlns="http://cse.campussource.de/schema/ilias/course">
+ <MetaData xmlns="http://cse.campussource.de/schema/ilias/course">
+ <General>
+ <Title Language="en">test3</Title>
+ <Language Language="en">en</Language>
+ <Description Language="en">bpel test2</Description>
+ </General>
+ </MetaData>
+ </Course>
+ </literal>
+ </from>
+ <to>$CourseXML</to>
+ </copy>
+ </assign>
+
+ <!-- Set relevant course data -->
+ <assign name="setCourseData">
+ <copy>
+<!--
+ <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from>
+-->
+ <from>'test6'</from>
+ <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to>
+ </copy>
+<!--
+ <copy>
+ <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from>
+ <to>$CourseXML/MetaData/General/Title/@Language</to>
+ </copy>
+ <copy>
+ <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from>
+ <to>$CourseXML/MetaData/General/Language[0]/@Language</to>
+ </copy>
+-->
+ </assign>
+
+ <!-- Set all parts for addCourse call -->
+ <assign name="prepareAddCourse">
+ <!-- Set SID -->
+ <copy>
+ <from variable="SID"/>
+ <to variable="AddCourseIn" part="sid"/>
+ </copy>
+ <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) -->
+ <copy>
+ <from variable="CategoryRefId"/>
+ <to variable="AddCourseIn" part="target_id"/>
+ </copy>
+ <!-- Set CourseXML (as string) -->
+ <copy>
+ <from>sxxf:doMarshal($CourseXML)</from>
+ <to variable="AddCourseIn" part="crs_xml"/>
+ </copy>
+ </assign>
+
+ <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration"
+ portType="tns:ILIASSoapWebservicePortType"
+ inputVariable="AddCourseIn"
+ outputVariable="AddCourseOut">
<sxt:trace>
<sxt:log level="info" location="onStart">
- <from>'*** Processing ObjectsXML...'</from>
+ <from>concat('*** Adding Course (refId: ', $AddCourseIn.target_id, ', xml: ', $AddCourseIn.crs_xml, ')')</from>
</sxt:log>
+
+ <sxt:log level="info" location="onComplete">
+ <from>concat('*** Result of addCourse: ', $AddCourseOut.course_id)</from>
+ </sxt:log>
</sxt:trace>
-
- <!-- Convert to XML structure -->
- <assign name="unmarshalResult" >
+ </invoke>
+ </sequence>
+ </onMessage>
+ <onMessage partnerLink="ILIASAdapter" operation="ProcessCategoryOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCategoryOperationIn">
+ <scope name="createCategory">
+ <variables>
+ <!-- Category description as object in Ilias-Format -->
+ <variable name="CategoryXML" element="il_objs:Object"/>
+ </variables>
+ <sequence>
+ <assign name="prepareLoginForProcessCategory">
<copy>
- <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from>
- <to variable="ObjectsRawXML"/>
+ <from>'test'</from>
+ <to variable="LoginIn" part="client"/>
</copy>
- </assign>
-
- <assign>
-<!--
- BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
- java.lang.NullPointerException
- <sxt:trace>
- <sxt:log level="info" location="onComplete">
- <from>concat('*** ObjectsXML (after xslt): ', sxxf:doMarshal($ObjectsXML))</from>
- </sxt:log>
- </sxt:trace>
--->
<copy>
- <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from>
- <to variable="ObjectsXML"/>
+ <from>'root'</from>
+ <to variable="LoginIn" part="username"/>
</copy>
+ <copy>
+ <from>'homer'</from>
+ <to variable="LoginIn" part="password"/>
+ </copy>
</assign>
- <!-- Determine, if there is a category in the result (Object/@type = "cat") and get it's refId for later -->
- <assign name="checkForCategories">
-
-<!--
- BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs
- java.lang.NullPointerException
-
+ <invoke name="loginForProcessCategory" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration"
+ portType="tns:ILIASSoapWebservicePortType"
+ inputVariable="LoginIn"
+ outputVariable="LoginOut">
<sxt:trace>
<sxt:log level="info" location="onComplete">
- <from>concat('*** CategoryRefId: ', string($CategoryRefId))</from>
+ <from>concat('*** SID: ', $LoginOut.sid)</from>
</sxt:log>
</sxt:trace>
--->
- <!-- Note: if an empty node is return below, it is converted by number() to "NaN" -->
+ </invoke>
+
+ <assign name="saveSIDForProcessCategory">
<copy>
- <from>number($ObjectsXML/il_objs:Object[@il_objs:type = 'cat']/il_objs:References/@il_objs:ref_id)</from>
- <to variable="CategoryRefId"/>
+ <from variable="LoginOut" part="sid"/>
+ <to variable="SID"/>
</copy>
</assign>
- </sequence>
- </if>
- <!-- If no appropriate catgeory was found, create one -->
- <if>
- <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition>
- <sequence name="addTestCategory">
<assign name="prepareAddCategory">
<copy>
<from variable="SID"/>
@@ -217,7 +388,7 @@
<from>
<literal>
<Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat">
- <Title>test</Title>
+ <Title>category1</Title>
<Description>test category</Description>
</Object>
</literal>
@@ -225,7 +396,7 @@
<to variable="CategoryXML"/>
</copy>
</assign>
-
+
<!-- Render XML to string -->
<assign name="marshalCategoryXML">
<copy>
@@ -244,105 +415,11 @@
</sxt:log>
</sxt:trace>
</invoke>
-
- <!-- Set RefId -->
- <assign name="setRefId">
- <copy>
- <from>$AddObjectOut.ref_id</from>
- <to variable="CategoryRefId"/>
- </copy>
- </assign>
</sequence>
- </if>
- </sequence>
- </scope>
-<!--
- <forEach name="SearchForCategoryInResult" parallel="no" counterName="ObjectCounter">
- <startCounterValue>1</startCounterValue>
- <finalCounterValue>$ObjectsXML/object[.]</finalCounterValue>
- <completionCondition>
- <branches>6</branches>
- </completionCondition>
- <scope name="Scope1">
- <assign name="Assign1"/>
- </scope>
- </forEach>
--->
- <!-- Initialize course xml skeleton -->
- <assign name="initializeCourseXML">
- <copy>
- <from>
- <literal>
- <Course xmlns="http://cse.campussource.de/schema/ilias/course">
- <MetaData xmlns="http://cse.campussource.de/schema/ilias/course">
- <General>
- <Title Language="en">test3</Title>
- <Language Language="en">en</Language>
- <Description Language="en">bpel test2</Description>
- </General>
- </MetaData>
- </Course>
- </literal>
- </from>
- <to>$CourseXML</to>
- </copy>
- </assign>
+ </scope>
+ </onMessage>
+ </pick>
- <!-- Set relevant course data -->
- <assign name="setCourseData">
- <copy>
-<!--
- <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from>
--->
- <from>'test6'</from>
- <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to>
- </copy>
-<!--
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from>
- <to>$CourseXML/MetaData/General/Title/@Language</to>
- </copy>
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from>
- <to>$CourseXML/MetaData/General/Language[0]/@Language</to>
- </copy>
--->
- </assign>
-
- <!-- Set all parts for addCourse call -->
- <assign name="prepareAddCourse">
- <!-- Set SID -->
- <copy>
- <from variable="SID"/>
- <to variable="AddCourseIn" part="sid"/>
- </copy>
- <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) -->
- <copy>
- <from variable="CategoryRefId"/>
- <to variable="AddCourseIn" part="target_id"/>
- </copy>
- <!-- Set CourseXML (as string) -->
- <copy>
- <from>sxxf:doMarshal($CourseXML)</from>
- <to variable="AddCourseIn" part="crs_xml"/>
- </copy>
- </assign>
-
- <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration"
- portType="tns:ILIASSoapWebservicePortType"
- inputVariable="AddCourseIn"
- outputVariable="AddCourseOut">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Adding Course (refId: ', $AddCourseIn.target_id, ', xml: ', $AddCourseIn.crs_xml, ')')</from>
- </sxt:log>
-
- <sxt:log level="info" location="onComplete">
- <from>concat('*** Result of addCourse: ', $AddCourseOut.course_id)</from>
- </sxt:log>
- </sxt:trace>
- </invoke>
-
<assign name="prepareLogout">
<copy>
<from variable="SID"/>
Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml (rev 0)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml 2009-05-04 14:50:27 UTC (rev 207)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Course PUBLIC "-//ILIAS//DTD Course//EN" "http://localhost/ilias3/xml/ilias_course_3_8.dtd">
+ <!--
+ Document : ilias-course-real.xml
+ Created on : 29. April 2009, 10:07
+ Author : pete
+ Description:
+ Purpose of the document follows.
+-->
+<!--Export of ILIAS course 179 of installation 0 (refId [used for export] = 43).-->
+<Course exportVersion="2" id="il_0_crs_179">
+ <MetaData>
+ <General Structure="Hierarchical">
+ <Identifier Catalog="ILIAS" Entry="il__crs_179"/>
+ <Title Language="en">test - manual</Title>
+ <Language Language="en"/>
+ <Description Language="en">test - manual</Description>
+ <Keyword Language="en"/>
+ </General>
+ </MetaData>
+ <AdvancedMetaData></AdvancedMetaData>
+ <Admin id="il_0_usr_6" notification="No" passed="No"></Admin>
+ <Settings>
+ <Availability>
+ <NotAvailable/>
+ </Availability>
+ <Syllabus></Syllabus>
+ <ImportantInformation></ImportantInformation>
+ <Contact>
+ <Name></Name>
+ <Responsibility></Responsibility>
+ <Phone></Phone>
+ <Email></Email>
+ <Consultation></Consultation>
+ </Contact>
+ <Registration registrationType="Direct" maxMembers="0" notification="Yes" waitingList="Yes">
+ <Unlimited/>
+ </Registration>
+ <Sort type="Manual"/>
+ <Archive Access="Disabled">
+ <Start>1240992000</Start>
+ <End>1323644400</End>
+ </Archive>
+ </Settings>
+</Course>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|