|
From: <pka...@us...> - 2009-08-02 17:45:54
|
Revision: 418
http://cse-ip.svn.sourceforge.net/cse-ip/?rev=418&view=rev
Author: pkasprzak
Date: 2009-08-02 17:45:41 +0000 (Sun, 02 Aug 2009)
Log Message:
-----------
* Restructured Adapter
Modified Paths:
--------------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml
Added Paths:
-----------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessAccount.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessAccount.wsdl
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCategory.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCategory.wsdl
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCourse.bpel
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCourse.wsdl
Removed Paths:
-------------
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 17:42:20 UTC (rev 417)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 17:45:41 UTC (rev 418)
@@ -4,10 +4,9 @@
<system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/>
<system systemId="Common/WS-BPEL-ServiceRef.xsd" uri="nb-uri:Common#src/serviceref.xsd"/>
<system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/>
- <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/>
- <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/>
<nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/>
<system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/>
<system systemId="Common/serviceref.xsd" uri="nb-uri:Common#src/serviceref.xsd"/>
<system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/>
+ <system systemId="Common/OutboundAdapter.wsdl" uri="nb-uri:Common#src/OutboundAdapter.wsdl"/>
</catalog>
Deleted: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-08-02 17:42:20 UTC (rev 417)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-08-02 17:45:41 UTC (rev 418)
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name="ILIASClientAdapter" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"
- xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"
- xmlns:ns="http://cse.campussource.de/schema/DataTypes"
- xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
- <types>
- <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter">
- <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="CDDM.xsd"/>
- </xsd:schema>
- </types>
- <message name="ProcessCourseOperationRequest">
- <part name="courseMessage" type="ns:courseMessageType"/>
- </message>
- <message name="ProcessCategoryOperationRequest">
- <part name="categoryMessage" type="ns:categoryMessageType"/>
- </message>
- <message name="ProcessAccountOperationRequest">
- <part name="accountMessage" type="ns:accountMessageType"/>
- </message>
- <portType name="ILIASClientAdapterPortType">
- <operation name="processCourse">
- <input name="input1" message="tns:ProcessCourseOperationRequest"/>
- </operation>
- <operation name="processCategory">
- <input name="input2" message="tns:ProcessCategoryOperationRequest"/>
- </operation>
- <operation name="processAccount">
- <input name="input3" message="tns:ProcessAccountOperationRequest"/>
- </operation>
- </portType>
- <!-- Provide SOAP-Binding so that process can be tested externally -->
- <binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType">
- <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="processCourse">
- <soap:operation/>
- <input name="input1">
- <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/>
- </input>
- </operation>
- <operation name="processCategory">
- <soap:operation/>
- <input name="input2">
- <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/>
- </input>
- </operation>
- <operation name="processAccount">
- <soap:operation/>
- <input name="input3">
- <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/>
- </input>
- </operation>
- </binding>
- <service name="ILIASClientAdapterService">
- <port name="ILIASClientAdapterPort" binding="tns:ILIASClientAdapterBinding">
- <soap:address location="http://localhost:${HttpDefaultPort}/ILIASClientAdapterService/ILIASClientAdapterPort"/>
- </port>
- </service>
- <plnk:partnerLinkType name="ILIASClientAdapter">
- <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
-In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
-A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
- <plnk:role name="ILIASClientAdapterPortTypeRole" portType="tns:ILIASClientAdapterPortType"/>
- </plnk:partnerLinkType>
-</definitions>
Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel (rev 0)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel 2009-08-02 17:45:41 UTC (rev 418)
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<process name="OutboundAdapter"
+ targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundAdapter"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
+ xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
+ xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
+ xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
+ xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundAdapter"
+ xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2">
+
+ <import namespace="http://cse.campussource.de/wsdl/Common/OutboundAdapter" location="Common/OutboundAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+ <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" location="ProcessCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+ <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" location="ProcessCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+ <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" location="ProcessAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+ <partnerLinks>
+
+ <partnerLink name="ProcessCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" partnerLinkType="tns:ProcessCourse"
+ partnerRole="ProcessCoursePortTypeRole"/>
+
+ <partnerLink name="ProcessCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" partnerLinkType="tns:ProcessCategory"
+ partnerRole="ProcessCategoryPortTypeRole"/>
+
+ <partnerLink name="ProcessAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" partnerLinkType="tns:ProcessAccount"
+ partnerRole="ProcessAccountPortTypeRole"/>
+
+ <partnerLink name="Core" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" partnerLinkType="tns:OutboundAdapter"
+ myRole="OutboundAdapterPortTypeRole"/>
+ </partnerLinks>
+
+ <variables>
+ <variable name="ProcessAccountDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" messageType="tns:ProcessAccountOperationResponse"/>
+ <variable name="ProcessAccountDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" messageType="tns:ProcessAccountOperationRequest"/>
+
+ <variable name="ProcessCategoryDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" messageType="tns:ProcessCategoryOperationResponse"/>
+ <variable name="ProcessCategoryDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" messageType="tns:ProcessCategoryOperationRequest"/>
+
+ <variable name="ProcessCourseDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" messageType="tns:ProcessCourseOperationResponse"/>
+ <variable name="ProcessCourseDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" messageType="tns:ProcessCourseOperationRequest"/>
+
+ <variable name="ProcessAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessAccountOperationResponse"/>
+ <variable name="ProcessCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCategoryOperationResponse"/>
+
+ <variable name="ProcessCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationResponse"/>
+ <variable name="ProcessAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessAccountOperationRequest"/>
+
+ <variable name="ProcessCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCategoryOperationRequest"/>
+ <variable name="ProcessCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationRequest"/>
+ </variables>
+
+ <sequence>
+ <pick name="Pick1" createInstance="yes">
+
+ <!-- Delegate course processing -->
+ <onMessage partnerLink="Core" operation="processCourse"
+ xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessCourseIn">
+ <sequence name="Sequence1">
+
+ <assign name="prepareProcessCourse">
+ <copy>
+ <from variable="ProcessCourseIn" part="courseMessage"/>
+ <to variable="ProcessCourseDelegateIn" part="courseMessage"/>
+ </copy>
+ </assign>
+
+ <invoke name="processCourse" partnerLink="ProcessCourse"
+ operation="processCourse"
+ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse"
+ portType="tns:ProcessCoursePortType"
+ inputVariable="ProcessCourseDelegateIn"
+ outputVariable="ProcessCourseDelegateOut"/>
+
+ <assign name="prepareReplyProcessCourse">
+ <copy>
+ <from variable="ProcessCourseDelegateOut" part="eventReply"/>
+ <to variable="ProcessCourseOut" part="eventReply"/>
+ </copy>
+ </assign>
+
+ <reply name="replyProcessCourse" partnerLink="Core"
+ operation="processCourse"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessCourseOut"/>
+ </sequence>
+
+ </onMessage>
+
+ <!-- Delegate category processing -->
+ <onMessage partnerLink="Core" operation="processCategory"
+ xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessCategoryIn">
+ <sequence name="Sequence2">
+
+ <assign name="prepareProcessCategory">
+ <copy>
+ <from variable="ProcessCategoryIn" part="categoryMessage"/>
+ <to variable="ProcessCategoryDelegateIn" part="categoryMessage"/>
+ </copy>
+ </assign>
+
+ <invoke name="processCategory" partnerLink="ProcessCategory"
+ operation="processCategory"
+ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory"
+ portType="tns:ProcessCategoryPortType"
+ inputVariable="ProcessCategoryDelegateIn"
+ outputVariable="ProcessCategoryDelegateOut"/>
+
+ <assign name="prepareReplyProcessCategory">
+ <copy>
+ <from variable="ProcessCategoryDelegateOut" part="eventReply"/>
+ <to variable="ProcessCategoryOut" part="eventReply"/>
+ </copy>
+ </assign>
+
+ <reply name="replyProcessCategory" partnerLink="Core"
+ operation="processCategory"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessCategoryOut"/>
+ </sequence>
+
+ </onMessage>
+
+ <!-- Delegate account processing -->
+ <onMessage partnerLink="Core" operation="processAccount"
+ xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessAccountIn">
+ <sequence name="Sequence3">
+
+ <assign name="prepareProcessAccount">
+ <copy>
+ <from variable="ProcessAccountIn" part="accountMessage"/>
+ <to variable="ProcessAccountDelegateIn" part="accountMessage"/>
+ </copy>
+ </assign>
+
+ <invoke name="processAccount" partnerLink="ProcessAccount"
+ operation="processAccount"
+ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount"
+ portType="tns:ProcessAccountPortType"
+ inputVariable="ProcessAccountDelegateIn"
+ outputVariable="ProcessAccountDelegateOut"/>
+
+ <assign name="prepareReplyProcessAccount">
+ <copy>
+ <from variable="ProcessAccountDelegateOut" part="eventReply"/>
+ <to variable="ProcessAccountOut" part="eventReply"/>
+ </copy>
+ </assign>
+
+ <reply name="replyProcessAccount" partnerLink="Core"
+ operation="processAccount"
+ portType="tns:OutboundAdapterPortType"
+ variable="ProcessAccountOut"/>
+ </sequence>
+
+ </onMessage>
+ </pick>
+ </sequence>
+</process>
Deleted: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel
===================================================================
--- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-08-02 17:42:20 UTC (rev 417)
+++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-08-02 17:45:41 UTC (rev 418)
@@ -1,949 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<process name="OutboundClientAdapter"
- targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter"
- xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
- xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
- xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"
- xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
- xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling"
- xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"
- xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
- xmlns:il_crs="http://cse.campussource.de/schema/ilias/course"
- xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects"
- xmlns:dt="http://cse.campussource.de/schema/DataTypes"
- xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter"
- xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory"
- xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"
- xmlns:ns2="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse">
-
- <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" location="Common/WS-Addressing.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
- <import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" location="Common/WS-BPEL-ServiceRef.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
- <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
- <import namespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" location="ILIASClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/schema/ilias/course" location="ilias-course.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
- <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" location="ObjectProcessor/ReplyProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" location="ResolveEPR.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" location="AddAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" location="DeleteAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" location="UpdateAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
- <partnerLinks>
- <partnerLink name="ResolveEPR" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" partnerLinkType="tns:ResolveEPR"
- partnerRole="ResolveEPRPortTypeRole"/>
- <partnerLink name="Login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login"
- partnerRole="LoginPortTypeRole"/>
- <partnerLink name="AddCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse"
- partnerRole="AddCoursePortTypeRole"/>
- <partnerLink name="UpdateCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse"
- partnerRole="UpdateCoursePortTypeRole"/>
- <partnerLink name="DeleteCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse"
- partnerRole="DeleteCoursePortTypeRole"/>
- <partnerLink name="AddCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory"
- partnerRole="AddCategoryPortTypeRole"/>
- <partnerLink name="UpdateCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory"
- partnerRole="UpdateCategoryPortTypeRole"/>
- <partnerLink name="DeleteCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory"
- partnerRole="DeleteCategoryPortTypeRole"/>
- <partnerLink name="AddAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" partnerLinkType="tns:AddAccount" partnerRole="AddAccountPortTypeRole"/>
- <partnerLink name="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" partnerLinkType="tns:UpdateAccount" partnerRole="UpdateAccountPortTypeRole"/>
- <partnerLink name="DeleteAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" partnerLinkType="tns:DeleteAccount" partnerRole="DeleteAccountPortTypeRole"/>
- <partnerLink name="ReplyProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" partnerLinkType="tns:ReplyProcessor"
- partnerRole="ReplyProcessorPortTypeRole"/>
- <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType"
- partnerRole="ILIASSoapWebserviceRole"/>
- <partnerLink name="ILIASAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" partnerLinkType="tns:ILIASClientAdapter"
- myRole="ILIASClientAdapterPortTypeRole"/>
- </partnerLinks>
-
- <variables>
- <!-- Messages -->
- <variable name="ProcessAccountIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessAccountOperationRequest"/>
- <variable name="ResolveEPROut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRResponse"/>
- <variable name="ResolveEPRIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRRequest"/>
- <variable name="ProcessReplyIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" messageType="tns:processReplyRequest"/>
- <variable name="DeleteCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/>
- <variable name="DeleteCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/>
- <variable name="UpdateCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryResponse"/>
- <variable name="UpdateCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryRequest"/>
- <variable name="AddCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/>
- <variable name="AddCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/>
- <variable name="DeleteCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/>
- <variable name="DeleteCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/>
- <variable name="UpdateCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/>
- <variable name="UpdateCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/>
- <variable name="AddCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/>
- <variable name="AddCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/>
- <variable name="LoginOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/>
- <variable name="LoginIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" messageType="tns:loginRequest"/>
- <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="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/>
- <variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/>
-
- <!-- Ilias session id -->
- <variable name="SID" type="xsd:string"/>
-
- <!-- Ilias EndpointReference -->
- <variable name="IliasEPR" element="sref:service-ref"/>
-
- <!-- Reply vars -->
- <variable name="STATUS_SUCCESS" type="xsd:string" />
- <variable name="STATUS_FAILURE" type="xsd:string"/>
-
- <variable name="ObjectBusId" type="xsd:int"/>
- <variable name="ObjectClientId" type="xsd:string"/>
- <variable name="ReplyStatus" type="dt:statusType"/>
-
- <!-- For testing -->
- <variable name="ReplyXML" type="xsd:string"/>
-
- <!--Fault Variable, if Operation from inkoming msg is not supportet -->
- <variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/>
-
- </variables>
-
- <sequence>
- <scope name="MainScope">
- <faultHandlers>
-
- <!--Handling SystemFault -->
- <catch faultVariable="Fault" faultMessageType="fltns:systemFaultMessage">
- <assign>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Handling SystemFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$STATUS_FAILURE</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </catch>
-
- <!--Handling UnknownFault -->
- <catch faultVariable="Fault" faultMessageType="fltns:unknownFaultMessage">
- <assign>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Handling UnknownFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$STATUS_FAILURE</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </catch>
-
- <!--Handling IliasFault -->
- <catch faultVariable="Fault" faultMessageType="fltns:iliasFaultMessage">
- <assign>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Handling IliasFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$STATUS_FAILURE</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </catch>
-
- <!--Handling unspecific Faults -->
- <catchAll>
- <assign>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Handling generic Fault', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$STATUS_FAILURE</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </catchAll>
-
- </faultHandlers>
-
- <pick name="processObjects" createInstance="yes" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter">
-
- <!-- Process courses -->
- <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"
- portType="tns:ILIASClientAdapterPortType"
- variable="ProcessCourseOperationIn">
-
- <scope name="CourseScope">
- <sequence>
-
- <assign name="setSystem">
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:target</from>
- <to>$ResolveEPRIn.system</to>
- </copy>
- </assign>
-
- <!-- Determine Ilias Endpoint -->
- <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR"
- portType="tns:ResolveEPRPortType"
- inputVariable="ResolveEPRIn"
- outputVariable="ResolveEPROut"/>
-
- <assign name="saveIliasEPR">
- <copy>
- <from>$ResolveEPROut.EPR</from>
- <to>$IliasEPR</to>
- </copy>
- </assign>
-
- <assign name="prepareLoginForCourses">
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:target</from>
- <to>$LoginIn.system</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$LoginIn.EPR</to>
- </copy>
- </assign>
-
- <invoke name="loginForCourses" partnerLink="Login" operation="login"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login"
- portType="tns:LoginPortType"
- inputVariable="LoginIn"
- outputVariable="LoginOut"/>
- <assign name="initCourseProcessing">
- <copy>
- <from variable="LoginOut" part="SID"/>
- <to variable="SID"/>
- </copy>
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:busId</from>
- <to>$ObjectBusId</to>
- </copy>
- <copy ignoreMissingFromData="yes">
- <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:attribute[dt:name = 'clientId']/dt:value</from>
- <to>$ObjectClientId</to>
- </copy>
-
- <!-- Init constants (better alternatives?) -->
- <copy>
- <from>'SUCCESS'</from>
- <to>$STATUS_SUCCESS</to>
- </copy>
- <copy>
- <from>'FAILURE'</from>
- <to>$STATUS_FAILURE</to>
- </copy>
- </assign>
-
- <!-- Branch on different events -->
- <if>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from>
- </sxt:log>
- </sxt:trace>
-
- <!-- Event == "CREATE" -->
- <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'CREATE'</condition>
- <sequence>
- <assign name="prepareAddCourse">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** addCourse()', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:course</from>
- <to>$AddCourseIn.course</to>
- </copy>
- <copy>
- <from>$SID</from>
- <to>$AddCourseIn.SID</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$AddCourseIn.EPR</to>
- </copy>
- </assign>
- <invoke name="addCourse" partnerLink="AddCourse" operation="addCourse"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse"
- portType="tns:AddCoursePortType"
- inputVariable="AddCourseIn"
- outputVariable="AddCourseOut"/>
- <assign name="saveCourseId">
- <copy>
- <from>string($AddCourseOut.courseId)</from>
- <to>$ObjectClientId</to>
- </copy>
- </assign>
- <assign name="addCourseSuccess">
- <copy>
- <from>$STATUS_SUCCESS</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </sequence>
- <elseif>
- <!-- Event == "UPDATE" -->
- <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'UPDATE'</condition>
- <sequence>
- <assign name="prepareUpdateCourse">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** updateCourse()', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:course</from>
- <to>$UpdateCourseIn.course</to>
- </copy>
- <copy>
- <from>$SID</from>
- <to>$UpdateCourseIn.SID</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$UpdateCourseIn.EPR</to>
- </copy>
- </assign>
- <invoke name="updateCourse" partnerLink="UpdateCourse" operation="updateCourse"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse"
- portType="tns:UpdateCoursePortType"
- inputVariable="UpdateCourseIn"
- outputVariable="UpdateCourseOut"/>
- <assign name="updateCourseSuccess">
- <copy>
- <from>$STATUS_SUCCESS</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
- </sequence>
- </elseif>
- <elseif>
- <!-- Event == "DELETE" -->
- <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'DELETE'</condition>
- <sequence>
- <assign name="prepareDeleteCourse">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** deleteCourse()', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$ProcessCourseOperationIn.courseMessage/dt:course</from>
- <to>$DeleteCourseIn.course</to>
- </copy>
- <copy>
- <from>$SID</from>
- <to>$DeleteCourseIn.SID</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$DeleteCourseIn.EPR</to>
- </copy>
- </assign>
- <invoke name="deleteCourse" partnerLink="DeleteCourse" operation="deleteCourse"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"
- portType="tns:DeleteCoursePortType"
- inputVariable="DeleteCourseIn"
- outputVariable="DeleteCourseOut"/>
-
- <assign name="deleteCourseSuccess">
- <copy>
- <from>$STATUS_SUCCESS</from>
- <to>$ReplyStatus</to>
- </copy>
- </assign>
-
- </sequence>
- </elseif>
- <else>
- <!-- Unrecognized Operation: throw fault! -->
- <sequence >
-
- <!--Set Fault Data -->
- <assign name="PrepareForThrowFaultOperationNotFounded">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Unknown event!', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>concat('This Operation is unknown: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from>
- <to variable="SystemFaultOperationNotFounded" part="cause"/>
- </copy>
- <copy>
- <from>'OutboundClientAdapter.bpel, CourseScope'</from>
- <to variable="SystemFaultOperationNotFounded" part="process"/>
- </copy>
- <copy>
- <from>sxxf:doMarshal($ProcessCourseOperationIn.courseMessage)</from>
- <to variable="SystemFaultOperationNotFounded" part="context"/>
- </copy>
- </assign>
- <throw name="ThrowFaultOperationNotFounded" faultVariable="SystemFaultOperationNotFounded"
- faultName="sxeh:systemFault"/>
- </sequence>
- </else>
- </if>
- </sequence>
- </scope>
-
- </onMessage>
-
- <!-- Process categories -->
- <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"
- portType="tns:ILIASClientAdapterPortType"
- variable="ProcessCategoryOperationIn">
- <scope name="CategoryScope">
- <sequence>
- <assign name="setSystem">
- <copy>
- <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from>
- <to>$ResolveEPRIn.system</to>
- </copy>
- </assign>
-
- <!-- Determine Ilias Endpoint -->
- <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR"
- portType="tns:ResolveEPRPortType"
- inputVariable="ResolveEPRIn"
- outputVariable="ResolveEPROut"/>
-
- <assign name="saveIliasEPR">
- <copy>
- <from>$ResolveEPROut.EPR</from>
- <to>$IliasEPR</to>
- </copy>
- </assign>
-
- <assign name="prepareLoginForCategories">
- <copy>
- <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from>
- <to>$LoginIn.system</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$LoginIn.EPR</to>
- </copy>
- </assign>
-
- <invoke name="loginForCategories" partnerLink="Login" operation="login"
- xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login"
- portType="tns:LoginPortType"
- inputVariable="LoginIn"
- outputVariable="LoginOut"/>
- <assign name="initCategoryProcessing">
- <copy>
- <from variable="LoginOut" part="SID"/>
- <to variable="SID"/>
- </copy>
- <copy>
- <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:busId</from>
- <to>$ObjectBusId</to>
- </copy>
- <copy ignoreMissingFromData="yes">
- <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:attribute[dt:name = 'clientId']/dt:value</from>
- <to>$ObjectClientId</to>
- </copy>
-
- <!-- Init constants (better alternatives?) -->
- <copy>
- <from>'SUCCESS'</from>
- <to>$STATUS_SUCCESS</to>
- </copy>
- <copy>
- <from>'FAILURE'</from>
- <to>$STATUS_FAILURE</to>
- </copy>
- </assign>
-
- <!-- Branch on different events -->
- <if>
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/dt:event)</from>
- </sxt:log>
- </sxt:trace>
-
- <!-- Event == "CREATE" -->
- <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'CREATE'</condition>
- <sequence>
- <assign name="prepareAddCategory">
- <sxt:trace>
- <sxt:log level="info" location="onStart">
- <from>concat('*** addCategory()', '')</from>
- </sxt:log>
- </sxt:trace>
- <copy>
- <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from>
- <to>$AddCategoryIn.category</to>
- </copy>
- <copy>
- <from>$SID</from>
- <to>$AddCategoryIn.SID</to>
- </copy>
- <copy>
- <from>$IliasEPR</from>
- <to>$AddCategoryIn.EPR</to>
- </copy>
- </assign>
- <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory"
- xmlns:tns="http://cse.campu...
[truncated message content] |