[Cse-ip-svn-commits] SF.net SVN: cse-ip:[188]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-04-27 21:30:50
|
Revision: 188 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=188&view=rev Author: pkasprzak Date: 2009-04-27 21:30:41 +0000 (Mon, 27 Apr 2009) Log Message: ----------- * Integrated ilias course xsd * Adding a course works half way (the added course is only visible in ilias' administration view and, more seriously, xml cannot be changed due to "ElementNotFoundInComplexType-Exception" [working on it]) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-27 21:25:21 UTC (rev 187) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-27 21:30:41 UTC (rev 188) @@ -9,15 +9,19 @@ 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:il_crs="http://cse.campussource.de/schema/ilias/course" xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess"> <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"/> + <partnerLinks> <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> <variable name="AddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> <variable name="AddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> @@ -29,12 +33,13 @@ <!-- ILIAS session id --> <variable name="SID" type="xsd:string"/> <!-- Course description in ILIAS-Format --> -<!-- - <variable name="CourseXML" element=""/> ---> + <variable name="CourseXML" element="il_crs:Course"/> </variables> + <sequence> + <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> @@ -49,6 +54,7 @@ <to variable="LoginIn" part="password"/> </copy> </assign> + <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"> @@ -56,28 +62,53 @@ </sxt:log> </sxt:trace> </invoke> + <assign name="saveSID"> <copy> <from variable="LoginOut" part="sid"/> <to variable="SID"/> </copy> </assign> + + <!-- 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">test2</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="setCourseXML"> + <assign name="setCourseData"> <copy> - <from>$ProcessCourseOperationIn/course/attribute[name = 'title']/value</from> - <to>$CourseXML/MetaData/General/Title</to> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> + <to>$CourseXML/MetaData/General/Title/text()</to> </copy> <copy> - <from>$ProcessCourseOperationIn/course/attribute[name = 'languageISO']/value</from> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> <to>$CourseXML/MetaData/General/Title/@Language</to> </copy> <copy> - <from>$ProcessCourseOperationIn/course/attribute[name = 'languageISO']/value</from> + <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> @@ -90,15 +121,20 @@ <to variable="AddCourseIn" part="target_id"/> </copy> <!-- Set CourseXML (as string) --> -<!-- <copy> + <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"/> ---> + + <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="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.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml 2009-04-27 21:30:41 UTC (rev 188) @@ -0,0 +1,269 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : ilias-course.xml + Created on : April 27, 2009, 4:57 PM + Author : pete + Description: + Purpose of the document follows. +--> + +<ns0:Course xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' + xmlns:ns0='http://cse.campussource.de/schema/ilias/course' + xsi:schemaLocation='http://cse.campussource.de/schema/ilias/course ilias-course.xsd' exportVersion="" id=""> + <MetaData> + <General Structure=""> + <Identifier Catalog="" Entry=""></Identifier> + <Identifier Catalog="" Entry=""></Identifier> + <Identifier Catalog="" Entry=""></Identifier> + <Title Language=""></Title> + <Language Language=""></Language> + <Language Language=""></Language> + <Language Language=""></Language> + <Description Language=""></Description> + <Description Language=""></Description> + <Description Language=""></Description> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + <Coverage Language=""></Coverage> + </General> + <Lifecycle Status=""> + <Version Language=""></Version> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + </Lifecycle> + <Meta-Metadata MetadataScheme="" Language=""> + <Identifier Catalog="" Entry=""></Identifier> + <Identifier Catalog="" Entry=""></Identifier> + <Identifier Catalog="" Entry=""></Identifier> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + <Contribute Role=""> + <Entity></Entity> + <Entity></Entity> + <Entity></Entity> + <Date></Date> + </Contribute> + </Meta-Metadata> + <Technical> + <Format></Format> + <Format></Format> + <Format></Format> + <Size></Size> + <Location Type=""></Location> + <Location Type=""></Location> + <Location Type=""></Location> + <Requirement> + <Type> + <OperatingSystem Name="" MinimumVersion="" MaximumVersion=""></OperatingSystem> + </Type> + </Requirement> + <InstallationRemarks Language=""></InstallationRemarks> + <OtherPlatformRequirements Language=""></OtherPlatformRequirements> + <Duration></Duration> + </Technical> + <Educational InteractivityType="" LearningResourceType="" InteractivityLevel="" SemanticDensity="" IntendedEndUserRole="" Context="" Difficulty=""> + <TypicalAgeRange Language=""></TypicalAgeRange> + <TypicalAgeRange Language=""></TypicalAgeRange> + <TypicalAgeRange Language=""></TypicalAgeRange> + <TypicalLearningTime></TypicalLearningTime> + <Description Language=""></Description> + <Description Language=""></Description> + <Description Language=""></Description> + <Language Language=""></Language> + <Language Language=""></Language> + <Language Language=""></Language> + </Educational> + <Rights Cost="" CopyrightAndOtherRestrictions=""> + <Description Language=""></Description> + </Rights> + <Relation Kind=""> + <Resource> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Description Language=""></Description> + <Description Language=""></Description> + <Description Language=""></Description> + </Resource> + </Relation> + <Relation Kind=""> + <Resource> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Description Language=""></Description> + <Description Language=""></Description> + <Description Language=""></Description> + </Resource> + </Relation> + <Relation Kind=""> + <Resource> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Identifier_ Catalog="" Entry=""></Identifier_> + <Description Language=""></Description> + <Description Language=""></Description> + <Description Language=""></Description> + </Resource> + </Relation> + <Annotation> + <Entity></Entity> + <Date></Date> + <Description Language=""></Description> + </Annotation> + <Annotation> + <Entity></Entity> + <Date></Date> + <Description Language=""></Description> + </Annotation> + <Annotation> + <Entity></Entity> + <Date></Date> + <Description Language=""></Description> + </Annotation> + <Classification Purpose=""> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <Description Language=""></Description> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + </Classification> + <Classification Purpose=""> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <Description Language=""></Description> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + </Classification> + <Classification Purpose=""> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <TaxonPath> + <Source Language=""></Source> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + <Taxon Language="" Id=""></Taxon> + </TaxonPath> + <Description Language=""></Description> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + <Keyword Language=""></Keyword> + </Classification> + </MetaData> + <AdvancedMetaData> + <Value id=""></Value> + <Value id=""></Value> + <Value id=""></Value> + </AdvancedMetaData> + <Admin id="" notification="" passed="" action=""></Admin> + <Admin id="" notification="" passed="" action=""></Admin> + <Admin id="" notification="" passed="" action=""></Admin> + <Tutor id="" notification="" passed="" action=""></Tutor> + <Tutor id="" notification="" passed="" action=""></Tutor> + <Tutor id="" notification="" passed="" action=""></Tutor> + <Member id="" blocked="" passed="" action=""></Member> + <Member id="" blocked="" passed="" action=""></Member> + <Member id="" blocked="" passed="" action=""></Member> + <Subscriber id="" subscriptionTime="" action=""></Subscriber> + <Subscriber id="" subscriptionTime="" action=""></Subscriber> + <Subscriber id="" subscriptionTime="" action=""></Subscriber> + <WaitingList id="" subscriptionTime="" action=""></WaitingList> + <WaitingList id="" subscriptionTime="" action=""></WaitingList> + <WaitingList id="" subscriptionTime="" action=""></WaitingList> + <Settings> + <Availability> + <NotAvailable></NotAvailable> + </Availability> + <Syllabus></Syllabus> + <ImportantInformation></ImportantInformation> + <Contact> + <Name></Name> + <Responsibility></Responsibility> + <Phone></Phone> + <Email></Email> + <Consultation></Consultation> + </Contact> + <Registration registrationType="" maxMembers="" notification="" waitingList=""> + <Disabled></Disabled> + <Password></Password> + </Registration> + <Sort type=""></Sort> + <Archive Access=""> + <Start></Start> + <End></End> + </Archive> + </Settings> + +</ns0:Course> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd 2009-04-27 21:30:41 UTC (rev 188) @@ -0,0 +1,1913 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<xs:schema version="1.0" targetNamespace="http://cse.campussource.de/schema/ilias/course" xmlns:tns="http://cse.campussource.de/schema/ilias/course" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + + <xs:element name="Admin"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="notification" type="xs:string"/> + <xs:attribute name="passed" type="xs:string"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="AdvancedMetaData"> + <xs:complexType> + <xs:sequence> + <xs:element name="Value" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="id" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="Annotation"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="Archive"> + <xs:complexType> + <xs:sequence> + <xs:element name="Start" type="xs:string"/> + <xs:element name="End" type="xs:string"/> + </xs:sequence> + <xs:attribute name="Access" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Availability"> + <xs:complexType> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="NotAvailable"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="Unlimited"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="TemporarilyAvailable"> + <xs:complexType> + <xs:sequence> + <xs:element name="Start" type="xs:string"/> + <xs:element name="End" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:choice> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="Browser"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Name" type="xs:string" use="required"/> + <xs:attribute name="MinimumVersion" type="xs:string"/> + <xs:attribute name="MaximumVersion" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="Classification"> + <xs:complexType> + <xs:sequence> + <xs:element name="TaxonPath" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Source"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Taxon" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + <xs:attribute name="Id" type="xs:ID"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Keyword" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Purpose" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Contact"> + <xs:complexType> + <xs:sequence> + <xs:element name="Name" type="xs:string" minOccurs="0"/> + <xs:element name="Responsibility" type="xs:string" minOccurs="0"/> + <xs:element name="Phone" type="xs:string" minOccurs="0"/> + <xs:element name="Email" type="xs:string" minOccurs="0"/> + <xs:element name="Consultation" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="Contribute"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity" maxOccurs="unbounded"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + </xs:sequence> + <xs:attribute name="Role" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Course"> + <xs:complexType> + <xs:sequence> + <xs:element name="MetaData" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="General"> + <xs:complexType> + <xs:sequence> + <xs:element name="Identifier" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:ID" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Title"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Language" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Description" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Keyword" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Coverage" minOccurs="0"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Structure" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Lifecycle" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Version"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Contribute" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity" maxOccurs="unbounded"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + </xs:sequence> + <xs:attribute name="Role" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Status" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Meta-Metadata" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Identifier" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:ID" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Contribute" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity" maxOccurs="unbounded"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + </xs:sequence> + <xs:attribute name="Role" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="MetadataScheme" type="xs:string"/> + <xs:attribute name="Language" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Technical" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Format" minOccurs="0" maxOccurs="unbounded"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Size" type="xs:string" minOccurs="0"/> + <xs:element name="Location" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Type" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <xs:element name="Requirement"> + <xs:complexType> + <xs:sequence> + <xs:element name="Type"> + <xs:complexType> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="OperatingSystem"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Name" type="xs:string" use="required"/> + <xs:attribute name="MinimumVersion" type="xs:string"/> + <xs:attribute name="MaximumVersion" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Browser"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Name" type="xs:string" use="required"/> + <xs:attribute name="MinimumVersion" type="xs:string"/> + <xs:attribute name="MaximumVersion" type="xs:string"/> + </xs:complexType> + </xs:element> + </xs:choice> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="OrComposite"> + <xs:complexType> + <xs:sequence> + <xs:element name="Requirement" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Type"> + <xs:complexType> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="OperatingSystem"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Name" type="xs:string" use="required"/> + <xs:attribute name="MinimumVersion" type="xs:string"/> + <xs:attribute name="MaximumVersion" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Browser"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Name" type="xs:string" use="required"/> + <xs:attribute name="MinimumVersion" type="xs:string"/> + <xs:attribute name="MaximumVersion" type="xs:string"/> + </xs:complexType> + </xs:element> + </xs:choice> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:choice> + <xs:element name="InstallationRemarks" minOccurs="0"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="OtherPlatformRequirements" minOccurs="0"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Duration" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Educational" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="TypicalAgeRange" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="TypicalLearningTime" type="xs:string"/> + <xs:element name="Description" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Language" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="InteractivityType" type="xs:string" use="required"/> + <xs:attribute name="LearningResourceType" type="xs:string" use="required"/> + <xs:attribute name="InteractivityLevel" type="xs:string" use="required"/> + <xs:attribute name="SemanticDensity" type="xs:string" use="required"/> + <xs:attribute name="IntendedEndUserRole" type="xs:string" use="required"/> + <xs:attribute name="Context" type="xs:string" use="required"/> + <xs:attribute name="Difficulty" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Rights" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Cost" type="xs:string" use="required"/> + <xs:attribute name="CopyrightAndOtherRestrictions" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Relation" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Resource"> + <xs:complexType> + <xs:sequence> + <xs:element name="Identifier_" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:IDREF"/> + </xs:complexType> + </xs:element> + <xs:element name="Description" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Kind" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Annotation" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Classification" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="TaxonPath" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Source"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Taxon" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + <xs:attribute name="Id" type="xs:ID"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Keyword" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Purpose" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="AdvancedMetaData" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Value" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="id" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Admin" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="notification" type="xs:string"/> + <xs:attribute name="passed" type="xs:string"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Tutor" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="notification" type="xs:string" use="required"/> + <xs:attribute name="passed" type="xs:string" use="required"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Member" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="blocked" type="xs:string"/> + <xs:attribute name="passed" type="xs:string"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Subscriber" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="subscriptionTime" type="xs:string" use="required"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="WaitingList" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="id" type="xs:string" use="required"/> + <xs:attribute name="subscriptionTime" type="xs:string" use="required"/> + <xs:attribute name="action" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Settings" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Availability" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="NotAvailable"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="Unlimited"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="TemporarilyAvailable"> + <xs:complexType> + <xs:sequence> + <xs:element name="Start" type="xs:string"/> + <xs:element name="End" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:choice> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Syllabus" type="xs:string" minOccurs="0"/> + <xs:element name="ImportantInformation" type="xs:string" minOccurs="0"/> + <xs:element name="Contact" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Name" type="xs:string" minOccurs="0"/> + <xs:element name="Responsibility" type="xs:string" minOccurs="0"/> + <xs:element name="Phone" type="xs:string" minOccurs="0"/> + <xs:element name="Email" type="xs:string" minOccurs="0"/> + <xs:element name="Consultation" type="xs:string" minOccurs="0"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="Registration" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:choice maxOccurs="unbounded"> + <xs:element name="Disabled"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="Unlimited"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="TemporarilyAvailable"> + <xs:complexType> + <xs:sequence> + <xs:element name="Start" type="xs:string"/> + <xs:element name="End" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:choice> + <xs:element name="Password" type="xs:string" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="registrationType" type="xs:string"/> + <xs:attribute name="maxMembers" type="xs:string"/> + <xs:attribute name="notification" type="xs:string"/> + <xs:attribute name="waitingList" type="xs:string"/> + </xs:complexType> + </xs:element> + <xs:element name="Sort" minOccurs="0"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="type" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Archive" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="Start" type="xs:string"/> + <xs:element name="End" type="xs:string"/> + </xs:sequence> + <xs:attribute name="Access" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="exportVersion" type="xs:string" use="required"/> + <xs:attribute name="id" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="Coverage"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + + <xs:element name="Description"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + + <xs:element name="Disabled"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + + <xs:element name="Educational"> + <xs:complexType> + <xs:sequence> + <xs:element name="TypicalAgeRange" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="TypicalLearningTime" type="xs:string"/> + <xs:element name="Description" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Language" minOccurs="0" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="InteractivityType" type="xs:string" use="required"/> + <xs:attribute name="LearningResourceType" type="xs:string" use="required"/> + <xs:attribute name="InteractivityLevel" type="xs:string" use="required"/> + <xs:attribute name="SemanticDensity" type="xs:string" use="required"/> + <xs:attribute name="IntendedEndUserRole" type="xs:string" use="required"/> + <xs:attribute name="Context" type="xs:string" use="required"/> + <xs:attribute name="Difficulty" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Entity"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + + <xs:element name="Format"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + + <xs:element name="General"> + <xs:complexType> + <xs:sequence> + <xs:element name="Identifier" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:ID" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Title"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Language" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + <xs:element name="Description" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Keyword" maxOccurs="unbounded"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Coverage" minOccurs="0"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="Structure" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Identifier"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:ID" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Identifier_"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Catalog" type="xs:string"/> + <xs:attribute name="Entry" type="xs:IDREF"/> + </xs:complexType> + </xs:element> + + <xs:element name="InstallationRemarks"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + + <xs:element name="Keyword"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + + <xs:element name="Language"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Lifecycle"> + <xs:complexType> + <xs:sequence> + <xs:element name="Version"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="Language" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + <xs:element name="Contribute" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="Entity" maxOccurs="unbounded"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + <xs:element name="Date" type="xs:string"/> + ... [truncated message content] |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[200]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-05-02 10:27:35
|
Revision: 200 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=200&view=rev Author: pkasprzak Date: 2009-05-02 10:27:28 +0000 (Sat, 02 May 2009) Log Message: ----------- * Add new courses under "test"-category * If "test"-category does not exist, create one * Demonstrates how to deal with most problems of the ilias' ws interface (no namespaces set, invalid xml, etc.) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle_output.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xsd trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/setObjectsNS.xsl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-30 19:18:59 UTC (rev 199) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-02 10:27:28 UTC (rev 200) @@ -3,6 +3,7 @@ name="OutboundClientAdapter" targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess" 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" @@ -10,12 +11,14 @@ 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:il_crs="http://cse.campussource.de/schema/ilias/course" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess"> <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"/> <partnerLinks> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> @@ -23,6 +26,11 @@ </partnerLinks> <variables> + <!-- Messages --> + <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"/> + <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> <variable name="AddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> <variable name="AddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> <variable name="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/> @@ -30,10 +38,19 @@ <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 session id --> + + <!-- Ilias --> + + <!-- Ilias session id --> <variable name="SID" type="xsd:string"/> - <!-- Course description in ILIAS-Format --> + + <!-- Course description in Ilias-Format --> <variable name="CourseXML" element="il_crs:Course"/> + + <!-- RefId of the category used adding courses to --> + <variable name="CategoryRefId" type="xsd:integer"/> + + </variables> <sequence> @@ -55,7 +72,10 @@ </copy> </assign> - <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="LoginIn" outputVariable="LoginOut"> + <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> @@ -70,6 +90,184 @@ </copy> </assign> + <!-- 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"/> + + <!-- Result of object search for title --> + <variable name="ObjectsRawXML" element="il_objs:Objects"/> + <variable name="ObjectsXML" element="il_objs:Objects"/> + + </variables> + + <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> + + <!-- 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> +--> + </invoke> + + <!-- 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> +<!-- + <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> @@ -91,14 +289,13 @@ </assign> <!-- Set relevant course data --> - <assign name="setCourseData"> <copy> <!-- <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> --> - <from>'test5'</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title</to> + <from>'test6'</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> </copy> <!-- <copy> @@ -121,7 +318,7 @@ </copy> <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> <copy> - <from>1</from> + <from variable="CategoryRefId"/> <to variable="AddCourseIn" part="target_id"/> </copy> <!-- Set CourseXML (as string) --> @@ -131,8 +328,15 @@ </copy> </assign> - <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="AddCourseIn" outputVariable="AddCourseOut"> + <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> @@ -145,7 +349,10 @@ <to variable="LogoutIn" part="sid"/> </copy> </assign> - <invoke name="logout" partnerLink="ILIAS" operation="logout" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="LogoutIn" outputVariable="LogoutOut"> + <invoke name="logout" partnerLink="ILIAS" operation="logout" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="LogoutIn" + outputVariable="LogoutOut"> <sxt:trace> <sxt:log level="info" location="onComplete"> <from>concat('*** Result of logout: ', $LogoutOut.success)</from> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd 2009-04-30 19:18:59 UTC (rev 199) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd 2009-05-02 10:27:28 UTC (rev 200) @@ -2,8 +2,11 @@ <xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://cse.campussource.de/schema/ilias/course" - targetNamespace="http://cse.campussource.de/schema/ilias/course"> + targetNamespace="http://cse.campussource.de/schema/ilias/course" + elementFormDefault="qualified" + attributeFormDefault="qualified"> + <xs:element name="Admin"> <xs:complexType> <xs:sequence/> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle.xml 2009-05-02 10:27:28 UTC (rev 200) @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Objects PUBLIC "-//ILIAS//DTD ILIAS Repositoryobjects//EN" "http://localhost/ilias3/xml/ilias_object_3_10.dtd"> +<!--Export of ILIAS objects--> +<Objects> + <Object type="crs" obj_id="175"> + <Title>test course 1</Title> + <Description>test course description</Description> + <Owner>6</Owner> + <CreateDate>2009-04-30 11:42:16</CreateDate> + <LastUpdate>2009-04-30 11:42:47</LastUpdate> + <ImportId></ImportId> + <References ref_id="41" parent_id="40" accessInfo="granted"> + <Path> + <Element ref_id="1" type="root">Repository</Element> + <Element ref_id="40" type="cat">test</Element> + </Path> + </References> + </Object> + <Object type="cat" obj_id="174"> + <Title>test</Title> + <Description>test category</Description> + <Owner>6</Owner> + <CreateDate>2009-04-30 11:41:37</CreateDate> + <LastUpdate>2009-04-30 11:41:37</LastUpdate> + <ImportId></ImportId> + <References ref_id="40" parent_id="1" accessInfo="granted"> + <Path> + <Element ref_id="1" type="root">Repository</Element> + </Path> + </References> + </Object> + <Object type="crs" obj_id="168"> + <Title>test2</Title> + <Description>bpel test2</Description> + <Owner>6</Owner> + <CreateDate>2009-04-28 00:31:35</CreateDate> + <LastUpdate>2009-04-28 00:31:35</LastUpdate> + <ImportId></ImportId> + <References ref_id="38" parent_id="1" accessInfo="granted"> + <Path> + <Element ref_id="1" type="root">Repository</Element> + </Path> + </References> + </Object> + <Object type="crs" obj_id="163"> + <Title>test</Title> + <Description></Description> + <Owner>6</Owner> + <CreateDate>2009-04-28 00:12:12</CreateDate> + <LastUpdate>2009-04-28 00:12:12</LastUpdate> + <ImportId></ImportId> + <References ref_id="36" parent_id="1" accessInfo="granted"> + <Path> + <Element ref_id="1" type="root">Repository</Element> + </Path> + </References> + </Object> +</Objects> \ No newline at end of file Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle_output.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle_output.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-getObjectsByTitle_output.xml 2009-05-02 10:27:28 UTC (rev 200) @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!--Export of ILIAS objects--> +<ns383:Objects xmlns:ns383="http://cse.campussource.de/schema/ilias/objects"> + <ns384:Object xmlns:ns384="http://cse.campussource.de/schema/ilias/objects" xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" il_objects:type="crs" il_objects:obj_id="175"> + <ns385:Title xmlns:ns385="http://cse.campussource.de/schema/ilias/objects">test course 1</ns385:Title> + <ns386:Description xmlns:ns386="http://cse.campussource.de/schema/ilias/objects">test course description</ns386:Description> + <ns387:Owner xmlns:ns387="http://cse.campussource.de/schema/ilias/objects">6</ns387:Owner> + <ns388:CreateDate xmlns:ns388="http://cse.campussource.de/schema/ilias/objects">2009-04-30 11:42:16</ns388:CreateDate> + <ns389:LastUpdate xmlns:ns389="http://cse.campussource.de/schema/ilias/objects">2009-04-30 11:42:47</ns389:LastUpdate> + <ns390:ImportId xmlns:ns390="http://cse.campussource.de/schema/ilias/objects"/> + <ns391:References xmlns:ns391="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="41" il_objects:parent_id="40" il_objects:accessInfo="granted"> + <ns392:Path xmlns:ns392="http://cse.campussource.de/schema/ilias/objects"> + <ns393:Element xmlns:ns393="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="1" il_objects:type="root">Repository</ns393:Element> + <ns394:Element xmlns:ns394="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="40" il_objects:type="cat">test</ns394:Element> + </ns392:Path> + </ns391:References> + </ns384:Object> + <ns395:Object xmlns:ns395="http://cse.campussource.de/schema/ilias/objects" xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" il_objects:type="cat" il_objects:obj_id="174"> + <ns396:Title xmlns:ns396="http://cse.campussource.de/schema/ilias/objects">test</ns396:Title> + <ns397:Description xmlns:ns397="http://cse.campussource.de/schema/ilias/objects">test category</ns397:Description> + <ns398:Owner xmlns:ns398="http://cse.campussource.de/schema/ilias/objects">6</ns398:Owner> + <ns399:CreateDate xmlns:ns399="http://cse.campussource.de/schema/ilias/objects">2009-04-30 11:41:37</ns399:CreateDate> + <ns400:LastUpdate xmlns:ns400="http://cse.campussource.de/schema/ilias/objects">2009-04-30 11:41:37</ns400:LastUpdate> + <ns401:ImportId xmlns:ns401="http://cse.campussource.de/schema/ilias/objects"/> + <ns402:References xmlns:ns402="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="40" il_objects:parent_id="1" il_objects:accessInfo="granted"> + <ns403:Path xmlns:ns403="http://cse.campussource.de/schema/ilias/objects"> + <ns404:Element xmlns:ns404="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="1" il_objects:type="root">Repository</ns404:Element> + </ns403:Path> + </ns402:References> + </ns395:Object> + <ns405:Object xmlns:ns405="http://cse.campussource.de/schema/ilias/objects" xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" il_objects:type="crs" il_objects:obj_id="168"> + <ns406:Title xmlns:ns406="http://cse.campussource.de/schema/ilias/objects">test2</ns406:Title> + <ns407:Description xmlns:ns407="http://cse.campussource.de/schema/ilias/objects">bpel test2</ns407:Description> + <ns408:Owner xmlns:ns408="http://cse.campussource.de/schema/ilias/objects">6</ns408:Owner> + <ns409:CreateDate xmlns:ns409="http://cse.campussource.de/schema/ilias/objects">2009-04-28 00:31:35</ns409:CreateDate> + <ns410:LastUpdate xmlns:ns410="http://cse.campussource.de/schema/ilias/objects">2009-04-28 00:31:35</ns410:LastUpdate> + <ns411:ImportId xmlns:ns411="http://cse.campussource.de/schema/ilias/objects"/> + <ns412:References xmlns:ns412="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="38" il_objects:parent_id="1" il_objects:accessInfo="granted"> + <ns413:Path xmlns:ns413="http://cse.campussource.de/schema/ilias/objects"> + <ns414:Element xmlns:ns414="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="1" il_objects:type="root">Repository</ns414:Element> + </ns413:Path> + </ns412:References> + </ns405:Object> + <ns415:Object xmlns:ns415="http://cse.campussource.de/schema/ilias/objects" xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" il_objects:type="crs" il_objects:obj_id="163"> + <ns416:Title xmlns:ns416="http://cse.campussource.de/schema/ilias/objects">test</ns416:Title> + <ns417:Description xmlns:ns417="http://cse.campussource.de/schema/ilias/objects"/> + <ns418:Owner xmlns:ns418="http://cse.campussource.de/schema/ilias/objects">6</ns418:Owner> + <ns419:CreateDate xmlns:ns419="http://cse.campussource.de/schema/ilias/objects">2009-04-28 00:12:12</ns419:CreateDate> + <ns420:LastUpdate xmlns:ns420="http://cse.campussource.de/schema/ilias/objects">2009-04-28 00:12:12</ns420:LastUpdate> + <ns421:ImportId xmlns:ns421="http://cse.campussource.de/schema/ilias/objects"/> + <ns422:References xmlns:ns422="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="36" il_objects:parent_id="1" il_objects:accessInfo="granted"> + <ns423:Path xmlns:ns423="http://cse.campussource.de/schema/ilias/objects"> + <ns424:Element xmlns:ns424="http://cse.campussource.de/schema/ilias/objects" il_objects:ref_id="1" il_objects:type="root">Repository</ns424:Element> + </ns423:Path> + </ns422:References> + </ns415:Object> +</ns383:Objects> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xml 2009-05-02 10:27:28 UTC (rev 200) @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : ilias-objects.xml + Created on : May 2, 2009, 12:23 AM + Author : pete + Description: + Purpose of the document follows. +--> + +<ns0:Element xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' + xmlns:ns0='http://cse.campussource.de/schema/ilias/objects' + xsi:schemaLocation='http://cse.campussource.de/schema/ilias/objects ilias-objects.xsd' ns0:ref_id="" ns0:type=""> + +</ns0:Element> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-objects.xsd 2009-05-02 10:27:28 UTC (rev 200) @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<xs:schema version="1.0" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns="http://cse.campussource.de/schema/ilias/objects" + targetNamespace="http://cse.campussource.de/schema/ilias/objects" + elementFormDefault="qualified" + attributeFormDefault="qualified"> + + <xs:element name="Element"> + <xs:complexType> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="ref_id" type="xs:string" use="required"/> + <xs:attribute name="type" type="xs:string" use="required"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + </xs:element> + + <xs:element name="Object"> + <xs:complexType> + <xs:sequence> + <xs:element name="Title" type="xs:string"/> + <xs:element name="Description" type="xs:string" minOccurs="0"/> + <xs:element name="Owner" type="xs:string"/> + <xs:element name="CreateDate" type="xs:string" minOccurs="0"/> + <xs:element name="LastUpdate" type="xs:string" minOccurs="0"/> + <xs:element name="ImportId" type="xs:string" minOccurs="0"/> + <xs:element ref="References" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute name="type" type="xs:string" use="required"/> + <xs:attribute name="obj_id" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="Objects"> + <xs:complexType> + <xs:sequence> + <xs:element ref="Object" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="Operation"> + <xs:simpleType> + <xs:restriction base="xs:string"/> + </xs:simpleType> + </xs:element> + + <xs:element name="Path"> + <xs:complexType> + <xs:sequence> + <xs:element ref="Element" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + + <xs:element name="References"> + <xs:complexType> + <xs:sequence> + <xs:element ref="TimeTarget" minOccurs="0"/> + <xs:element ref="Operation" minOccurs="0" maxOccurs="unbounded"/> + <xs:element ref="Path" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="ref_id" type="xs:string" use="required"/> + <xs:attribute name="parent_id" type="xs:string"/> + <xs:attribute name="accessInfo" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="Suggestion"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="starting_time" type="xs:string" use="required"/> + <xs:attribute name="ending_time" type="xs:string" use="required"/> + <xs:attribute name="changeable" type="xs:string" use="required"/> + <xs:attribute name="earliest_start" type="xs:string"/> + <xs:attribute name="latest_end" type="xs:string"/> + </xs:complexType> + </xs:element> + + <xs:element name="TimeTarget"> + <xs:complexType> + <xs:sequence> + <xs:element ref="Timing" minOccurs="0"/> + <xs:element ref="Suggestion" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="type" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + + <xs:element name="Timing"> + <xs:complexType> + <xs:sequence/> + <xs:attribute name="starting_time" type="xs:string" use="required"/> + <xs:attribute name="ending_time" type="xs:string" use="required"/> + <xs:attribute name="visibility" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> +</xs:schema> + Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/setObjectsNS.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/setObjectsNS.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/setObjectsNS.xsl 2009-05-02 10:27:28 UTC (rev 200) @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : setObjectsNS.xsl.xsl + Created on : May 1, 2009, 10:58 PM + Author : pete + Description: + Purpose of transformation follows. +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" + xmlns="http://cse.campussource.de/schema/ilias/objects" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="*"> + <xsl:element name="{local-name()}" namespace="http://cse.campussource.de/schema/ilias/objects"> +<!-- + <xsl:copy-of select="node()"/> +--> + + <xsl:apply-templates select="@*|node()"/> + + </xsl:element> + </xsl:template> + + <xsl:template match="@*"> + <xsl:attribute name="{local-name()}" namespace="http://cse.campussource.de/schema/ilias/objects"> + <xsl:value-of select="."/> + </xsl:attribute> + </xsl:template> + + <xsl:template match="processing-instruction()|comment()"> + <xsl:copy> + <xsl:apply-templates select="node()"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[218]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-05-28 06:09:03
|
Revision: 218 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=218&view=rev Author: pkasprzak Date: 2009-05-28 06:08:59 +0000 (Thu, 28 May 2009) Log Message: ----------- * Restructure Modified Paths: -------------- 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/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.wsdl Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="AddCategory" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" + 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory"> + + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" myRole="AddCategoryPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <variable name="AddCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> + <variable name="AddCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> + <variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> + <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> + + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Object"/> + </variables> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryIn"/> + <assign name="prepareAddCategory"> + <copy> + <from>$AddCategoryIn.SID</from> + <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>category1</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> + + <assign name="prepareReply"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to>$AddCategoryOut.categoryId</to> + </copy> + </assign> + + <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="AddCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + 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/AddCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="AddCategoryRequest"> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> + </message> + <message name="AddCategoryResponse"> + <part name="categoryId" type="xsd:int"/> + </message> + <portType name="AddCategoryPortType"> + <operation name="addCategory"> + <input name="input1" message="tns:AddCategoryRequest"/> + <output name="output1" message="tns:AddCategoryResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="AddCategory"> + <!-- 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="AddCategoryPortTypeRole" portType="tns:AddCategoryPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,297 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="AddCourse" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" + 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse"> + + <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="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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" myRole="AddCoursePortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <variable name="AddCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> + <variable name="AddCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> + + <variable name="IliasAddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> + <variable name="IliasAddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> + + <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"/> + <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> + + <!-- 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"/> + + <!-- RefId of the category used adding courses to --> + <variable name="CategoryRefId" type="xsd:integer"/> + + <!-- Course description in Ilias-Format --> + <variable name="CourseXML" element="il_crs:Course"/> + + </variables> + + <sequence> + + <!-- Init variables --> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseIn"/> + <assign name="init"> + <copy> + <from>0</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + + <!-- Prepeare search by title --> + <assign name="prepareGetObjectsByTitle"> + <copy> + <from>$AddCourseIn.SID</from> + <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"> +<!-- + 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> + + <!-- 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>$AddCourseIn.SID"</from> + <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> + + <!-- 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>$AddCourseIn.SID</from> + <to variable="IliasAddCourseIn" part="sid"/> + </copy> + <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> + <copy> + <from variable="CategoryRefId"/> + <to variable="IliasAddCourseIn" part="target_id"/> + </copy> + <!-- Set CourseXML (as string) --> + <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="IliasAddCourseIn" part="crs_xml"/> + </copy> + </assign> + + <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="IliasAddCourseIn" + outputVariable="IliasAddCourseOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Course (refId: ', $IliasAddCourseIn.target_id, ', xml: ', $IliasAddCourseIn.crs_xml, ')')</from> + </sxt:log> + + <sxt:log level="info" location="onComplete"> + <from>concat('*** Result of addCourse: ', $IliasAddCourseOut.course_id)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <assign name="prepeareReply"> + <copy> + <from>$IliasAddCourseOut.course_id</from> + <to>$AddCourseOut.courseId</to> + </copy> + </assign> + + <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + variable="AddCourseOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="AddCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + 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/AddCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="AddCourseRequest"> + <part name="SID" type="xsd:string"/> + <part name="course" type="ns:courseType"/> + </message> + <message name="AddCourseResponse"> + <part name="courseId" type="xsd:int"/> + </message> + <portType name="AddCoursePortType"> + <operation name="addCourse"> + <input name="input1" message="tns:AddCourseRequest"/> + <output name="output1" message="tns:AddCourseResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="AddCourse"> + <!-- 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="AddCoursePortTypeRole" portType="tns:AddCoursePortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="DeleteCategory" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" + 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory"> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" myRole="DeleteCategoryPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> + <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> + </variables> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" + 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/DeleteCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="deleteCategoryRequest"> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> + </message> + <message name="deleteCategoryResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteCategoryPortType"> + <operation name="deleteCategory"> + <input name="input1" message="tns:deleteCategoryRequest"/> + <output name="output1" message="tns:deleteCategoryResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteCategory"> + <!-- 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="DeleteCategoryPortTypeRole" portType="tns:DeleteCategoryPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="DeleteCourse" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" + 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse"> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" myRole="DeleteCoursePortTypeRole"/> + </partnerLinks> + <variables> + <variable name="DeleteCourseOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> + <variable name="DeleteCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> + </variables> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" + 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/DeleteCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="DeleteCourseRequest"> + <part name="SID" type="xsd:string"/> + <part name="course" type="ns:courseType"/> + </message> + <message name="DeleteCourseResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteCoursePortType"> + <operation name="deleteCourse"> + <input name="input1" message="tns:DeleteCourseRequest"/> + <output name="output1" message="tns:DeleteCourseResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteCourse"> + <!-- 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="DeleteCoursePortTypeRole" portType="tns:DeleteCoursePortType"/> + </plnk:partnerLinkType> +</definitions> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-28 06:08:30 UTC (rev 217) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -15,22 +15,22 @@ <part name="categoryMessage" type="ns:categoryMessageType"/> </message> <portType name="ILIASClientAdapterPortType"> - <operation name="ProcessCourseOperation"> + <operation name="processCourse"> <input name="input1" message="tns:ProcessCourseOperationRequest"/> </operation> - <operation name="ProcessCategoryOperation"> + <operation name="processCategory"> <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"/> - <operation name="ProcessCourseOperation"> + <operation name="processCourse"> <soap:operation/> <input name="input1"> <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> </input> </operation> - <operation name="ProcessCategoryOperation"> + <operation name="processCategory"> <soap:operation/> <input name="input2"> <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="Login" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/Login" + 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/Login"> + + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" myRole="LoginPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> + </partnerLinks> + + <variables> + <variable name="LoginOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/> + <variable name="LoginIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginRequest"/> + <variable name="IliasLoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> + <variable name="IliasLoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> + </variables> + + <sequence> + + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + variable="LoginIn"/> + + <assign name="prepareLogin"> + <copy> + <from>'test'</from> + <to variable="IliasLoginIn" part="client"/> + </copy> + <copy> + <from>'root'</from> + <to variable="IliasLoginIn" part="username"/> + </copy> + <copy> + <from>'homer'</from> + <to variable="IliasLoginIn" part="password"/> + </copy> + </assign> + + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="IliasLoginIn" + outputVariable="IliasLoginOut"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** SID: ', $IliasLoginOut.sid)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <assign name="prepareReply"> + <copy> + <from>$IliasLoginOut.sid</from> + <to>$LoginOut.SID</to> + </copy> + </assign> + + <reply name="replyWithSID" partnerLink="IliasAdapter" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + variable="LoginOut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-05-28 06:08:59 UTC (rev 218) @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + 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/Login" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types/> + <message name="loginRequest"> + <part name="dummy" type="xsd:string"/> + </message> + <message name="loginResponse"> + <part name="SID" type="xsd:string"/> + </message> + <portType name="LoginPortType"> + <operation name="login"> + <input name="input1" message="tns:loginRequest"/> + <output name="output1" message="tns:loginResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="Login"> + <!-- 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="LoginPortTypeRole" portType="tns:LoginPortType"/> + </plnk:partnerLinkType> +</definitions> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 06:08:30 UTC (rev 217) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 06:08:59 UTC (rev 218) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <process name="OutboundClientAdapter" - targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess" + 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" @@ -12,412 +12,236 @@ xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" - xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess"> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter"> <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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> + <partnerLink name="Login" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" partnerRole="LoginPortTypeRole"/> + <partnerLink name="AddCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" partnerRole="AddCoursePortTypeRole"/> + <partnerLink name="UpdateCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" partnerRole="UpdateCoursePortTypeRole"/> + <partnerLink name="DeleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" partnerRole="DeleteCoursePortTypeRole"/> + <partnerLink name="AddCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" partnerRole="AddCategoryPortTypeRole"/> + <partnerLink name="UpdateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" partnerRole="UpdateCategoryPortTypeRole"/> + <partnerLink name="DeleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" partnerRole="DeleteCategoryPortTypeRole"/> <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="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> + <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> + <variable name="UpdateCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryResponse"/> + <variable name="UpdateCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryRequest"/> + <variable name="AddCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> + <variable name="AddCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> + <variable name="DeleteCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> + <variable name="DeleteCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> + <variable name="UpdateCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> + <variable name="UpdateCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/> + <variable name="AddCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> + <variable name="AddCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> + <variable name="LoginOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/> + <variable name="LoginIn" xmlns:tns="http://j2ee.netbeans.org/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="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"/> - <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> - <variable name="AddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> - <variable name="AddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> <variable name="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/> <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"/> <!-- Ilias --> <!-- Ilias session id --> <variable name="SID" type="xsd:string"/> - <!-- Course description in Ilias-Format --> - <variable name="CourseXML" element="il_crs:Course"/> - - <!-- RefId of the category used adding courses to --> - <variable name="CategoryRefId" type="xsd:integer"/> - - </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"> + <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" + portType="tns:ILIASClientAdapterPortType" + variable="ProcessCourseOperationIn"> <sequence> - <assign name="prepareLogin"> + + <assign name="prepareLoginForCourses"> <copy> - <from>'test'</from> - <to variable="LoginIn" part="client"/> + <from>'dummy'</from> + <to>$LoginIn.dummy</to> </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" - 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> - - <assign name="saveSID"> + <invoke name="loginForCourses" partnerLink="Login" operation="login" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + portType="tns:LoginPortType" + inputVariable="LoginIn" + outputVariable="LoginOut"/> + <assign name="saveSIDForCourses"> <copy> - <from variable="LoginOut" part="sid"/> + <from variable="LoginOut" part="SID"/> <to variable="SID"/> </copy> </assign> - <!-- 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"/> - - <!-- Result of object search for title --> - <variable name="ObjectsRawXML" element="il_objs:Objects"/> - <variable name="ObjectsXML" element="il_objs:Objects"/> - - </variables> - - <sequence name="CheckForTestCategory"> - <!-- Init variables --> - <assign name="init"> + <!-- Branch on different events --> + <if> + <!-- Event == "CREATE" --> + <condition>$ProcessCourseOperationIn.courseMessage/event = 'CREATE'</condition> + <sequence> + <assign name="prepareAddCourse"> <copy> - <from>0</from> - <to variable="CategoryRefId"/> + <from>$ProcessCourseOperationIn.courseMessage/course</from> + <to>$AddCourseIn.course</to> </copy> - </assign> - - <!-- Prepeare search by title --> - <assign name="prepareGetObjectsByTitle"> <copy> - <from variable="SID"/> - <to>$GetObjectsByTitleIn.sid</to> + <from>$SID</from> + <to>$AddCourseIn.SID</to> </copy> - <copy> - <from>'test'</from> ... [truncated message content] |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[222]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-05-28 09:15:50
|
Revision: 222 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=222&view=rev Author: pkasprzak Date: 2009-05-28 09:15:42 +0000 (Thu, 28 May 2009) Log Message: ----------- * Fixes * Logging Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-28 09:04:05 UTC (rev 221) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-28 09:15:42 UTC (rev 222) @@ -18,7 +18,7 @@ <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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" myRole="AddCoursePortTypeRole"/> @@ -158,7 +158,7 @@ <sequence name="addTestCategory"> <assign name="prepareAddCategory"> <copy> - <from>$AddCourseIn.SID"</from> + <from>$AddCourseIn.SID</from> <to>$AddObjectIn.sid</to> </copy> <copy> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 09:04:05 UTC (rev 221) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-28 09:15:42 UTC (rev 222) @@ -104,10 +104,21 @@ <!-- Branch on different events --> <if> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/event)</from> + </sxt:log> + </sxt:trace> + <!-- Event == "CREATE" --> <condition>$ProcessCourseOperationIn.courseMessage/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/course</from> <to>$AddCourseIn.course</to> @@ -129,6 +140,11 @@ <condition>$ProcessCourseOperationIn.courseMessage/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/course</from> <to>$UpdateCourseIn.course</to> @@ -151,6 +167,11 @@ <condition>$ProcessCourseOperationIn.courseMessage/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/course</from> <to>$DeleteCourseIn.course</to> @@ -168,6 +189,16 @@ outputVariable="DeleteCourseOut"/> </sequence> </elseif> + <else> + <!-- Unrecognized Operation: throw fault? --> + <empty> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown event!', '')</from> + </sxt:log> + </sxt:trace> + </empty> + </else> </if> </sequence> @@ -197,10 +228,21 @@ <!-- Branch on different events --> <if> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/event)</from> + </sxt:log> + </sxt:trace> + <!-- Event == "CREATE" --> <condition>$ProcessCategoryOperationIn.categoryMessage/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/category</from> <to>$AddCategoryIn.category</to> @@ -221,6 +263,11 @@ <condition>$ProcessCategoryOperationIn.categoryMessage/event = 'UPDATE'</condition> <sequence> <assign name="prepareUpdateCategory"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** updateCategory()', '')</from> + </sxt:log> + </sxt:trace> <copy> <from>$ProcessCategoryOperationIn.categoryMessage/category</from> <to>$UpdateCategoryIn.category</to> @@ -242,6 +289,11 @@ <condition>$ProcessCategoryOperationIn.categoryMessage/event = 'DELETE'</condition> <sequence> <assign name="prepareDeleteCategory"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** deleteCategory()', '')</from> + </sxt:log> + </sxt:trace> <copy> <from>$ProcessCategoryOperationIn.categoryMessage/category</from> <to>$DeleteCategoryIn.category</to> @@ -258,9 +310,18 @@ outputVariable="DeleteCategoryOut"/> </sequence> </elseif> + <else> + <!-- Unrecognized Operation: throw fault? --> + <empty> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown event!', '')</from> + </sxt:log> + </sxt:trace> + </empty> + </else> </if> - </sequence> </onMessage> </pick> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[224]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-05-29 10:05:41
|
Revision: 224 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=224&view=rev Author: alexloewen Date: 2009-05-29 10:05:34 +0000 (Fri, 29 May 2009) Log Message: ----------- Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixed.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5.wsdl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixed.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixed.wsdl 2009-05-28 15:01:40 UTC (rev 223) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixed.wsdl 2009-05-29 10:05:34 UTC (rev 224) @@ -1871,7 +1871,7 @@ </binding> <service name="ILIASSoapWebservice"> <port name="ILIASSoapWebservicePort" binding="tns:ILIASSoapWebserviceBinding"> - <soap:address location="http://localhost/ilias3/webservice/soap/server.php?debug=1"/> + <soap:address location="http://cse-wwu-stage.itmc.uni-dortmund.de/ilias3/webservice/soap/server.php?debug=1"/> </port> </service> </definitions><!-- Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5.wsdl 2009-05-28 15:01:40 UTC (rev 223) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5.wsdl 2009-05-29 10:05:34 UTC (rev 224) @@ -1859,7 +1859,7 @@ </binding> <service name="ILIASSoapWebservice"> <port name="ILIASSoapWebservicePort" binding="tns:ILIASSoapWebserviceBinding"> - <soap:address location="http://localhost/ilias3/webservice/soap/server.php?debug=1"/> + <soap:address location="http://cse-wwu-stage.itmc.uni-dortmund.de/ilias3/webservice/soap/server.php?debug=1"/> </port> </service> </definitions><!-- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[227]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-05-29 13:22:50
|
Revision: 227 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=227&view=rev Author: alexloewen Date: 2009-05-29 13:22:48 +0000 (Fri, 29 May 2009) Log Message: ----------- added deleteObjectNS.xsl , it makes object_xml acceptable by ILIAS. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/deleteObjectsNS.xsl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-05-29 12:43:01 UTC (rev 226) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-05-29 13:22:48 UTC (rev 227) @@ -39,7 +39,7 @@ <to variable="GetObjectsByTitleIn" part="sid"/> </copy> <copy> - <from>'test7'</from> + <from>'test10'</from> <to variable="GetObjectsByTitleIn" part="title"/> </copy> <copy> @@ -59,6 +59,11 @@ </assign> <assign name="doXSLTransformation"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('*** before xslt: ', $GetObjectsByTitleOut.object_xml)</ns0:from> + </sxt:log> + </sxt:trace> <copy> <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $CategoryXML)</from> <to variable="CategoryXMLtransformed"/> @@ -67,11 +72,11 @@ </assign> <assign name="fakeUpdateData"> <copy> - <from>'test10'</from> + <from>'test12'</from> <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title</to> </copy> <copy> - <from>'descrTest'</from> + <from>'descrTest2'</from> <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Description</to> </copy> <copy> @@ -79,16 +84,22 @@ <to>$CategoryXMLtransformed/il_objs:Object/il_objs:LastUpdate</to> </copy> </assign> + <assign name="deleteNamespaces"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl', $CategoryXMLtransformed)</from> + <to variable="CategoryXML"/> + </copy> + </assign> <assign name="marshallCategoryXML"> <copy> - <from>sxxf:doMarshal($CategoryXMLtransformed)</from> + <from>sxxf:doMarshal($CategoryXML)</from> <to variable="UpdateObjectsIn" part="object_xml"/> </copy> </assign> <assign name="prepareForUpdateObject"> <sxt:trace> <sxt:log level="info" location="onStart"> - <ns0:from>concat('*** Objects-XML: ', $UpdateObjectsIn.object_xml)</ns0:from> + <ns0:from>concat('*** InputForUpdate: ', $UpdateObjectsIn.object_xml)</ns0:from> </sxt:log> </sxt:trace> <copy> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/deleteObjectsNS.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/deleteObjectsNS.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/deleteObjectsNS.xsl 2009-05-29 13:22:48 UTC (rev 227) @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : deleteObjectsNS.xsl.xsl + Created on : May 29, 2009, 15:00 PM + Author : alex + Description: + delete Namespaces, because ilias doesnt like it +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" + xmlns="http://cse.campussource.de/schema/ilias/objects" + version="1.0"> + + <xsl:output method="xml" + media-type="text/xml" + indent="yes" + encoding="UTF-8" + omit-xml-declaration="no"/> + + <xsl:template match="*"> + <xsl:element name="{local-name()}" namespace=""> +<!-- + <xsl:copy-of select="node()"/> +--> + + <xsl:apply-templates select="@*|node()"/> + + </xsl:element> + </xsl:template> + + <xsl:template match="@*"> + <xsl:attribute name="{local-name()}" namespace=""> + <xsl:value-of select="."/> + </xsl:attribute> + </xsl:template> + + <xsl:template match="processing-instruction()|comment()"> + <xsl:copy> + <xsl:apply-templates select="node()"/> + </xsl:copy> + </xsl:template> + +</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[237]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-04 12:50:45
|
Revision: 237 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=237&view=rev Author: alexloewen Date: 2009-06-04 12:16:57 +0000 (Thu, 04 Jun 2009) Log Message: ----------- addet some funktionality to updateCourse.bpel inkl. xsl transformation from incoming data. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/updateCourseXSLT.xsl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-04 12:16:48 UTC (rev 236) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-04 12:16:57 UTC (rev 237) @@ -1,17 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> <process name="UpdateCourse" - targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateCourse" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/UpdateCourse" 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: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://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateCourse"> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/UpdateCourse" xmlns:ns1="http://cse.campussource.de/schema/DataTypes"> + <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="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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> <partnerLinks> <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/UpdateCourse" partnerLinkType="tns:UpdateCourse" myRole="UpdateCoursePortTypeRole"/> @@ -21,20 +28,61 @@ <variable name="UpdateILIASCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateCourseRequest"/> <variable name="UpdateCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> <variable name="UpdateCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/> + <variable name="CourseXML" element="il_crs:Course"/> </variables> <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="updateCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" portType="tns:UpdateCoursePortType" variable="UpdateCourseIn"/> - <assign name="Assign2"> + <assign name="prepareForGettingCourseData"> <copy> <from variable="UpdateCourseIn" part="SID"/> <to variable="UpdateILIASCourseIn" part="sid"/> </copy> <copy> - <from>182</from> + <from>49</from> <to variable="UpdateILIASCourseIn" part="course_id"/> </copy> </assign> + <!-- 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">testcourseE</Title> + <Language Language="en">deutschFalsch</Language> + <Description Language="en">bpel test war falsch</Description> + </General> + </MetaData> + </Course> + </literal> + </from> + <to variable="CourseXML"/> + </copy> + </assign> --> + + <assign name="copyTheActualDataToCourseXML"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', $UpdateCourseIn.course)</from> + <to variable="CourseXML"/> + </copy> + + </assign> + + <assign name="marshalCourseXML"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <ns0:from>concat('*** CourseXML: ', $CourseXML)</ns0:from> + </sxt:log> + </sxt:trace> + <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="UpdateILIASCourseIn" part="xml"/> + </copy> + </assign> <invoke name="UpdateLectureInvoke" partnerLink="ILIAS" operation="updateCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateILIASCourseIn" outputVariable="UpdateILIASCourseOut"/> + <assign name="prepareReply"> <copy> <from variable="UpdateILIASCourseOut" part="success"/> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/updateCourseXSLT.xsl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/updateCourseXSLT.xsl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/updateCourseXSLT.xsl 2009-06-04 12:16:57 UTC (rev 237) @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : updateCourseXSLT.xsl + Created on : 3. Juni 2009, 11:47 + Author : alex + Description: + updateCourseXSLT.xsl is used by updateCourse.bpel. It transforms LSF + courseMessage to Ilias CourseXML +--> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:il_objects="http://cse.campussource.de/schema/ilias/objects" + xmlns="http://cse.campussource.de/schema/ilias/objects" + version="1.0"> + <xsl:output method="xml" + media-type="text/xml" + omit-xml-declaration="yes"/> + + <xsl:template match="/"> + <Course xmlns="http://cse.campussource.de/schema/ilias/course"> + <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> + <General> + <xsl:apply-templates /> + </General> + </MetaData> + </Course> + </xsl:template> + + <xsl:template match="attribute"> + <xsl:if test="name='title'"> + <Title Language="En"> + <xsl:value-of select="./value" /> + </Title> + </xsl:if> + <xsl:if test="name='shortDescription'"> + <Description Language="En"> + <xsl:value-of select="./value" /> + </Description> + </xsl:if> + <xsl:if test="name='languageFull'"> + <Language Language="En"> + <xsl:value-of select="./value" /> + </Language> + </xsl:if> + </xsl:template> + + <xsl:template match="busId"> + </xsl:template> + + <xsl:template match="eventTime"> + </xsl:template> + + <xsl:template match="category"> + </xsl:template> + + <xsl:template match="workgroups"> + </xsl:template> + <xsl:template match="categories"> + </xsl:template> + + <xsl:template match="workgroup"> + </xsl:template> + <xsl:template match="parent"> + </xsl:template> +</xsl:stylesheet> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[254]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-10 13:13:22
|
Revision: 254 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=254&view=rev Author: alexloewen Date: 2009-06-10 13:13:20 +0000 (Wed, 10 Jun 2009) Log Message: ----------- fixed updateCategory and addCategory Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-10 12:36:49 UTC (rev 253) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-10 13:13:20 UTC (rev 254) @@ -4,6 +4,7 @@ targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" 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" @@ -49,7 +50,7 @@ <from> <literal> <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> - <Title>category2</Title> + <Title>categoryTest</Title> <Description>test category</Description> </Object> </literal> @@ -58,8 +59,17 @@ </copy> </assign> +<!-- Copy the actial Title! .category/dt:attribute[dt:name = 'name']/dt:value!--> + <assign name="CopyTheTitle"> + <copy> + <from>$AddCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$CategoryXML/il_objs:Title/text()</to> + </copy> + </assign> + + <!-- Render XML to string --> - <assign name="marshalCategoryXML"> + <assign name="marshalCategoryXMLToString"> <copy> <from>sxxf:doMarshal($CategoryXML)</from> <to>$AddObjectIn.object_xml</to> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 12:36:49 UTC (rev 253) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 13:13:20 UTC (rev 254) @@ -20,7 +20,6 @@ <partnerLink name="IliasAdpater" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" myRole="UpdateCategoryPortTypeRole"/> </partnerLinks> <variables> - <variable name="testVariable1" type="xsd:string"/> <variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/> <variable name="GetObjectsByTitleIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleRequest"/> <variable name="UpdateObjectsOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateObjectsResponse"/> @@ -79,21 +78,10 @@ <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title/text()</to> </copy> </assign> - - <assign name="Assign1"> - <copy> - <from>$UpdateCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> - <to>$testVariable1</to> - </copy> - </assign> + <assign name="deleteNamespaces"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <ns0:from>concat('***Title=: ', $testVariable1)</ns0:from> - </sxt:log> - </sxt:trace> - <copy> + <copy> <from>ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl', $CategoryXMLtransformed)</from> <to variable="CategoryXML"/> </copy> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[262]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-18 10:51:25
|
Revision: 262 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=262&view=rev Author: alexloewen Date: 2009-06-18 10:50:10 +0000 (Thu, 18 Jun 2009) Log Message: ----------- added some fault handling to deleteCategory Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-16 19:53:37 UTC (rev 261) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-18 10:50:10 UTC (rev 262) @@ -8,7 +8,7 @@ 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory"> + xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -21,26 +21,98 @@ <variable name="DeleteObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectRequest"/> <variable name="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> + <variable name="DeleteCategoryFault" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest" /> </variables> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> - <assign name="prepareForDeleteCategory"> - <copy> - <from variable="DeleteCategoryIn" part="SID"/> - <to variable="DeleteObjectIn" part="sid"/> - </copy> - <copy> - <from>46</from> - <to variable="DeleteObjectIn" part="reference_id"/> - </copy> - </assign> - <invoke name="DeleteCategoryInvoke" partnerLink="ILIAS" operation="deleteObject" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteObjectIn" outputVariable="DeleteObjectOut"/> - <assign name="PrepareReply"> - <copy> - <from variable="DeleteObjectOut" part="success"/> - <to variable="DeleteCategoryOut" part="success"/> - </copy> - </assign> - <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> + <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> + <faultHandlers> + <catch faultName="sxeh:systemFault"> + <sequence > + <assign name="PrepareForUnsuccessfulReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault was handled: ', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteCategoryOut" part="success"/> + </copy> + <copy> + <from variable="DeleteCategoryIn"/> + <to variable="DeleteCategoryFault"/> + </copy> + </assign> + <throw faultName="ns1:deleteCategoryFailedSystemFault"/> + </sequence> + </catch> + <catchAll> + <sequence> + <assign name="PrepareForUnsuccessfulReplyOtherFaults"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Some other Fault was handled by DeleteCategory.Bpel: ', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteCategoryOut" part="success"/> + </copy> + <copy> + <from variable="DeleteCategoryIn"/> + <to variable="DeleteCategoryFault"/> + </copy> + </assign> + <throw faultName="ns1:deleteCategoryFailedUnknownFault" faultVariable="DeleteCategoryFault"/> + </sequence> + </catchAll> + </faultHandlers> + + <sequence> + + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + <assign name="prepareForDeleteCategory"> + <copy> + <from variable="DeleteCategoryIn" part="SID"/> + <to variable="DeleteObjectIn" part="sid"/> + </copy> + <copy> + <from>207</from> + <to variable="DeleteObjectIn" part="reference_id"/> + </copy> + </assign> + + <invoke name="DeleteCategoryInvoke" partnerLink="ILIAS" operation="deleteObject" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteObjectIn" outputVariable="DeleteObjectOut"> + </invoke> + <if name="IfDeleteObjectSucceed"> + <condition>$DeleteObjectOut.success</condition> + <sequence name="Sequence1"> + <assign name="PrepareReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** DeleteCategoryInvoke was succesfull ', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from variable="DeleteObjectOut" part="success"/> + <to variable="DeleteCategoryOut" part="success"/> + </copy> + </assign> + <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> + </sequence> + <else> + <sequence name="Sequence2"> + <assign name="PrepareForFaultFaildeByIlias"> + <copy> + <from variable="DeleteCategoryIn"/> + <to variable="DeleteCategoryFault"/> + </copy> + </assign> + <throw faultName="ns1:deleteCategoryFailedByIlias" faultVariable="DeleteCategoryFault"/> + </sequence> + </else> + </if> + </sequence> + </scope> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-16 19:53:37 UTC (rev 261) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-18 10:50:10 UTC (rev 262) @@ -19,6 +19,9 @@ <operation name="deleteCategory"> <input name="input1" message="tns:deleteCategoryRequest"/> <output name="output1" message="tns:deleteCategoryResponse"/> + <fault name="deleteCategoryFailedByIlias" message="tns:deleteCategoryRequest"/> + <fault name="deleteCategoryFailedSystemFault" message="tns:deleteCategoryRequest"/> + <fault name="deleteCategoryFailedUnknownFault" message="tns:deleteCategoryRequest"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCategory"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-16 19:53:37 UTC (rev 261) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-18 10:50:10 UTC (rev 262) @@ -15,7 +15,7 @@ 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:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> <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://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> @@ -92,147 +92,97 @@ <!-- For testing --> <variable name="ReplyXML" type="xsd:string"/> - + <!-- For Fault Handling --> + <variable name="DeleteCategoryFault" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest" /> </variables> <sequence> - <pick name="processObjects" createInstance="yes"> - <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" + <scope name="MainScope"> + <pick name="processObjects" createInstance="yes" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"> + <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> - <sequence> - - <assign name="prepareLoginForCourses"> - <copy> - <from>'dummy'</from> - <to>$LoginIn.dummy</to> - </copy> - </assign> - - <invoke name="loginForCourses" partnerLink="Login" operation="login" + <sequence> + <assign name="prepareLoginForCourses"> + <copy> + <from>'dummy'</from> + <to>$LoginIn.dummy</to> + </copy> + </assign> + <invoke name="loginForCourses" partnerLink="Login" operation="login" xmlns:tns="http://j2ee.netbeans.org/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> - </assign> - - <invoke name="addCourse" partnerLink="AddCourse" operation="addCourse" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" - portType="tns:AddCoursePortType" - inputVariable="AddCourseIn" - outputVariable="AddCourseOut"/> - - <assign name="saveCourseId"> - <copy> - <from>string($AddCourseOut.courseId)</from> - <to>$ObjectClientId</to> - </copy> - </assign> - - <if> - <condition>$AddCourseOut.courseId != 0</condition> - <assign name="addCourseSuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - <else> - <assign name="addCourseFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> - - </sequence> - <elseif> - <!-- Event == "UPDATE" --> - <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'UPDATE'</condition> + <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="prepareUpdateCourse"> + <assign name="prepareAddCourse"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** updateCourse()', '')</from> + <from>concat('*** addCourse()', '')</from> </sxt:log> </sxt:trace> <copy> <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> - <to>$UpdateCourseIn.course</to> + <to>$AddCourseIn.course</to> </copy> <copy> <from>$SID</from> - <to>$UpdateCourseIn.SID</to> + <to>$AddCourseIn.SID</to> </copy> </assign> - - <invoke name="updateCourse" partnerLink="UpdateCourse" operation="updateCourse" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" - portType="tns:UpdateCoursePortType" - inputVariable="UpdateCourseIn" - outputVariable="UpdateCourseOut"/> - + <invoke name="addCourse" partnerLink="AddCourse" operation="addCourse" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + inputVariable="AddCourseIn" + outputVariable="AddCourseOut"/> + <assign name="saveCourseId"> + <copy> + <from>string($AddCourseOut.courseId)</from> + <to>$ObjectClientId</to> + </copy> + </assign> <if> - <condition>$UpdateCourseOut.success</condition> - <assign name="updateCourseSuccess"> + <condition>$AddCourseOut.courseId != 0</condition> + <assign name="addCourseSuccess"> <copy> <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> </assign> <else> - <assign name="updateCourseFailure"> + <assign name="addCourseFailure"> <copy> <from>$STATUS_FAILURE</from> <to>$ReplyStatus</to> @@ -241,271 +191,353 @@ </else> </if> </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> - </assign> - - <invoke name="deleteCourse" partnerLink="DeleteCourse" operation="deleteCourse" + <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> + </assign> + <invoke name="updateCourse" partnerLink="UpdateCourse" operation="updateCourse" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" + portType="tns:UpdateCoursePortType" + inputVariable="UpdateCourseIn" + outputVariable="UpdateCourseOut"/> + <if> + <condition>$UpdateCourseOut.success</condition> + <assign name="updateCourseSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="updateCourseFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </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> + </assign> + <invoke name="deleteCourse" partnerLink="DeleteCourse" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> - - <if> - <condition>$DeleteCourseOut.success</condition> - <assign name="deleteCourseSuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - <else> - <assign name="deleteCourseFailure"> + <if> + <condition>$DeleteCourseOut.success</condition> + <assign name="deleteCourseSuccess"> <copy> - <from>$STATUS_FAILURE</from> + <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> </assign> - </else> - </if> - </sequence> - </elseif> - <else> - <!-- Unrecognized Operation: throw fault? --> - <empty> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown event!', '')</from> - </sxt:log> - </sxt:trace> - </empty> - </else> - </if> - - </sequence> - </onMessage> - - <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" + <else> + <assign name="deleteCourseFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> + </elseif> + <else> + <!-- Unrecognized Operation: throw fault? --> + <empty> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown event!', '')</from> + </sxt:log> + </sxt:trace> + </empty> + </else> + </if> + </sequence> + </onMessage> + <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCategoryOperationIn"> - <sequence> - <assign name="prepareLoginForCategories"> - <copy> - <from>'dummy'</from> - <to>$LoginIn.dummy</to> - </copy> - </assign> - - <invoke name="loginForCategories" partnerLink="Login" operation="login" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + <scope name="CategoryScope"> + <faultHandlers> + <catch faultName="ns1:deleteCategoryFailedSystemFault"> + <sequence> + <assign > + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** SystemFault came from: ', 'deleteCategoryFailed')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> + </catch> + <catch faultName="ns1:deleteCategoryFailedByIlias" faultVariable="DeleteCategoryFault" faultMessageType="ns1:deleteCategoryRequest"> + <sequence> + <assign > + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** SystemFault Failed By Ilias came from: ', 'deleteCategoryFailed')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> + </catch> + <catch faultName="ns1:deleteCategoryFailedUnknownFault" faultVariable="DeleteCategoryFault" faultMessageType="ns1:deleteCategoryRequest"> + <sequence> + <assign > + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** SystemFault some other fault: ', 'deleteCategoryFailed')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> + </catch> + <!-- <catchAll> + <sequence> + <assign > + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Strange Fault came from: ', 'deleteCategory')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </sequence> + </catchAll> --> + </faultHandlers> + <sequence> + <assign name="prepareLoginForCategories"> + <copy> + <from>'dummy'</from> + <to>$LoginIn.dummy</to> + </copy> + </assign> + <invoke name="loginForCategories" partnerLink="Login" operation="login" xmlns:tns="http://j2ee.netbeans.org/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> + <assign name="initCategoryProcessing"> <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> - <to>$AddCategoryIn.category</to> + <from variable="LoginOut" part="SID"/> + <to variable="SID"/> </copy> <copy> - <from>$SID</from> - <to>$AddCategoryIn.SID</to> + <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> - <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory" + <!-- 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> + </assign> + <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" inputVariable="AddCategoryIn" outputVariable="AddCategoryOut"/> - - <assign name="saveCategoryId"> - <copy> - <from>string($AddCategoryOut.categoryId)</from> - <to>$ObjectClientId</to> - </copy> - </assign> - - <if> - <condition>$AddCategoryOut.categoryId != 0</condition> - <assign name="addCategorySuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - <else> - <assign name="addCategoryFailure"> + <assign name="saveCategoryId"> <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> + <from>string($AddCategoryOut.categoryId)</from> + <to>$ObjectClientId</to> </copy> </assign> - </else> - </if> - </sequence> - <elseif> - <!-- Event == "UPDATE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> - <sequence> - <assign name="prepareUpdateCategory"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** updateCategory()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> - <to>$UpdateCategoryIn.category</to> - </copy> - <copy> - <from>$SID</from> - <to>$UpdateCategoryIn.SID</to> - </copy> - </assign> - - <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" + <if> + <condition>$AddCategoryOut.categoryId != 0</condition> + <assign name="addCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="addCategoryFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> + <elseif> + <!-- Event == "UPDATE" --> + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> + <sequence> + <assign name="prepareUpdateCategory"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** updateCategory()', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> + <to>$UpdateCategoryIn.category</to> + </copy> + <copy> + <from>$SID</from> + <to>$UpdateCategoryIn.SID</to> + </copy> + </assign> + <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" inputVariable="UpdateCategoryIn" outputVariable="UpdateCategoryOut"/> - - <if> - <condition>$UpdateCategoryOut.success</condition> - <assign name="updateCategorySuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - <else> - <assign name="updateCategoryFailure"> + <if> + <condition>$UpdateCategoryOut.success</condition> + <assign name="updateCategorySuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> + <else> + <assign name="updateCategoryFailure"> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </else> + </if> + </sequence> + </elseif> + <elseif> + <!-- Event == "DELETE" --> + <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'DELETE'</condition> + <sequence> + <assign name="prepareDeleteCategory"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** deleteCategory()', '')</from> + </sxt:log> + </sxt:trace> <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> + <to>$DeleteCategoryIn.category</to> </copy> + <copy> + <from>$SID</from> + <to>$DeleteCategoryIn.SID</to> + </copy> </assign> - </else> - </if> - - </sequence> - </elseif> - <elseif> - <!-- Event == "DELETE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'DELETE'</condition> - <sequence> - <assign name="prepareDeleteCategory"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** deleteCategory()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> - <to>$DeleteCategoryIn.category</to> - </copy> - <copy> - <from>$SID</from> - <to>$DeleteCategoryIn.SID</to> - </copy> - </assign> - <invoke name="deleteCategory" partnerLink="DeleteCategory" operation="deleteCategory" + <invoke name="deleteCategory" partnerLink="DeleteCategory" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" inputVariable="DeleteCategoryIn" outputVariable="DeleteCategoryOut"/> - - <if> - <condition>$DeleteCategoryOut.success</condition> - <assign name="deleteCategorySuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - <else> - <assign name="deleteCategoryFailure"> + + <assign name="deleteCategorySuccess"> <copy> - <from>$STATUS_FAILURE</from> + <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> </assign> - </else> - </if> + + </sequence> + </elseif> + <else> + <!-- Unrecognized Operation: throw fault? --> + <empty> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown event!', '')</from> + </sxt:log> + </sxt:trace> + </empty> + </else> + </if> + </sequence> + </scope> + </onMessage> + </pick> + </scope> - </sequence> - </elseif> - <else> - <!-- Unrecognized Operation: throw fault? --> - <empty> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown event!', '')</from> - </sxt:log> - </sxt:trace> - </empty> - </else> - </if> - - </sequence> - </onMessage> - </pick> - <assign name="prepareLogout"> <copy> <from variable="SID"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[264]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-19 11:50:13
|
Revision: 264 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=264&view=rev Author: alexloewen Date: 2009-06-19 11:50:05 +0000 (Fri, 19 Jun 2009) Log Message: ----------- added some fault handling to deleteCourse fault handling still doesn't work Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-18 10:50:18 UTC (rev 263) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-19 11:50:05 UTC (rev 264) @@ -8,7 +8,7 @@ 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> + xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -22,6 +22,7 @@ <variable name="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> <variable name="DeleteCategoryFault" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest" /> + <variable name="DeleteCategoryF" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:faultMessage" /> </variables> <sequence> <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> @@ -43,7 +44,13 @@ <to variable="DeleteCategoryFault"/> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedSystemFault"/> + <assign name="marshallFaultString"> + <copy> + <from>concat('SID=', $DeleteCategoryIn.SID, 'Category=', sxxf:doMarshal($DeleteCategoryIn.category))</from> + <to variable="DeleteCategoryF" part="faultString"/> + </copy> + </assign> + <throw faultName="ns1:deleteCategoryFailedSystemFault" faultVariable="DeleteCategoryF"/> </sequence> </catch> <catchAll> @@ -63,7 +70,7 @@ <to variable="DeleteCategoryFault"/> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedUnknownFault" faultVariable="DeleteCategoryFault"/> + <throw faultName="ns1:deleteCategoryFailedUnknownFault"/> </sequence> </catchAll> </faultHandlers> @@ -108,7 +115,7 @@ <to variable="DeleteCategoryFault"/> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedByIlias" faultVariable="DeleteCategoryFault"/> + <throw faultName="ns1:deleteCategoryFailedByIlias"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-18 10:50:18 UTC (rev 263) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-19 11:50:05 UTC (rev 264) @@ -15,13 +15,16 @@ <message name="deleteCategoryResponse"> <part name="success" type="xsd:boolean"/> </message> + <message name="faultMessage"> + <part name="faultString" type="xsd:string"/> + </message> <portType name="DeleteCategoryPortType"> <operation name="deleteCategory"> <input name="input1" message="tns:deleteCategoryRequest"/> <output name="output1" message="tns:deleteCategoryResponse"/> - <fault name="deleteCategoryFailedByIlias" message="tns:deleteCategoryRequest"/> - <fault name="deleteCategoryFailedSystemFault" message="tns:deleteCategoryRequest"/> - <fault name="deleteCategoryFailedUnknownFault" message="tns:deleteCategoryRequest"/> + <fault name="deleteCategoryFailedByIlias" message="tns:faultMessage"/> + <fault name="deleteCategoryFailedSystemFault" message="tns:faultMessage"/> + <fault name="deleteCategoryFailedUnknownFault" message="tns:faultMessage"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCategory"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-18 10:50:18 UTC (rev 263) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-19 11:50:05 UTC (rev 264) @@ -8,7 +8,7 @@ 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse"> + xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -17,30 +17,85 @@ <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" myRole="DeleteCoursePortTypeRole"/> </partnerLinks> <variables> + <variable name="deleteCourseFault" messageType="ns0:deleteCourseFaultMessage"/> <variable name="DeleteCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseResponse"/> <variable name="DeleteCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseRequest"/> <variable name="DeleteCourseOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> <variable name="DeleteCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> </variables> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> - <assign name="prepareForDeleteCourse"> - <copy> - <from variable="DeleteCourseOperationIn" part="SID"/> - <to variable="DeleteCourseIn" part="sid"/> - </copy> - <copy> - <from>177</from> - <to variable="DeleteCourseIn" part="course_id"/> - </copy> - </assign> - <invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> - <assign name="prepareReply"> - <copy> - <from variable="DeleteCourseOut" part="success"/> - <to variable="DeleteCourseOperationOut" part="success"/> - </copy> - </assign> - <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> + <scope name="deleteCourseScope"> + <faultHandlers> + <catch faultName="sxeh:systemFault"> + <sequence> + <assign> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('***SystemFault was handled by DeleteCourse.bpel: ', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from variable="DeleteCourseIn" part="course_id"/> + <to variable="deleteCourseFault" part="courseID"/> + </copy> + </assign> + <throw faultName="ns0:deleteCourseFailedSystemFault" faultVariable="deleteCourseFault"/> + </sequence> + </catch> + <catchAll> + <sequence> + <assign> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Some other Fault was handled by DeleteCourse.Bpel: ', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from variable="DeleteCourseIn" part="course_id"/> + <to variable="deleteCourseFault" part="courseID"/> + </copy> + </assign> + <throw faultName="ns0:deleteCourseFailedUnknownFault" faultVariable="deleteCourseFault"/> + </sequence> + </catchAll> + </faultHandlers> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> + <assign name="prepareForDeleteCourse"> + <copy> + <from variable="DeleteCourseOperationIn" part="SID"/> + <to variable="DeleteCourseIn" part="sid"/> + </copy> + <copy> + <from>177</from> + <to variable="DeleteCourseIn" part="course_id"/> + </copy> + </assign> + <invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> + <if name="IfDeleteCourseSucceed"> + <condition>$DeleteCourseOut.success</condition> + <sequence name="Sequence1"> + <assign name="prepareReply"> + <copy> + <from variable="DeleteCourseOut" part="success"/> + <to variable="DeleteCourseOperationOut" part="success"/> + </copy> + </assign> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> + </sequence> + <else> + <sequence name="Sequence2"> + <assign name="Assign1"> + <copy> + <from variable="DeleteCourseIn" part="course_id"/> + <to variable="deleteCourseFault" part="courseID"/> + </copy> + </assign> + <throw name="Throw1" faultName="ns0:deleteCourseFailedByIlias" faultVariable="deleteCourseFault"/> + </sequence> + </else> + </if> + </sequence> + </scope> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-06-18 10:50:18 UTC (rev 263) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-06-19 11:50:05 UTC (rev 264) @@ -15,10 +15,16 @@ <message name="DeleteCourseResponse"> <part name="success" type="xsd:boolean"/> </message> + <message name="deleteCourseFaultMessage"> + <part name="courseID" type="xsd:int"/> + </message> <portType name="DeleteCoursePortType"> <operation name="deleteCourse"> <input name="input1" message="tns:DeleteCourseRequest"/> <output name="output1" message="tns:DeleteCourseResponse"/> + <fault name="deleteCourseFailedSystemFault" message="tns:deleteCourseFaultMessage"/> + <fault name="deleteCourseFailedUnknownFault" message="tns:deleteCourseFaultMessage"/> + <fault name="deleteCourseFailedByIlias" message="tns:deleteCourseFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCourse"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-18 10:50:18 UTC (rev 263) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-19 11:50:05 UTC (rev 264) @@ -15,7 +15,7 @@ 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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:ns2="http://j2ee.netbeans.org/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://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> @@ -92,8 +92,7 @@ <!-- For testing --> <variable name="ReplyXML" type="xsd:string"/> - <!-- For Fault Handling --> - <variable name="DeleteCategoryFault" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest" /> + </variables> <sequence> @@ -102,7 +101,63 @@ <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> - <sequence> + + <scope name="CourseScope"> + <faultHandlers> + <catch faultName="ns2:deleteCourseFailedSystemFault" faultVariable="faultData" faultMessageType="ns2:deleteCourseFaultMessage"> + <assign> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** SystemFault came from: ', 'deleteCourse.bpel')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </catch> + <catch faultName="ns2:deleteCourseFailedByIlias" faultVariable="faultData" faultMessageType="ns2:deleteCourseFaultMessage"> + <assign> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Delte course Failde By Ilias came from: ', 'deleteCourse.bpel')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </catch> + <catch faultName="ns2:deleteCourseFailedUnknownFault" faultVariable="faultData" faultMessageType="ns2:deleteCourseFaultMessage"> + <assign> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown Fault came from: ', 'deleteCourse.bpel')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </catch> + <catchAll> + <assign > + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Strange Fault came from: ', 'deleteCourse')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$STATUS_FAILURE</from> + <to>$ReplyStatus</to> + </copy> + </assign> + </catchAll> + </faultHandlers> + <sequence> <assign name="prepareLoginForCourses"> <copy> <from>'dummy'</from> @@ -258,23 +313,15 @@ portType="tns:DeleteCoursePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> - <if> - <condition>$DeleteCourseOut.success</condition> + <assign name="deleteCourseSuccess"> <copy> <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> - </assign> - <else> - <assign name="deleteCourseFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> + </assign> + + </sequence> </elseif> <else> @@ -287,15 +334,17 @@ </sxt:trace> </empty> </else> - </if> - </sequence> + </if> + </sequence> + </scope> + </onMessage> <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCategoryOperationIn"> <scope name="CategoryScope"> <faultHandlers> - <catch faultName="ns1:deleteCategoryFailedSystemFault"> + <catch faultName="ns1:deleteCategoryFailedSystemFault" faultVariable="faultString" faultMessageType="ns1:faultMessage"> <sequence> <assign > <sxt:trace> @@ -310,7 +359,7 @@ </assign> </sequence> </catch> - <catch faultName="ns1:deleteCategoryFailedByIlias" faultVariable="DeleteCategoryFault" faultMessageType="ns1:deleteCategoryRequest"> + <catch faultName="ns1:deleteCategoryFailedByIlias"> <sequence> <assign > <sxt:trace> @@ -325,7 +374,7 @@ </assign> </sequence> </catch> - <catch faultName="ns1:deleteCategoryFailedUnknownFault" faultVariable="DeleteCategoryFault" faultMessageType="ns1:deleteCategoryRequest"> + <catch faultName="ns1:deleteCategoryFailedUnknownFault"> <sequence> <assign > <sxt:trace> @@ -340,7 +389,7 @@ </assign> </sequence> </catch> - <!-- <catchAll> + <catchAll> <sequence> <assign > <sxt:trace> @@ -354,7 +403,7 @@ </copy> </assign> </sequence> - </catchAll> --> + </catchAll> </faultHandlers> <sequence> <assign name="prepareLoginForCategories"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[266]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-06-22 10:06:41
|
Revision: 266 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=266&view=rev Author: pkasprzak Date: 2009-06-22 10:06:36 +0000 (Mon, 22 Jun 2009) Log Message: ----------- * (Working) Exception handling (started) * Namespace changes * Prettying / cleanups Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.wsdl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -16,17 +16,19 @@ <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.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/"/> <partnerLinks> - <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" myRole="AddCategoryPortTypeRole"/> - <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://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" + myRole="AddCategoryPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" + partnerRole="ILIASSoapWebserviceRole"/> </partnerLinks> <variables> - <variable name="AddCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> - <variable name="AddCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> - <variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> - <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> + <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="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> + <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> <!-- Category description as object in Ilias-Format --> <variable name="CategoryXML" element="il_objs:Object"/> @@ -34,7 +36,7 @@ <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" variable="AddCategoryIn"/> <assign name="prepareAddCategory"> @@ -94,8 +96,8 @@ </copy> </assign> - <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" + <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" variable="AddCategoryOut"/> </sequence> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,10 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="AddCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" - 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/AddCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> +<definitions name="AddCategory" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory"> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> </xsd:schema> </types> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -19,18 +19,18 @@ <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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.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/"/> <partnerLinks> - <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" + <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" myRole="AddCoursePortTypeRole"/> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> </partnerLinks> <variables> - <variable name="AddCourseOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> - <variable name="AddCourseIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> + <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="IliasAddCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseResponse"/> <variable name="IliasAddCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addCourseRequest"/> @@ -59,7 +59,10 @@ <sequence> <!-- Init variables --> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseIn"/> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + variable="AddCourseIn"/> <assign name="init"> <copy> <from>0</from> @@ -306,8 +309,8 @@ </copy> </assign> - <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" + <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseOut"/> </sequence> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,10 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="AddCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" - 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/AddCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> +<definitions name="AddCourse" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse"> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> </xsd:schema> </types> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -1,64 +1,69 @@ <?xml version="1.0" encoding="UTF-8"?> <process name="DeleteCategory" - targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteCategory" 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCategory" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteCategory" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> - <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/DeleteCategory" partnerLinkType="tns:DeleteCategory" myRole="DeleteCategoryPortTypeRole"/> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" + myRole="DeleteCategoryPortTypeRole"/> </partnerLinks> <variables> - <variable name="DeleteObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectResponse"/> - <variable name="DeleteObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectRequest"/> - <variable name="DeleteCategoryOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> - <variable name="DeleteCategoryIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> - <variable name="DeleteCategoryFault" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest" /> - <variable name="DeleteCategoryF" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:faultMessage" /> + <variable name="DeleteObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectResponse"/> + <variable name="DeleteObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectRequest"/> + <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="SystemFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:systemFaultMessage" /> + <variable name="UnknownFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:unknownFaultMessage" /> + <variable name="IliasFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:iliasFaultMessage" /> </variables> <sequence> <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> <faultHandlers> <catch faultName="sxeh:systemFault"> <sequence > - <assign name="PrepareForUnsuccessfulReply"> + <assign name="prepareSystemFaultReply"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** System Fault was handled: ', ' ')</from> + <from>concat('*** System Fault occured in deleteCategory()!', ' ')</from> </sxt:log> </sxt:trace> <copy> <from>false()</from> <to variable="DeleteCategoryOut" part="success"/> </copy> - <copy> - <from variable="DeleteCategoryIn"/> - <to variable="DeleteCategoryFault"/> - </copy> - </assign> - <assign name="marshallFaultString"> <copy> - <from>concat('SID=', $DeleteCategoryIn.SID, 'Category=', sxxf:doMarshal($DeleteCategoryIn.category))</from> - <to variable="DeleteCategoryF" part="faultString"/> + <from>'System-Fault while calling Ilias-WS!'</from> + <to>$SystemFault.cause</to> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedSystemFault" faultVariable="DeleteCategoryF"/> + <reply name="replyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCategory" + portType="ns1:DeleteCategoryPortType" + faultName="ns1:SystemFault" + variable="SystemFault"/> </sequence> </catch> +<!-- <catchAll> <sequence> - <assign name="PrepareForUnsuccessfulReplyOtherFaults"> + <assign name="prepareUnknownFaultReply"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** Some other Fault was handled by DeleteCategory.Bpel: ', ' ')</from> + <from>concat('*** Unknown Fault occured!', ' ')</from> </sxt:log> </sxt:trace> <copy> @@ -66,18 +71,25 @@ <to variable="DeleteCategoryOut" part="success"/> </copy> <copy> - <from variable="DeleteCategoryIn"/> - <to variable="DeleteCategoryFault"/> + <from>'Unknown-Fault while calling Ilias-WS!'</from> + <to>$Fault.cause</to> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedUnknownFault"/> + <reply name="replyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCategory" + portType="ns1:DeleteCategoryPortType" + faultName="ns1:UnknownFault" + variable="Fault"/> </sequence> </catchAll> +--> </faultHandlers> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + portType="tns:DeleteCategoryPortType" + variable="DeleteCategoryIn"/> <assign name="prepareForDeleteCategory"> <copy> <from variable="DeleteCategoryIn" part="SID"/> @@ -89,7 +101,11 @@ </copy> </assign> - <invoke name="DeleteCategoryInvoke" partnerLink="ILIAS" operation="deleteObject" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteObjectIn" outputVariable="DeleteObjectOut"> + <invoke name="DeleteCategoryInvoke" partnerLink="ILIAS" operation="deleteObject" + xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="DeleteObjectIn" + outputVariable="DeleteObjectOut"> </invoke> <if name="IfDeleteObjectSucceed"> <condition>$DeleteObjectOut.success</condition> @@ -97,25 +113,31 @@ <assign name="PrepareReply"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** DeleteCategoryInvoke was succesfull ', '')</from> - </sxt:log> + <from>concat('*** DeleteCategory() was successfull ', '')</from> + </sxt:log> </sxt:trace> - <copy> + <copy> <from variable="DeleteObjectOut" part="success"/> - <to variable="DeleteCategoryOut" part="success"/> + <to variable="DeleteCategoryOut" part="success"/> </copy> </assign> - <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> + <reply name="return" partnerLink="IliasAdapter" operation="deleteCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + portType="tns:DeleteCategoryPortType" + variable="DeleteCategoryOut"/> </sequence> <else> <sequence name="Sequence2"> - <assign name="PrepareForFaultFaildeByIlias"> + <assign name="prepareIliasFaultReply"> <copy> - <from variable="DeleteCategoryIn"/> - <to variable="DeleteCategoryFault"/> + <from>'Ilias signaled failure!'</from> + <to>$IliasFault.cause</to> </copy> </assign> - <throw faultName="ns1:deleteCategoryFailedByIlias"/> + <reply name="replyWithIliaFault" partnerLink="IliasAdapter" operation="deleteCategory" + portType="ns1:DeleteCategoryPortType" + faultName="ns1:IliasFault" + variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,30 +1,45 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="DeleteCategory" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" - 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/DeleteCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> +<definitions name="DeleteCategory" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory"> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> </xsd:schema> </types> <message name="deleteCategoryRequest"> - <part name="SID" type="xsd:string"/> - <part name="category" type="ns:categoryType"/> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> </message> <message name="deleteCategoryResponse"> - <part name="success" type="xsd:boolean"/> + <part name="success" type="xsd:boolean"/> </message> +<!-- <message name="faultMessage"> - <part name="faultString" type="xsd:string"/> + <part name="cause" type="xsd:string"/> </message> +--> + <message name="iliasFaultMessage"> + <part name="cause" type="xsd:string"/> + </message> + <message name="unknownFaultMessage"> + <part name="cause" type="xsd:string"/> + </message> + <message name="systemFaultMessage"> + <part name="cause" type="xsd:string"/> + </message> + <portType name="DeleteCategoryPortType"> <operation name="deleteCategory"> - <input name="input1" message="tns:deleteCategoryRequest"/> - <output name="output1" message="tns:deleteCategoryResponse"/> - <fault name="deleteCategoryFailedByIlias" message="tns:faultMessage"/> - <fault name="deleteCategoryFailedSystemFault" message="tns:faultMessage"/> - <fault name="deleteCategoryFailedUnknownFault" message="tns:faultMessage"/> + <input name="input1" message="tns:deleteCategoryRequest"/> + <output name="output1" message="tns:deleteCategoryResponse"/> + <fault name="IliasFault" message="tns:iliasFaultMessage"/> + <fault name="UnknownFault" message="tns:unknownFaultMessage"/> + <fault name="SystemFault" message="tns:systemFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCategory"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -8,20 +8,24 @@ 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" + xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> - <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/DeleteCourse" partnerLinkType="tns:DeleteCourse" myRole="DeleteCoursePortTypeRole"/> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" + myRole="DeleteCoursePortTypeRole"/> </partnerLinks> <variables> - <variable name="deleteCourseFault" messageType="ns0:deleteCourseFaultMessage"/> - <variable name="DeleteCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseResponse"/> - <variable name="DeleteCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseRequest"/> - <variable name="DeleteCourseOperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> - <variable name="DeleteCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> + <variable name="deleteCourseFault" messageType="ns0:deleteCourseFaultMessage"/> + <variable name="DeleteCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseResponse"/> + <variable name="DeleteCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseRequest"/> + <variable name="DeleteCourseOperationOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> + <variable name="DeleteCourseOperationIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> </variables> <sequence> <scope name="deleteCourseScope"> @@ -60,7 +64,10 @@ </catchAll> </faultHandlers> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" + portType="tns:DeleteCoursePortType" + variable="DeleteCourseOperationIn"/> <assign name="prepareForDeleteCourse"> <copy> <from variable="DeleteCourseOperationIn" part="SID"/> @@ -71,7 +78,11 @@ <to variable="DeleteCourseIn" part="course_id"/> </copy> </assign> - <invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> + <invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse" + xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="DeleteCourseIn" + outputVariable="DeleteCourseOut"/> <if name="IfDeleteCourseSucceed"> <condition>$DeleteCourseOut.success</condition> <sequence name="Sequence1"> @@ -81,7 +92,9 @@ <to variable="DeleteCourseOperationOut" part="success"/> </copy> </assign> - <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" + portType="ns0:DeleteCoursePortType" + variable="DeleteCourseOperationOut"/> </sequence> <else> <sequence name="Sequence2"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,10 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="DeleteCourse" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" - 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/DeleteCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> +<definitions name="DeleteCourse" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> </xsd:schema> </types> @@ -20,11 +23,11 @@ </message> <portType name="DeleteCoursePortType"> <operation name="deleteCourse"> - <input name="input1" message="tns:DeleteCourseRequest"/> - <output name="output1" message="tns:DeleteCourseResponse"/> - <fault name="deleteCourseFailedSystemFault" message="tns:deleteCourseFaultMessage"/> - <fault name="deleteCourseFailedUnknownFault" message="tns:deleteCourseFaultMessage"/> - <fault name="deleteCourseFailedByIlias" message="tns:deleteCourseFaultMessage"/> + <input name="input1" message="tns:DeleteCourseRequest"/> + <output name="output1" message="tns:DeleteCourseResponse"/> + <fault name="deleteCourseFailedSystemFault" message="tns:deleteCourseFaultMessage"/> + <fault name="deleteCourseFailedUnknownFault" message="tns:deleteCourseFaultMessage"/> + <fault name="deleteCourseFailedByIlias" message="tns:deleteCourseFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCourse"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,8 +1,12 @@ <?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/"> +<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="Common/CDDM.xsd"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -16,25 +16,27 @@ <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://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> - <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" myRole="LoginPortTypeRole"/> - <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://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" + myRole="LoginPortTypeRole"/> + <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" + partnerRole="ILIASSoapWebserviceRole"/> </partnerLinks> <variables> - <variable name="LoginOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/> - <variable name="LoginIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" messageType="tns:loginRequest"/> - <variable name="IliasLoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> - <variable name="IliasLoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> + <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="IliasLoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> + <variable name="IliasLoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> <variable name="IliasEPR" element="wsa:EndpointReference"/> </variables> <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="login" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" portType="tns:LoginPortType" variable="LoginIn"/> @@ -64,14 +66,14 @@ <to>$IliasEPR</to> </copy> </assign> - +<!-- <assign> <copy> <from> <literal> <sref:service-ref> <wsa:EndpointReference> - <wsa:Address>http://cse-wwu-stage.itmc.uni-dortmund.de/ilias3/webservice/soap/server.php?debug=1</wsa:Address> + <wsa:Address>http://localhost/ilias3/webservice/soap/server.php?debug=1</wsa:Address> <wsa:ServiceName xmlns:ns="urn:ilUserAdministration" PortName="ILIASSoapWebservicePort">ns:ILIASSoapWebservice</wsa:ServiceName> </wsa:EndpointReference> </sref:service-ref> @@ -80,7 +82,7 @@ <to partnerLink="ILIAS"/> </copy> </assign> - +--> <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="IliasLoginIn" @@ -100,7 +102,7 @@ </assign> <reply name="replyWithSID" partnerLink="IliasAdapter" operation="login" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" portType="tns:LoginPortType" variable="LoginOut"/> </sequence> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-06-22 10:06:36 UTC (rev 266) @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<definitions name="Login" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" - 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/Login" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> +<definitions name="Login" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> <types/> <message name="loginRequest"> <part name="dummy" type="xsd:string"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-19 11:50:12 UTC (rev 265) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-22 10:06:36 UTC (rev 266) @@ -1,21 +1,22 @@ <?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: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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:ns2="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse"> +<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: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: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://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> @@ -24,57 +25,57 @@ <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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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.c... [truncated message content] |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[270]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-25 14:27:40
|
Revision: 270 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=270&view=rev Author: alexloewen Date: 2009-06-25 13:52:19 +0000 (Thu, 25 Jun 2009) Log Message: ----------- fault handling is almost compleet. changed updateCourse. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.wsdl Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/faultHandlingMsg.wsdl Removed Paths: ------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/updateCourseXSLT.xsl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-25 13:52:19 UTC (rev 270) @@ -11,12 +11,14 @@ 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:il_objs="http://cse.campussource.de/schema/ilias/objects" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory"> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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/AddCategory" location="AddCategory.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/"/> <partnerLinks> <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" myRole="AddCategoryPortTypeRole"/> @@ -32,73 +34,158 @@ <!-- Category description as object in Ilias-Format --> <variable name="CategoryXML" element="il_objs:Object"/> + + <!--FaultHandling Variables --> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + </variables> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" - portType="tns:AddCategoryPortType" - variable="AddCategoryIn"/> - <assign name="prepareAddCategory"> - <copy> - <from>$AddCategoryIn.SID</from> - <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>categoryTest</Title> - <Description>test category</Description> - </Object> - </literal> - </from> - <to variable="CategoryXML"/> - </copy> - </assign> + <scope name="AddCategoryScope"> + <faultHandlers> + <catch faultName="sxeh:systemFault"> + <sequence > + <assign name="prepareSystemFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in AddCategory()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>'AddCategory failed with a SystemFault.'</from> + <to variable="SystemFault" part="cause"/> + </copy> -<!-- Copy the actial Title! .category/dt:attribute[dt:name = 'name']/dt:value!--> - <assign name="CopyTheTitle"> - <copy> - <from>$AddCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> - <to>$CategoryXML/il_objs:Title/text()</to> - </copy> - </assign> + <copy> + <from>'AddCategory.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCategoryIn.category)</from> + <to variable="SystemFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" faultName="tns:SystemFault" variable="SystemFault"/> + </sequence> + </catch> + <catchAll> + <sequence> + <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown Fault occured in AddCategory!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>'AddCategory failed by Ilias with some unknown Fault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> - <!-- Render XML to string --> - <assign name="marshalCategoryXMLToString"> - <copy> - <from>sxxf:doMarshal($CategoryXML)</from> - <to>$AddObjectIn.object_xml</to> - </copy> - </assign> - - <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" + <copy> + <from>'AddCategory.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCategoryIn.category)</from> + <to variable="UnknownFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" faultName="tns:UnknownFault" variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryIn"/> + <assign name="prepareAddCategory"> + <copy> + <from>$AddCategoryIn.SID</from> + <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>categoryTest</Title> + <Description>test category</Description> + </Object> + </literal> + </from> + <to variable="CategoryXML"/> + </copy> + </assign> + <assign name="CopyTheTitle"> + <copy> + <from>$AddCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$CategoryXML/il_objs:Title/text()</to> + </copy> + </assign> + <assign name="marshalCategoryXMLToString"> + <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> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from> + </sxt:log> + </sxt:trace> + </invoke> + <if name="IfRefIdIsOk" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> + <condition>0 <= $AddObjectOut.ref_id</condition> + <sequence name="Sequence1"> + <assign name="prepareReply"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to>$AddCategoryOut.categoryId</to> + </copy> + </assign> + <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryOut"/> + </sequence> + <else> + <sequence> + <assign name="prepareIliasFaultReply"> + <!-- Set Fault Data--> + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>'DeleteCategory.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCategoryIn.category)</from> + <to variable="IliasFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCategory" portType="tns:AddCategoryPortType" faultName="tns:IliasFault" variable="IliasFault"/> + </sequence> + </else> + </if> + </sequence> + </scope> - <assign name="prepareReply"> - <copy> - <from>$AddObjectOut.ref_id</from> - <to>$AddCategoryOut.categoryId</to> - </copy> - </assign> +<!-- Copy the actial Title! .category/dt:attribute[dt:name = 'name']/dt:value!--> - <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" - portType="tns:AddCategoryPortType" - variable="AddCategoryOut"/> + + <!-- Render XML to string --> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-06-25 13:52:19 UTC (rev 270) @@ -5,7 +5,8 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> @@ -22,6 +23,9 @@ <operation name="addCategory"> <input name="input1" message="tns:AddCategoryRequest"/> <output name="output1" message="tns:AddCategoryResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="AddCategory"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-25 13:52:19 UTC (rev 270) @@ -12,14 +12,17 @@ xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse"> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <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="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/AddCourse" location="AddCourse.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/"/> <partnerLinks> <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" @@ -53,41 +56,102 @@ <!-- Course description in Ilias-Format --> <variable name="CourseXML" element="il_crs:Course"/> + <!--FaultHandling Variables --> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + </variables> <sequence> <!-- Init variables --> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + <scope name="AddCourseScope"> + <faultHandlers> + <catch faultName="sxeh:systemFault"> + <sequence> + <!-- Set Fault Data--> + <assign name="prepareSystemFaultReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in AddCourse()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>'AddCourse failed with a SystemFault.'</from> + <to variable="SystemFault" part="cause"/> + </copy> + <copy> + <from>'AddCourse.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCourseIn.course)</from> + <to variable="SystemFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:SystemFault" variable="SystemFault"/> + </sequence> + </catch> + <catchAll> + <sequence> + <!-- Set Fault Data--> + <assign name="prepareUnknownFaultReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('***AddCourse failed with an UnknownFault', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'AddCourse failed with an UnknownFault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCourseIn.course)</from> + <to variable="UnknownFault" part="context"/> + </copy> + <copy> + <from>'AddCourse.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:UnknownFault" variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseIn"/> - <assign name="init"> - <copy> - <from>0</from> - <to variable="CategoryRefId"/> - </copy> - </assign> + <assign name="init"> + <copy> + <from>0</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + <!-- Prepeare search by title --> - <assign name="prepareGetObjectsByTitle"> - <copy> - <from>$AddCourseIn.SID</from> - <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> + <assign name="prepareGetObjectsByTitle"> + <copy> + <from>$AddCourseIn.SID</from> + <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" + <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="GetObjectsByTitleIn" outputVariable="GetObjectsByTitleOut"> @@ -100,27 +164,27 @@ </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"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>'*** Processing ObjectsXML...'</from> - </sxt:log> - </sxt:trace> + <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 name="unmarshalResult" > + <copy> + <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> + <to variable="ObjectsRawXML"/> + </copy> + </assign> - <assign> + <assign> <!-- BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs java.lang.NullPointerException @@ -130,14 +194,14 @@ </sxt:log> </sxt:trace> --> - <copy> - <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from> - <to variable="ObjectsXML"/> - </copy> - </assign> + <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"> + <assign name="checkForCategories"> <!-- BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs @@ -150,168 +214,202 @@ </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> + <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>$AddCourseIn.SID</from> - <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> + <if> + <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> + <sequence name="addTestCategory"> + <assign name="prepareAddCategory"> + <copy> + <from>$AddCourseIn.SID</from> + <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> + <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" + <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> + <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"> + <assign name="setRefId"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + </sequence> + </if> + + <!-- Initialize course xml skeleton --> + <assign name="initializeCourseXML"> <copy> - <from>$AddObjectOut.ref_id</from> - <to variable="CategoryRefId"/> + <from> + <literal> + <Course xmlns="http://cse.campussource.de/schema/ilias/course"> + <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> + <General> + <Title Language="en"/> + <Language Language="en">en</Language> + <Description Language="en">No description provided</Description> + </General> + </MetaData> + </Course> + </literal> + </from> + <to variable="CourseXML"/> </copy> </assign> - </sequence> - </if> - <!-- 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"/> - <Language Language="en">en</Language> - <Description Language="en">No description provided</Description> - </General> - </MetaData> - </Course> - </literal> - </from> - <to variable="CourseXML"/> - </copy> - </assign> - <!-- Set relevant course data --> - <assign name="setCourseData"> + <assign name="setCourseData"> <!-- Set title --> - <copy> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> - </copy> + <copy> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> + </copy> <!-- Set Description --> - <copy ignoreMissingFromData="yes"> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to> - </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to> + </copy> <!-- Set Language: use init value as default --> - <copy ignoreMissingFromData="yes"> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to> - </copy> - <copy ignoreMissingFromData="yes"> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Language/@il_crs:Language</to> - </copy> - <copy ignoreMissingFromData="yes"> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Language/text()</to> - </copy> - <copy ignoreMissingFromData="yes"> - <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/@il_crs:Language</to> - </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Language/@il_crs:Language</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Language/text()</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/@il_crs:Language</to> + </copy> - </assign> + </assign> <!-- Set all parts for addCourse call --> - <assign name="prepareAddCourse"> + <assign name="prepareAddCourse"> <!-- Set SID --> - <copy> - <from>$AddCourseIn.SID</from> - <to variable="IliasAddCourseIn" part="sid"/> - </copy> + <copy> + <from>$AddCourseIn.SID</from> + <to variable="IliasAddCourseIn" part="sid"/> + </copy> <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> - <copy> - <from variable="CategoryRefId"/> - <to variable="IliasAddCourseIn" part="target_id"/> - </copy> + <copy> + <from variable="CategoryRefId"/> + <to variable="IliasAddCourseIn" part="target_id"/> + </copy> <!-- Set CourseXML (as string) --> - <copy> - <from>sxxf:doMarshal($CourseXML)</from> - <to variable="IliasAddCourseIn" part="crs_xml"/> - </copy> - </assign> + <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="IliasAddCourseIn" part="crs_xml"/> + </copy> + </assign> - <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" + <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="IliasAddCourseIn" outputVariable="IliasAddCourseOut"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Adding Course (refId: ', $IliasAddCourseIn.target_id, ', xml: ', $IliasAddCourseIn.crs_xml, ')')</from> - </sxt:log> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Course (refId: ', $IliasAddCourseIn.target_id, ', xml: ', $IliasAddCourseIn.crs_xml, ')')</from> + </sxt:log> - <sxt:log level="info" location="onComplete"> - <from>concat('*** Result of addCourse: ', $IliasAddCourseOut.course_id)</from> - </sxt:log> - </sxt:trace> - </invoke> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Result of addCourse: ', $IliasAddCourseOut.course_id)</from> + </sxt:log> + </sxt:trace> + </invoke> - <assign name="prepeareReply"> - <copy> - <from>$IliasAddCourseOut.course_id</from> - <to>$AddCourseOut.courseId</to> - </copy> - </assign> - - <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + <!-- If courseId less or equel 0, fault reply, otherwise reply with CourseId--> + <if> + <condition>0 <= $IliasAddCourseOut.course_id</condition> + <sequence> + <assign name="prepeareReply"> + <copy> + <from>$IliasAddCourseOut.course_id</from> + <to>$AddCourseOut.courseId</to> + </copy> + </assign> + <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" variable="AddCourseOut"/> + </sequence> + <else> + <sequence> + <!-- Set Fault Data--> + <assign name="PrepareForReplyWithIliasFault"> + + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('***AddCourse failed with an IliasFault, no valid CourseId returned', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'AddCourse failed, CourseId returned By Ilias was wrong'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddCourseIn.course)</from> + <to variable="IliasFault" part="context"/> + </copy> + <copy> + <from>'AddCourse.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:IliasFault" variable="IliasFault"/> + </sequence> + </else> + </if> + </sequence> + </scope> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-06-25 13:52:19 UTC (rev 270) @@ -5,7 +5,8 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse"> <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> @@ -22,6 +23,9 @@ <operation name="addCourse"> <input name="input1" message="tns:AddCourseRequest"/> <output name="output1" message="tns:AddCourseResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="AddCourse"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-25 13:52:19 UTC (rev 270) @@ -11,11 +11,14 @@ xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteCategory" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" - xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"> + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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/"/> <partnerLinks> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> @@ -23,19 +26,24 @@ myRole="DeleteCategoryPortTypeRole"/> </partnerLinks> <variables> + <variable name="DeleteObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectResponse"/> <variable name="DeleteObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectRequest"/> <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="SystemFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:systemFaultMessage" /> - <variable name="UnknownFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:unknownFaultMessage" /> - <variable name="IliasFault" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:iliasFaultMessage" /> + + <!--FaultHandling Variables --> + + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> </variables> <sequence> <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> <faultHandlers> <catch faultName="sxeh:systemFault"> <sequence > + <!-- Set Fault Data--> <assign name="prepareSystemFaultReply"> <sxt:trace> <sxt:log level="info" location="onStart"> @@ -47,41 +55,49 @@ <to variable="DeleteCategoryOut" part="success"/> </copy> <copy> - <from>'System-Fault while calling Ilias-WS!'</from> - <to>$SystemFault.cause</to> + <from>'DeleteCategory failed with a SystemFault.'</from> + <to variable="SystemFault" part="cause"/> </copy> + <copy> + <from>sxxf:doMarshal($DeleteCategoryIn.category)</from> + <to variable="SystemFault" part="context"/> + </copy> + <copy> + <from>'DeleteCategory.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> </assign> <reply name="replyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCategory" portType="ns1:DeleteCategoryPortType" - faultName="ns1:SystemFault" - variable="SystemFault"/> + faultName="ns1:SystemFault" variable="SystemFault"/> </sequence> </catch> -<!-- + <catchAll> <sequence> <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data--> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown Fault occured!', ' ')</from> + <from>concat('*** Unknown Fault occured in DeleteCategory!', ' ')</from> </sxt:log> </sxt:trace> <copy> - <from>false()</from> - <to variable="DeleteCategoryOut" part="success"/> + <from>'DeleteCategory failed by Ilias with some unknown Fault'</from> + <to variable="UnknownFault" part="cause"/> </copy> <copy> - <from>'Unknown-Fault while calling Ilias-WS!'</from> - <to>$Fault.cause</to> + <from>sxxf:doMarshal($DeleteCategoryIn.category)</from> + <to variable="UnknownFault" part="context"/> </copy> + <copy> + <from>'DeleteCategory.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> </assign> - <reply name="replyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCategory" - portType="ns1:DeleteCategoryPortType" - faultName="ns1:UnknownFault" - variable="Fault"/> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCategory" portType="ns1:DeleteCategoryPortType" faultName="ns1:UnknownFault" variable="UnknownFault"/> </sequence> </catchAll> ---> </faultHandlers> <sequence> @@ -109,7 +125,7 @@ </invoke> <if name="IfDeleteObjectSucceed"> <condition>$DeleteObjectOut.success</condition> - <sequence name="Sequence1"> + <sequence> <assign name="PrepareReply"> <sxt:trace> <sxt:log level="info" location="onStart"> @@ -127,17 +143,30 @@ variable="DeleteCategoryOut"/> </sequence> <else> - <sequence name="Sequence2"> + <sequence> <assign name="prepareIliasFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Ilias Fault occured in DeleteCategory!', ' ')</from> + </sxt:log> + </sxt:trace> <copy> - <from>'Ilias signaled failure!'</from> - <to>$IliasFault.cause</to> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> </copy> + <copy> + <from>sxxf:doMarshal($DeleteCategoryIn.category)</from> + <to variable="IliasFault" part="context"/> + </copy> + <copy> + <from>'DeleteCategory.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> </assign> - <reply name="replyWithIliaFault" partnerLink="IliasAdapter" operation="deleteCategory" + <reply name="replyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCategory" portType="ns1:DeleteCategoryPortType" - faultName="ns1:IliasFault" - variable="IliasFault"/> + faultName="ns1:IliasFault" variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-25 13:51:28 UTC (rev 269) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-06-25 13:52:19 UTC (rev 270) @@ -5,7 +5,8 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory"> ... [truncated message content] |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[272]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-25 14:27:38
|
Revision: 272 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=272&view=rev Author: alexloewen Date: 2009-06-25 14:03:46 +0000 (Thu, 25 Jun 2009) Log Message: ----------- some Bugs Fixed. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-25 13:52:48 UTC (rev 271) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-25 14:03:46 UTC (rev 272) @@ -168,7 +168,7 @@ <to variable="IliasFault" part="cause"/> </copy> <copy> - <from>'DeleteCategory.bpel'</from> + <from>'AddCategory.bpel'</from> <to variable="IliasFault" part="process"/> </copy> <copy> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-25 13:52:48 UTC (rev 271) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-25 14:03:46 UTC (rev 272) @@ -136,7 +136,7 @@ <assign name="prepareIliasFaultReply"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>concat('*** System Fault occured in deleteCourse()!', ' ')</from> + <from>concat('*** IliasFault occured in deleteCourse()!', ' ')</from> </sxt:log> </sxt:trace> <copy> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[273]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-06-26 11:45:31
|
Revision: 273 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=273&view=rev Author: alexloewen Date: 2009-06-26 11:45:27 +0000 (Fri, 26 Jun 2009) Log Message: ----------- Added some documentation, deleted some unneeded if statements from OutboundClientAdapter and added Fault for unknown Operation. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -45,6 +45,7 @@ <sequence> <scope name="AddCategoryScope"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence > <assign name="prepareSystemFaultReply"> @@ -73,6 +74,8 @@ </catch> <catchAll> + + <!--Handling unspecific Faults --> <sequence> <assign name="prepareUnknownFaultReply"> <!-- Set Fault Data--> @@ -99,10 +102,12 @@ </sequence> </catchAll> </faultHandlers> + <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" variable="AddCategoryIn"/> + <!--Set Data for AddCategory Invoke --> <assign name="prepareAddCategory"> <copy> <from>$AddCategoryIn.SID</from> @@ -124,18 +129,24 @@ <to variable="CategoryXML"/> </copy> </assign> + + <!-- Copy the Title from incoming Message --> <assign name="CopyTheTitle"> <copy> <from>$AddCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> <to>$CategoryXML/il_objs:Title/text()</to> </copy> </assign> + + <!-- Render XML to String and copy it for Sending to Ilias --> <assign name="marshalCategoryXMLToString"> <copy> <from>sxxf:doMarshal($CategoryXML)</from> <to>$AddObjectIn.object_xml</to> </copy> </assign> + + <!--Invoke Ilias with addObject --> <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="AddObjectIn" @@ -146,9 +157,12 @@ </sxt:log> </sxt:trace> </invoke> + + <!-- Check if returned Reference Id is valid --> <if name="IfRefIdIsOk" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> <condition>0 <= $AddObjectOut.ref_id</condition> - <sequence name="Sequence1"> + <!--Sending a normal Reply --> + <sequence> <assign name="prepareReply"> <copy> <from>$AddObjectOut.ref_id</from> @@ -160,6 +174,7 @@ variable="AddCategoryOut"/> </sequence> <else> + <!--Handling IliasFault, sending a Faultreply --> <sequence> <assign name="prepareIliasFaultReply"> <!-- Set Fault Data--> @@ -182,10 +197,5 @@ </if> </sequence> </scope> - -<!-- Copy the actial Title! .category/dt:attribute[dt:name = 'name']/dt:value!--> - - - <!-- Render XML to string --> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -56,8 +56,8 @@ <!-- Course description in Ilias-Format --> <variable name="CourseXML" element="il_crs:Course"/> - <!--FaultHandling Variables --> + <!--FaultHandling Variables --> <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> @@ -69,6 +69,8 @@ <!-- Init variables --> <scope name="AddCourseScope"> <faultHandlers> + + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence> <!-- Set Fault Data--> @@ -94,7 +96,9 @@ <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:SystemFault" variable="SystemFault"/> </sequence> </catch> + <catchAll> + <!--Handling unspecific Faults --> <sequence> <!-- Set Fault Data--> <assign name="prepareUnknownFaultReply"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -41,6 +41,7 @@ <sequence> <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence > <!-- Set Fault Data--> @@ -73,6 +74,7 @@ </sequence> </catch> + <!--Handling unspecific Faults --> <catchAll> <sequence> <assign name="prepareUnknownFaultReply"> @@ -106,6 +108,7 @@ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + <!--Fake refId TODO --> <assign name="prepareForDeleteCategory"> <copy> <from variable="DeleteCategoryIn" part="SID"/> @@ -123,6 +126,8 @@ inputVariable="DeleteObjectIn" outputVariable="DeleteObjectOut"> </invoke> + + <!--If DeleteObject succeed by Ilias send a normal Reply, otherwise handle an IliasFault --> <if name="IfDeleteObjectSucceed"> <condition>$DeleteObjectOut.success</condition> <sequence> @@ -142,6 +147,7 @@ portType="tns:DeleteCategoryPortType" variable="DeleteCategoryOut"/> </sequence> + <!--Reply with an IliasFault --> <else> <sequence> <assign name="prepareIliasFaultReply"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -38,6 +38,7 @@ <sequence> <scope name="deleteCourseScope"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence> <assign name="prepareSystemFaultReply"> @@ -67,7 +68,10 @@ <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:SystemFault" variable="SystemFault"/> </sequence> </catch> + + <!--Handling unspecific Faults --> <catchAll> + <sequence> <assign name="prepareUnknownFaultReply"> <!-- Set Fault Data--> @@ -97,12 +101,14 @@ </sequence> </catchAll> </faultHandlers> + <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> - <assign name="prepareForDeleteCourse"> + <!-- TODO set the course Id--> + <assign name="prepareForDeleteCourse"> <copy> <from variable="DeleteCourseOperationIn" part="SID"/> <to variable="DeleteCourseIn" part="sid"/> @@ -117,6 +123,7 @@ portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> + <!--Send a normal Reply if DeleteCourse succeed, otherwise reply with an Ilias Fault --> <if name="IfDeleteCourseSucceed"> <condition>$DeleteCourseOut.success</condition> <sequence name="Sequence1"> @@ -130,7 +137,9 @@ portType="ns0:DeleteCoursePortType" variable="DeleteCourseOperationOut"/> </sequence> + <else> + <!--Reply with an Ilias Fault --> <sequence> <!-- Set Fault Data--> <assign name="prepareIliasFaultReply"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -96,16 +96,23 @@ <!-- 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> + <from>concat('*** Handling SystemFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> </sxt:log> </sxt:trace> <copy> @@ -114,11 +121,13 @@ </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> + <from>concat('*** Handling UnknownFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> </sxt:log> </sxt:trace> <copy> @@ -128,11 +137,12 @@ </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> + <from>concat('*** Handling IliasFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> </sxt:log> </sxt:trace> <copy> @@ -141,6 +151,8 @@ </copy> </assign> </catch> + + <!--Handling unspecific Faults --> <catchAll> <assign> <sxt:trace> @@ -162,7 +174,7 @@ portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> - <scope name="CourseScope"> + <scope name="CourseScope"> <sequence> <assign name="prepareLoginForCourses"> <copy> @@ -234,23 +246,12 @@ <to>$ObjectClientId</to> </copy> </assign> - <if> - <condition>$AddCourseOut.courseId != 0</condition> - <assign name="addCourseSuccess"> - <copy> + <assign name="addCourseSuccess"> + <copy> <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> + <to>$ReplyStatus</to> </copy> - </assign> - <else> - <assign name="addCourseFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> + </assign> </sequence> <elseif> <!-- Event == "UPDATE" --> @@ -276,23 +277,12 @@ portType="tns:UpdateCoursePortType" inputVariable="UpdateCourseIn" outputVariable="UpdateCourseOut"/> - <if> - <condition>$UpdateCourseOut.success</condition> - <assign name="updateCourseSuccess"> - <copy> + <assign name="updateCourseSuccess"> + <copy> <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> + <to>$ReplyStatus</to> </copy> - </assign> - <else> - <assign name="updateCourseFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> + </assign> </sequence> </elseif> <elseif> @@ -331,14 +321,31 @@ </sequence> </elseif> <else> - <!-- Unrecognized Operation: throw fault? --> - <empty> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown event!', '')</from> - </sxt:log> - </sxt:trace> - </empty> + <!-- 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> @@ -420,23 +427,12 @@ <to>$ObjectClientId</to> </copy> </assign> - <if> - <condition>$AddCategoryOut.categoryId != 0</condition> - <assign name="addCategorySuccess"> - <copy> + <assign name="addCategorySuccess"> + <copy> <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> + <to>$ReplyStatus</to> </copy> - </assign> - <else> - <assign name="addCategoryFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> + </assign> </sequence> <elseif> <!-- Event == "UPDATE" --> @@ -462,23 +458,12 @@ portType="tns:UpdateCategoryPortType" inputVariable="UpdateCategoryIn" outputVariable="UpdateCategoryOut"/> - <if> - <condition>$UpdateCategoryOut.success</condition> - <assign name="updateCategorySuccess"> - <copy> + <assign name="updateCategorySuccess"> + <copy> <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> + <to>$ReplyStatus</to> </copy> - </assign> - <else> - <assign name="updateCategoryFailure"> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </else> - </if> + </assign> </sequence> </elseif> <elseif> @@ -516,14 +501,30 @@ </sequence> </elseif> <else> - <!-- Unrecognized Operation: throw fault? --> - <empty> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown event!', '')</from> - </sxt:log> - </sxt:trace> - </empty> + <!-- 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: ',$ProcessCategoryOperationIn.categoryMessage/dt:event)</from> + <to variable="SystemFaultOperationNotFounded" part="cause"/> + </copy> + <copy> + <from>'OutboundClientAdapter.bpel, CategoryScope'</from> + <to variable="SystemFaultOperationNotFounded" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($ProcessCategoryOperationIn.categoryMessage)</from> + <to variable="SystemFaultOperationNotFounded" part="context"/> + </copy> + </assign> + <throw name="ThrowFaultOperationNotFounded" faultVariable="SystemFaultOperationNotFounded" faultName="sxeh:systemFault"/> + </sequence> </else> </if> </sequence> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -47,6 +47,7 @@ <sequence> <scope name="UpdateCategoryScope"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence > <assign name="prepareSystemFaultReply"> @@ -73,7 +74,8 @@ <reply name="ReplyWithSystemFault" partnerLink="IliasAdpater" operation="updateCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" faultName="tns:SystemFault" variable="SystemFault"/> </sequence> </catch> - + + <!--Handling unspecific Faults --> <catchAll> <sequence> <assign name="prepareUnknownFaultReply"> @@ -101,6 +103,7 @@ </sequence> </catchAll> </faultHandlers> + <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdpater" operation="updateCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" @@ -111,6 +114,7 @@ <from variable="UpdateCategoryIn" part="SID"/> <to variable="GetObjectsByTitleIn" part="sid"/> </copy> + <!-- TODO set the RefId , not by looking for Title. Evtl there are more Categories with same Title --> <copy> <from>'test12'</from> <to variable="GetObjectsByTitleIn" part="title"/> @@ -204,6 +208,7 @@ variable="UpdateCategoryOut"/> </sequence> <else> + <!--Reply IliasFault --> <sequence> <assign name="PrepareForReplyWithIliasFault1"> <sxt:trace> @@ -230,6 +235,8 @@ </if> </sequence> <else> + <!--Reply IliasFault, because Category with such Title was not founded --> + <!--TODO when real RefId is set, handle fault: "Ilias doesnt find Object with such refId" --> <sequence> <assign name="prepareForReplyWithIliasFaultNoCategoryFound"> <sxt:trace> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-25 14:03:46 UTC (rev 272) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-26 11:45:27 UTC (rev 273) @@ -45,6 +45,7 @@ <sequence> <scope name="UpdateCourseScope"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence> <!-- Set Fault Data--> @@ -70,6 +71,8 @@ <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="updateCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" portType="tns:UpdateCoursePortType" faultName="tns:SystemFault" variable="SystemFault"/> </sequence> </catch> + + <!--Handling unspecific Fault --> <catchAll> <sequence> <!-- Set Fault Data--> @@ -104,38 +107,7 @@ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" portType="tns:UpdateCoursePortType" variable="UpdateCourseIn"/> - <!-- Set CourseId and Session ID--> - <!-- 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">testcourseE</Title> - <Language Language="en">deutschFalsch</Language> - <Description Language="en">bpel test war falsch</Description> - </General> - </MetaData> - </Course> - </literal> - </from> - <to variable="CourseXML"/> - </copy> - </assign> --> - <!--delete Namespaces bevor XSLT Transformation !--> - <!-- - <assign name="copyTheActualDataToCourseXML"> - <copy> - <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl', $UpdateCourseIn.course))</from> - <to variable="CourseXML"/> - </copy> - - </assign> - --> - - <!-- Set the Actual Data to CourseXML --> + <!-- Initialize course xml skeleton --> <assign name="initializeCourseXML"> <copy> @@ -213,7 +185,8 @@ </copy> </assign> <invoke name="UpdateLectureInvoke" partnerLink="ILIAS" operation="updateCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateILIASCourseIn" outputVariable="UpdateILIASCourseOut"/> - <if name="If1"> + <!-- Normal reply if Update course succeed, otherwise reply with IliasFault --> + <if> <condition>$UpdateILIASCourseOut.success</condition> <sequence> <assign name="prepareReply"> @@ -222,11 +195,13 @@ <to variable="UpdateCourseOut" part="success"/> </copy> </assign> + <!-- normal Reply --> <reply name="replySuccess" partnerLink="IliasAdapter" operation="updateCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" portType="tns:UpdateCoursePortType" variable="UpdateCourseOut"/> </sequence> <else> + <!--Reply wtih IliasFault--> <sequence> <assign name="prepareToReplyWithIliasFault"> <sxt:trace> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[289]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-07-01 13:23:03
|
Revision: 289 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=289&view=rev Author: alexloewen Date: 2009-07-01 12:21:32 +0000 (Wed, 01 Jul 2009) Log Message: ----------- no changes, some doku changed, alignment Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-01 11:44:30 UTC (rev 288) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-01 12:21:32 UTC (rev 289) @@ -98,7 +98,7 @@ </catch> <catchAll> - <!--Handling unspecific Faults --> + <!--Handling unspecific Faults --> <sequence> <!-- Set Fault Data--> <assign name="prepareUnknownFaultReply"> @@ -138,7 +138,7 @@ </assign> - <!-- Prepeare search by title --> + <!-- Prepeare search by title --> <assign name="prepareGetObjectsByTitle"> <copy> <from>$AddCourseIn.SID</from> @@ -154,7 +154,7 @@ </copy> </assign> - <!-- Do search --> + <!-- Do search --> <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="GetObjectsByTitleIn" @@ -170,7 +170,7 @@ --> </invoke> - <!-- Don't try to unmarshal empty string (i.e. no objects found) --> + <!-- Don't try to unmarshal empty string (i.e. no objects found) --> <if> <condition>$GetObjectsByTitleOut.object_xml != ''</condition> <sequence name="processObjectsXML"> @@ -180,7 +180,7 @@ </sxt:log> </sxt:trace> - <!-- Convert to XML structure --> + <!-- Convert to XML structure --> <assign name="unmarshalResult" > <copy> <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> @@ -226,7 +226,7 @@ </sequence> </if> - <!-- If no appropriate catgeory was found, create one --> + <!-- If no appropriate catgeory was found, create one --> <if> <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> <sequence name="addTestCategory"> @@ -252,7 +252,7 @@ </copy> </assign> - <!-- Render XML to string --> + <!-- Render XML to string --> <assign name="marshalCategoryXML"> <copy> <from>sxxf:doMarshal($CategoryXML)</from> @@ -271,7 +271,7 @@ </sxt:trace> </invoke> - <!-- Set RefId --> + <!-- Set RefId --> <assign name="setRefId"> <copy> <from>$AddObjectOut.ref_id</from> @@ -281,7 +281,7 @@ </sequence> </if> - <!-- Initialize course xml skeleton --> + <!-- Initialize course xml skeleton --> <assign name="initializeCourseXML"> <copy> <from> @@ -301,22 +301,22 @@ </copy> </assign> - <!-- Set relevant course data --> + <!-- Set relevant course data --> <assign name="setCourseData"> - <!-- Set title --> + <!-- Set title --> <copy> <from>$AddCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> </copy> - <!-- Set Description --> + <!-- Set Description --> <copy ignoreMissingFromData="yes"> <from>$AddCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to> </copy> - <!-- Set Language: use init value as default --> + <!-- Set Language: use init value as default --> <copy ignoreMissingFromData="yes"> <from>$AddCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to> @@ -336,9 +336,9 @@ </assign> - <!-- Set all parts for addCourse call --> + <!-- Set all parts for addCourse call --> <assign name="prepareAddCourse"> - <!-- Set SID --> + <!-- Set SID --> <copy> <from>$AddCourseIn.SID</from> <to variable="IliasAddCourseIn" part="sid"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-01 11:44:30 UTC (rev 288) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-01 12:21:32 UTC (rev 289) @@ -34,14 +34,16 @@ <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + </variables> <sequence> <scope name="deleteCourseScope"> <faultHandlers> + <!--Handling SystemFault --> <catch faultName="sxeh:systemFault"> <sequence> - <assign name="prepareSystemFaultReply"> + <assign name="prepareSystemFaultReply"> <!-- Set Fault Data--> <sxt:trace> <sxt:log level="info" location="onStart"> @@ -60,11 +62,11 @@ <from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from> <to variable="SystemFault" part="context"/> </copy> - <copy> - <from>'DeleteCourse.bpel'</from> - <to variable="SystemFault" part="process"/> - </copy> - </assign> + <copy> + <from>'DeleteCourse.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + </assign> <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:SystemFault" variable="SystemFault"/> </sequence> </catch> @@ -108,15 +110,15 @@ portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> <!-- TODO set the course Id--> - <assign name="prepareForDeleteCourse"> + <assign name="prepareForDeleteCourse"> <copy> - <from variable="DeleteCourseOperationIn" part="SID"/> - <to variable="DeleteCourseIn" part="sid"/> - </copy> - <copy> - <from>177</from> - <to variable="DeleteCourseIn" part="course_id"/> - </copy> + <from variable="DeleteCourseOperationIn" part="SID"/> + <to variable="DeleteCourseIn" part="sid"/> + </copy> + <copy> + <from>177</from> + <to variable="DeleteCourseIn" part="course_id"/> + </copy> </assign> <invoke name="deleteCourseInvoke" partnerLink="ILIAS" operation="deleteCourse" xmlns:tns="urn:ilUserAdministration" @@ -129,9 +131,9 @@ <sequence name="Sequence1"> <assign name="prepareReply"> <copy> - <from variable="DeleteCourseOut" part="success"/> - <to variable="DeleteCourseOperationOut" part="success"/> - </copy> + <from variable="DeleteCourseOut" part="success"/> + <to variable="DeleteCourseOperationOut" part="success"/> + </copy> </assign> <reply name="reply" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" @@ -142,29 +144,29 @@ <!--Reply with an Ilias Fault --> <sequence> <!-- Set Fault Data--> - <assign name="prepareIliasFaultReply"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** IliasFault occured in deleteCourse()!', ' ')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>false()</from> - <to variable="DeleteCourseOut" part="success"/> - </copy> - <copy> - <from>'Ilias returned failed.'</from> - <to variable="IliasFault" part="cause"/> - </copy> - <copy> - <from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from> - <to variable="IliasFault" part="context"/> - </copy> - <copy> - <from>'DeleteCourse.bpel'</from> - <to variable="IliasFault" part="process"/> - </copy> - </assign> + <assign name="prepareIliasFaultReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** IliasFault occured in deleteCourse()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteCourseOut" part="success"/> + </copy> + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteCourseOperationIn.course)</from> + <to variable="IliasFault" part="context"/> + </copy> + <copy> + <from>'DeleteCourse.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + </assign> <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:IliasFault" variable="IliasFault"/> </sequence> </else> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-01 11:44:30 UTC (rev 288) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-01 12:21:32 UTC (rev 289) @@ -35,7 +35,7 @@ <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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="Login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" partnerRole="LoginPortTypeRole"/> @@ -86,7 +86,7 @@ <variable name="SID" type="xsd:string"/> <!-- Reply vars --> - <variable name="STATUS_SUCCESS" type="xsd:string"/> + <variable name="STATUS_SUCCESS" type="xsd:string" /> <variable name="STATUS_FAILURE" type="xsd:string"/> <variable name="ObjectBusId" type="xsd:int"/> @@ -99,8 +99,7 @@ <!--Fault Variable, if Operation from inkoming msg is not supportet --> <variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/> - - + </variables> <sequence> @@ -200,7 +199,8 @@ <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:attribute[dt:name = 'clientId']/dt:value</from> <to>$ObjectClientId</to> </copy> - <!-- Init constants (better alternatives?) --> + + <!-- Init constants (better alternatives?) --> <copy> <from>'SUCCESS'</from> <to>$STATUS_SUCCESS</to> @@ -210,14 +210,16 @@ <to>$STATUS_FAILURE</to> </copy> </assign> - <!-- Branch on different events --> + + <!-- 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" --> + + <!-- Event == "CREATE" --> <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'CREATE'</condition> <sequence> <assign name="prepareAddCourse"> @@ -324,7 +326,7 @@ <!-- Unrecognized Operation: throw fault! --> <sequence > - <!--Set Fault Data --> + <!--Set Fault Data --> <assign name="PrepareForThrowFaultOperationNotFounded"> <sxt:trace> <sxt:log level="info" location="onStart"> @@ -381,7 +383,8 @@ <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:attribute[dt:name = 'clientId']/dt:value</from> <to>$ObjectClientId</to> </copy> - <!-- Init constants (better alternatives?) --> + + <!-- Init constants (better alternatives?) --> <copy> <from>'SUCCESS'</from> <to>$STATUS_SUCCESS</to> @@ -391,14 +394,16 @@ <to>$STATUS_FAILURE</to> </copy> </assign> - <!-- Branch on different events --> + + <!-- 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" --> + + <!-- Event == "CREATE" --> <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'CREATE'</condition> <sequence> <assign name="prepareAddCategory"> @@ -435,7 +440,7 @@ </assign> </sequence> <elseif> - <!-- Event == "UPDATE" --> + <!-- Event == "UPDATE" --> <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> <sequence> <assign name="prepareUpdateCategory"> @@ -467,7 +472,7 @@ </sequence> </elseif> <elseif> - <!-- Event == "DELETE" --> + <!-- Event == "DELETE" --> <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'DELETE'</condition> <sequence> <assign name="prepareDeleteCategory"> @@ -501,7 +506,7 @@ </sequence> </elseif> <else> - <!-- Unrecognized Operation: throw fault! --> + <!-- Unrecognized Operation: throw fault! --> <sequence > <!--Set Fault Data --> <assign name="PrepareForThrowFaultOperationNotFounded"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-07-01 11:44:30 UTC (rev 288) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-07-01 12:21:32 UTC (rev 289) @@ -108,7 +108,7 @@ portType="tns:UpdateCoursePortType" variable="UpdateCourseIn"/> - <!-- Initialize course xml skeleton --> + <!-- Initialize course xml skeleton --> <assign name="initializeCourseXML"> <copy> <from> @@ -128,22 +128,22 @@ </copy> </assign> - <!-- Set relevant course data --> + <!-- Set relevant course data --> <assign name="setCourseData"> - <!-- Set title --> + <!-- Set title --> <copy> <from>$UpdateCourseIn.course/dt:attribute[dt:name = 'title']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> </copy> - <!-- Set Description --> + <!-- Set Description --> <copy ignoreMissingFromData="yes"> <from>$UpdateCourseIn.course/dt:attribute[dt:name = 'shortDescription']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Description/text()</to> </copy> - <!-- Set Language: use init value as default --> + <!-- Set Language: use init value as default --> <copy ignoreMissingFromData="yes"> <from>$UpdateCourseIn.course/dt:attribute[dt:name = 'languageISO']/dt:value</from> <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/@il_crs:Language</to> @@ -166,7 +166,7 @@ <!-- Set all parts for UpdateCourse call --> <assign name="PrepareUpdateCourse"> - <sxt:trace> + <sxt:trace> <sxt:log level="info" location="onStart"> <ns0:from>concat('*** CourseXML: ', $CourseXML)</ns0:from> </sxt:log> @@ -183,7 +183,7 @@ <from>66</from> <to variable="UpdateILIASCourseIn" part="course_id"/> </copy> - </assign> + </assign> <invoke name="UpdateLectureInvoke" partnerLink="ILIAS" operation="updateCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateILIASCourseIn" outputVariable="UpdateILIASCourseOut"/> <!-- Normal reply if Update course succeed, otherwise reply with IliasFault --> <if> @@ -192,7 +192,7 @@ <assign name="prepareReply"> <copy> <from variable="UpdateILIASCourseOut" part="success"/> - <to variable="UpdateCourseOut" part="success"/> + <to variable="UpdateCourseOut" part="success"/> </copy> </assign> <!-- normal Reply --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[299]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-07-02 13:28:36
|
Revision: 299 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=299&view=rev Author: pkasprzak Date: 2009-07-02 13:28:32 +0000 (Thu, 02 Jul 2009) Log Message: ----------- * Adapted everything (testcases / bpels /wsdls) to use dynamic endpoints, so now the endpoint of the ilias system is taken from config and can be changed during runtime * Cleanup Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/faultHandlingMsg.wsdl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -1,24 +1,25 @@ <?xml version="1.0" encoding="UTF-8"?> -<process - name="AddCategory" - targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" - xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:dt="http://cse.campussource.de/schema/DataTypes" - 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" - xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" - xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> +<process name="AddCategory" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCategory" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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/AddCategory" location="AddCategory.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" myRole="AddCategoryPortTypeRole"/> @@ -36,9 +37,9 @@ <variable name="CategoryXML" element="il_objs:Object"/> <!--FaultHandling Variables --> - <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> - <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> - <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> </variables> @@ -98,15 +99,29 @@ <to variable="UnknownFault" part="context"/> </copy> </assign> - <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" portType="tns:AddCategoryPortType" faultName="tns:UnknownFault" variable="UnknownFault"/> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + faultName="tns:UnknownFault" + variable="UnknownFault"/> </sequence> </catchAll> </faultHandlers> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" - portType="tns:AddCategoryPortType" - variable="AddCategoryIn"/> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryIn"/> + + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$AddCategoryIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + <!--Set Data for AddCategory Invoke --> <assign name="prepareAddCategory"> <copy> @@ -147,7 +162,8 @@ </assign> <!--Invoke Ilias with addObject --> - <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" + <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" + xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="AddObjectIn" outputVariable="AddObjectOut"> @@ -169,9 +185,10 @@ <to>$AddCategoryOut.categoryId</to> </copy> </assign> - <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" - portType="tns:AddCategoryPortType" - variable="AddCategoryOut"/> + <reply name="returnCategoryId" partnerLink="IliasAdapter" operation="addCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" + portType="tns:AddCategoryPortType" + variable="AddCategoryOut"/> </sequence> <else> <!--Handling IliasFault, sending a Faultreply --> @@ -191,7 +208,10 @@ <to variable="IliasFault" part="context"/> </copy> </assign> - <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCategory" portType="tns:AddCategoryPortType" faultName="tns:IliasFault" variable="IliasFault"/> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCategory" + portType="tns:AddCategoryPortType" + faultName="tns:IliasFault" + variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.wsdl 2009-07-02 13:28:32 UTC (rev 299) @@ -5,27 +5,33 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> </xsd:schema> </types> <message name="AddCategoryRequest"> - <part name="SID" type="xsd:string"/> - <part name="category" type="ns:categoryType"/> + <part name="SID" type="xsd:string"/> + <part name="category" type="ns:categoryType"/> + <part name="EPR" element="ns1:service-ref"/> </message> <message name="AddCategoryResponse"> <part name="categoryId" type="xsd:int"/> </message> <portType name="AddCategoryPortType"> <operation name="addCategory"> - <input name="input1" message="tns:AddCategoryRequest"/> - <output name="output1" message="tns:AddCategoryResponse"/> - <fault name="SystemFault" message="ns0:systemFaultMessage"/> - <fault name="IliasFault" message="ns0:iliasFaultMessage"/> - <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> + <input name="input1" message="tns:AddCategoryRequest"/> + <output name="output1" message="tns:AddCategoryResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="AddCategory"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -1,28 +1,27 @@ <?xml version="1.0" encoding="UTF-8"?> -<process - name="AddCourse" - targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" - 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" - xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" - xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" - xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" - xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" - xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" - xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> +<process name="AddCourse" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" + 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/AddCourse" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <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="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/AddCourse" location="AddCourse.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" @@ -93,7 +92,11 @@ <to variable="SystemFault" part="context"/> </copy> </assign> - <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:SystemFault" variable="SystemFault"/> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + faultName="tns:SystemFault" + variable="SystemFault"/> </sequence> </catch> @@ -121,23 +124,35 @@ <to variable="UnknownFault" part="process"/> </copy> </assign> - <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:UnknownFault" variable="UnknownFault"/> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + faultName="tns:UnknownFault" + variable="UnknownFault"/> </sequence> </catchAll> </faultHandlers> <sequence> - <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" - portType="tns:AddCoursePortType" - variable="AddCourseIn"/> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + variable="AddCourseIn"/> <assign name="init"> <copy> <from>0</from> <to variable="CategoryRefId"/> </copy> </assign> - + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$AddCourseIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + <!-- Prepeare search by title --> <assign name="prepareGetObjectsByTitle"> <copy> @@ -261,9 +276,9 @@ </assign> <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" - portType="tns:ILIASSoapWebservicePortType" - inputVariable="AddObjectIn" - outputVariable="AddObjectOut"> + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddObjectIn" + outputVariable="AddObjectOut"> <sxt:trace> <sxt:log level="info" location="onStart"> <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from> @@ -356,9 +371,9 @@ </assign> <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" - portType="tns:ILIASSoapWebservicePortType" - inputVariable="IliasAddCourseIn" - outputVariable="IliasAddCourseOut"> + portType="tns:ILIASSoapWebservicePortType" + inputVariable="IliasAddCourseIn" + outputVariable="IliasAddCourseOut"> <sxt:trace> <sxt:log level="info" location="onStart"> <from>concat('*** Adding Course (refId: ', $IliasAddCourseIn.target_id, ', xml: ', $IliasAddCourseIn.crs_xml, ')')</from> @@ -380,9 +395,10 @@ <to>$AddCourseOut.courseId</to> </copy> </assign> - <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" - portType="tns:AddCoursePortType" - variable="AddCourseOut"/> + <reply name="returnCourseId" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + variable="AddCourseOut"/> </sequence> <else> <sequence> @@ -409,7 +425,11 @@ </copy> </assign> - <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" portType="tns:AddCoursePortType" faultName="tns:IliasFault" variable="IliasFault"/> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" + portType="tns:AddCoursePortType" + faultName="tns:IliasFault" + variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.wsdl 2009-07-02 13:28:32 UTC (rev 299) @@ -5,27 +5,33 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> </xsd:schema> </types> <message name="AddCourseRequest"> <part name="SID" type="xsd:string"/> <part name="course" type="ns:courseType"/> + <part name="EPR" element="ns1:service-ref"/> </message> <message name="AddCourseResponse"> <part name="courseId" type="xsd:int"/> </message> <portType name="AddCoursePortType"> <operation name="addCourse"> - <input name="input1" message="tns:AddCourseRequest"/> - <output name="output1" message="tns:AddCourseResponse"/> - <fault name="SystemFault" message="ns0:systemFaultMessage"/> - <fault name="IliasFault" message="ns0:iliasFaultMessage"/> - <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> + <input name="input1" message="tns:AddCourseRequest"/> + <output name="output1" message="tns:AddCourseResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="AddCourse"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -1,30 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> -<process - name="DeleteCategory" - targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteCategory" - 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/DeleteCategory" - xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" - xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" - xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" - xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" - xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> +<process name="DeleteCategory" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteCategory" + 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/DeleteCategory" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" myRole="DeleteCategoryPortTypeRole"/> </partnerLinks> + <variables> <variable name="DeleteObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteObjectResponse"/> @@ -34,10 +35,11 @@ <!--FaultHandling Variables --> - <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> - <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> - <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> </variables> + <sequence> <scope name="DeleteCategoryScope" xmlns:tns="urn:ilUserAdministration"> <faultHandlers> @@ -97,7 +99,10 @@ <to variable="UnknownFault" part="process"/> </copy> </assign> - <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCategory" portType="ns1:DeleteCategoryPortType" faultName="ns1:UnknownFault" variable="UnknownFault"/> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCategory" + portType="ns1:DeleteCategoryPortType" + faultName="ns1:UnknownFault" + variable="UnknownFault"/> </sequence> </catchAll> </faultHandlers> @@ -108,6 +113,15 @@ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" portType="tns:DeleteCategoryPortType" variable="DeleteCategoryIn"/> + + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$DeleteCategoryIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + <!--Fake refId TODO --> <assign name="prepareForDeleteCategory"> <copy> @@ -170,9 +184,10 @@ <to variable="IliasFault" part="process"/> </copy> </assign> - <reply name="replyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCategory" - portType="ns1:DeleteCategoryPortType" - faultName="ns1:IliasFault" variable="IliasFault"/> + <reply name="replyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCategory" + portType="ns1:DeleteCategoryPortType" + faultName="ns1:IliasFault" + variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.wsdl 2009-07-02 13:28:32 UTC (rev 299) @@ -5,36 +5,26 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> </xsd:schema> </types> <message name="deleteCategoryRequest"> <part name="SID" type="xsd:string"/> <part name="category" type="ns:categoryType"/> + <part name="EPR" element="ns1:service-ref"/> </message> <message name="deleteCategoryResponse"> <part name="success" type="xsd:boolean"/> </message> -<!-- - <message name="faultMessage"> - <part name="cause" type="xsd:string"/> - </message> ---> -<!-- - <message name="iliasFaultMessage"> - <part name="cause" type="xsd:string"/> - </message> - <message name="unknownFaultMessage"> - <part name="cause" type="xsd:string"/> - </message> - <message name="systemFaultMessage"> - <part name="cause" type="xsd:string"/> - </message> ---> <portType name="DeleteCategoryPortType"> <operation name="deleteCategory"> <input name="input1" message="tns:deleteCategoryRequest"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -1,28 +1,30 @@ <?xml version="1.0" encoding="UTF-8"?> -<process - name="DeleteCourse" - targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" - 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" - xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" - xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" - xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" - xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" > - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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/"/> +<process name="DeleteCourse" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" + 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/DeleteCourse" + xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" > + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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/"/> + <partnerLinks> <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" myRole="DeleteCoursePortTypeRole"/> </partnerLinks> + <variables> <variable name="DeleteCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseResponse"/> <variable name="DeleteCourseIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteCourseRequest"/> @@ -31,11 +33,12 @@ <!--FaultHandling Variables --> - <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> - <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> - <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> </variables> + <sequence> <scope name="deleteCourseScope"> <faultHandlers> @@ -67,7 +70,10 @@ <to variable="SystemFault" part="process"/> </copy> </assign> - <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:SystemFault" variable="SystemFault"/> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteCourse" + portType="ns0:DeleteCoursePortType" + faultName="ns0:SystemFault" + variable="SystemFault"/> </sequence> </catch> @@ -99,7 +105,10 @@ <to variable="UnknownFault" part="process"/> </copy> </assign> - <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:UnknownFault" variable="UnknownFault"/> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteCourse" + portType="ns0:DeleteCoursePortType" + faultName="ns0:UnknownFault" + variable="UnknownFault"/> </sequence> </catchAll> </faultHandlers> @@ -109,6 +118,15 @@ xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" portType="tns:DeleteCoursePortType" variable="DeleteCourseOperationIn"/> + + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$DeleteCourseOperationIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + <!-- TODO set the course Id--> <assign name="prepareForDeleteCourse"> <copy> @@ -125,6 +143,7 @@ portType="tns:ILIASSoapWebservicePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> + <!--Send a normal Reply if DeleteCourse succeed, otherwise reply with an Ilias Fault --> <if name="IfDeleteCourseSucceed"> <condition>$DeleteCourseOut.success</condition> @@ -167,7 +186,10 @@ <to variable="IliasFault" part="process"/> </copy> </assign> - <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCourse" portType="ns0:DeleteCoursePortType" faultName="ns0:IliasFault" variable="IliasFault"/> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteCourse" + portType="ns0:DeleteCoursePortType" + faultName="ns0:IliasFault" + variable="IliasFault"/> </sequence> </else> </if> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.wsdl 2009-07-02 13:28:32 UTC (rev 299) @@ -5,27 +5,33 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> <types> <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> </xsd:schema> </types> <message name="DeleteCourseRequest"> - <part name="SID" type="xsd:string"/> - <part name="course" type="ns:courseType"/> + <part name="SID" type="xsd:string"/> + <part name="course" type="ns:courseType"/> + <part name="EPR" element="ns1:service-ref"/> </message> <message name="DeleteCourseResponse"> - <part name="success" type="xsd:boolean"/> + <part name="success" type="xsd:boolean"/> </message> <portType name="DeleteCoursePortType"> <operation name="deleteCourse"> - <input name="input1" message="tns:DeleteCourseRequest"/> - <output name="output1" message="tns:DeleteCourseResponse"/> - <fault name="SystemFault" message="ns0:systemFaultMessage"/> - <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> - <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <input name="input1" message="tns:DeleteCourseRequest"/> + <output name="output1" message="tns:DeleteCourseResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> </operation> </portType> <plnk:partnerLinkType name="DeleteCourse"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -125,7 +125,6 @@ <from>$LoginIn.EPR</from> <to partnerLink="ILIAS"/> </copy> - </assign> <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-02 12:19:58 UTC (rev 298) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-02 13:28:32 UTC (rev 299) @@ -272,6 +272,10 @@ <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" @@ -286,9 +290,9 @@ </assign> <assign name="addCourseSuccess"> <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> </assign> </sequence> <elseif> @@ -309,6 +313,10 @@ <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" @@ -317,9 +325,9 @@ outputVariable="UpdateCourseOut"/> <assign name="updateCourseSuccess"> <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> </assign> </sequence> </elseif> @@ -341,6 +349,10 @@ <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" @@ -355,7 +367,6 @@ </copy> </assign> - </sequence> </elseif> <else> @@ -365,9 +376,9 @@ <!--Set Fault Data --> <assign name="PrepareForThrowFaultOperationNotFounded"> <sxt:trace> - ... [truncated message content] |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[310]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-07-03 14:33:13
|
Revision: 310 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=310&view=rev Author: pkasprzak Date: 2009-07-03 14:33:10 +0000 (Fri, 03 Jul 2009) Log Message: ----------- * Support for account / accountMessage in LSFAdapter / ObjectProcessor * Added preliminary version of IliasAdapter:AddAccount.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/working-addUser.xml.xml Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-03 14:33:10 UTC (rev 310) @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process name="AddAccount" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/AddAccount" + 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/AddAccount" + xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" location="AddAccount.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://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" partnerLinkType="tns:AddAccount" + myRole="AddAccountPortTypeRole"/> + </partnerLinks> + + <variables> + <variable name="AddUserOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addUserResponse"/> + <variable name="AddUserIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addUserRequest"/> + <variable name="AddAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" messageType="tns:AddAccountRequest"/> + </variables> + + <scope name="AddAccountScope"> + <variables> + <variable name="AddAccountOut" messageType="ns0:AddAccountResponse"/> + </variables> + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addAccount" + portType="ns0:AddAccountPortType" + variable="AddAccountIn"/> + + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$AddAccountIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + + <assign name="setAccountData"> + <copy ignoreMissingFromData="yes"> + <from>$AddAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value</from> + <to>$AddUserIn.user_data/firstname</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value</from> + <to>$AddUserIn.user_data/lastname</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddAccountIn.account/dt:attribute[dt:name = 'emailAddress']/dt:value</from> + <to>$AddUserIn.user_data/email</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$AddAccountIn.account/dt:attribute[dt:name = 'gender']/dt:value</from> + <to>$AddUserIn.user_data/gender</to> + </copy> + </assign> + + <assign name="prepareAddAccount"> + <!-- Set SID --> + <copy> + <from>$AddAccountIn.SID</from> + <to variable="AddUserIn" part="sid"/> + </copy> + <copy> + <from>'test'</from> + <to>$AddUserIn.user_data/login</to> + </copy> + </assign> + + <invoke name="addAccount" partnerLink="ILIAS" operation="addUser" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddUserIn" + outputVariable="AddUserOut"/> + + <assign name="prepareReply"> + <copy> + <from>$AddUserOut.user_id</from> + <to>$AddAccountOut.accountId</to> + </copy> + </assign> + + <reply name="replyWithAccountId" partnerLink="IliasAdapter" operation="addAccount" + portType="ns0:AddAccountPortType" + variable="AddAccountOut"/> + </sequence> + </scope> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.wsdl 2009-07-03 14:33:10 UTC (rev 310) @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="AddAccount" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + + <types> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> + <message name="AddAccountRequest"> + <part name="SID" type="xsd:string"/> + <part name="account" type="ns:accountType"/> + <part name="EPR" element="ns1:service-ref"/> + </message> + <message name="AddAccountResponse"> + <part name="accountId" type="xsd:int"/> + </message> + <portType name="AddAccountPortType"> + <operation name="addAccount"> + <input name="input1" message="tns:AddAccountRequest"/> + <output name="output1" message="tns:AddAccountResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> + </operation> + </portType> + <plnk:partnerLinkType name="AddAccount"> + <!-- 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="AddAccountPortTypeRole" portType="tns:AddAccountPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/working-addUser.xml.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/working-addUser.xml.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/working-addUser.xml.xml 2009-07-03 14:33:10 UTC (rev 310) @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : working-addUser.xml.xml + Created on : 3. Juli 2009, 16:15 + Author : pete + Description: + Purpose of the document follows. +--> +<soapenv: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:urn="urn:ilUserAdministration"> + <soapenv:Header/> + <soapenv:Body> + <urn:addUser soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> + <sid xsi:type="xsd:string">fdf82521fc3638bedd1ac46d0eb8cf33::test</sid> + <user_data xsi:type="urn:ilUserData"> + <!--You may enter the following 36 items in any order--> + <usr_id xsi:type="xsd:int"></usr_id> + <login xsi:type="xsd:string">test</login> + <passwd xsi:type="xsd:string">test123</passwd> + <firstname xsi:type="xsd:string">fname</firstname> + <lastname xsi:type="xsd:string">lastname</lastname> + <title xsi:type="xsd:string"></title> + <gender xsi:type="xsd:string"></gender> + <email xsi:type="xsd:string">bl...@bl...</email> + <institution xsi:type="xsd:string"></institution> + <street xsi:type="xsd:string"></street> + <city xsi:type="xsd:string"></city> + <zipcode xsi:type="xsd:string"></zipcode> + <country xsi:type="xsd:string"></country> + <phone_office xsi:type="xsd:string"></phone_office> + <last_login xsi:type="xsd:string"></last_login> + <last_update xsi:type="xsd:string"></last_update> + <create_date xsi:type="xsd:string"></create_date> + <hobby xsi:type="xsd:string"></hobby> + <department xsi:type="xsd:string"></department> + <phone_home xsi:type="xsd:string"></phone_home> + <phone_mobile xsi:type="xsd:string"></phone_mobile> + <fax xsi:type="xsd:string"></fax> + <time_limit_owner xsi:type="xsd:int">7</time_limit_owner> + <time_limit_unlimited xsi:type="xsd:int">1</time_limit_unlimited> + <time_limit_from xsi:type="xsd:int"></time_limit_from> + <time_limit_until xsi:type="xsd:int"></time_limit_until> + <time_limit_message xsi:type="xsd:int"></time_limit_message> + <referral_comment xsi:type="xsd:string"></referral_comment> + <matriculation xsi:type="xsd:string"></matriculation> + <active xsi:type="xsd:int">1</active> + <accepted_agreement xsi:type="xsd:boolean"></accepted_agreement> + <approve_date xsi:type="xsd:string"></approve_date> + <user_skin xsi:type="xsd:string"></user_skin> + <user_style xsi:type="xsd:string"></user_style> + <user_language xsi:type="xsd:string">en</user_language> + <import_id xsi:type="xsd:string"></import_id> + </user_data> + <global_role_id xsi:type="xsd:int">4</global_role_id> + </urn:addUser> + </soapenv:Body> +</soapenv:Envelope> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[314]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-07-07 10:18:31
|
Revision: 314 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=314&view=rev Author: pkasprzak Date: 2009-07-07 10:01:35 +0000 (Tue, 07 Jul 2009) Log Message: ----------- * initial version of DeleteAccount.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-07 10:01:35 UTC (rev 314) @@ -0,0 +1,198 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process name="DeleteAccount" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteAccount" + 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:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/DeleteAccount"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" location="DeleteAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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/"/> + + <partnerLinks> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" partnerLinkType="tns:DeleteAccount" + myRole="DeleteAccountPortTypeRole"/> + </partnerLinks> + + <variables> + <variable name="DeleteAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountResponse"/> + <variable name="DeleteUserOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteUserResponse"/> + <variable name="DeleteUserIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:deleteUserRequest"/> + <variable name="DeleteAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountRequest"/> + + <!-- FaultHandling Variables --> + + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + </variables> + + <sequence> + <scope name="deleteAccountScope"> + <faultHandlers> + + <!-- Handling SystemFault --> + <catch faultName="sxeh:systemFault"> + <sequence> + <assign name="prepareSystemFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'DeleteAccount failed with a SystemFault!'</from> + <to variable="SystemFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="SystemFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:systemFault" + variable="SystemFault"/> + </sequence> + </catch> + + <!--Handling unspecific Faults --> + <catchAll> + + <sequence> + <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'DeleteAccount failed with an UnknownFault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="UnknownFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:UnknownFault" + variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="deleteAccount" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount" + portType="ns0:DeleteAccountPortType" + variable="DeleteAccountIn"/> + <!-- Set Ilias EPR --> + <assign name="setIliasEPR"> + <copy> + <from>$DeleteAccountIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + + <!-- TODO set the course Id--> + <assign name="prepareDeleteAccount"> + <copy> + <from variable="DeleteAccountIn" part="SID"/> + <to variable="DeleteUserIn" part="sid"/> + </copy> + <copy> + <from>177</from> + <to variable="DeleteUserIn" part="user_id"/> + </copy> + </assign> + <invoke name="deleteAccount" partnerLink="ILIAS" operation="deleteUser" + xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="DeleteUserIn" + outputVariable="DeleteUserOut"/> + + <!-- Send a normal reply if DeleteCourse succeeded, otherwise reply with an Ilias Fault --> + <if name="IfDeleteAccountSucceeded"> + <condition>$DeleteAccountOut.success</condition> + <sequence> + <assign name="prepareReply"> + <copy> + <from variable="DeleteUserOut" part="success"/> + <to variable="DeleteAccountOut" part="success"/> + </copy> + </assign> + <reply name="reply" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + variable="DeleteAccountOut" + xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount"/> + </sequence> + + <else> + <!--Reply with an Ilias Fault --> + <sequence> + <!-- Set Fault Data--> + <assign name="prepareIliasFaultReply"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** IliasFault occured in deleteAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>false()</from> + <to variable="DeleteAccountOut" part="success"/> + </copy> + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($DeleteAccountIn.account)</from> + <to variable="IliasFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="deleteAccount" + portType="ns0:DeleteAccountPortType" + faultName="ns0:IliasFault" + variable="IliasFault"/> + </sequence> + </else> + </if> + + </sequence> + </scope> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.wsdl 2009-07-07 10:01:35 UTC (rev 314) @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="DeleteAccount" + targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" + xmlns:ns1="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/serviceref" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/DeleteAccount"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> + <message name="deleteAccountRequest"> + <part name="SID" type="xsd:string"/> + <part name="account" type="ns:accountType"/> + <part name="EPR" element="ns0:service-ref"/> + </message> + <message name="deleteAccountResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="DeleteAccountPortType"> + <operation name="deleteAccount"> + <input name="input1" message="tns:deleteAccountRequest"/> + <output name="output1" message="tns:deleteAccountResponse"/> + <fault name="SystemFault" message="ns1:systemFaultMessage"/> + <fault name="UnknownFault" message="ns1:unknownFaultMessage"/> + <fault name="IliasFault" message="ns1:iliasFaultMessage"/> + </operation> + </portType> + <plnk:partnerLinkType name="DeleteAccount"> + <plnk:role name="DeleteAccountPortTypeRole" portType="tns:DeleteAccountPortType"/> + </plnk:partnerLinkType> +</definitions> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[330]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-07-08 12:59:51
|
Revision: 330 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=330&view=rev Author: alexloewen Date: 2009-07-08 12:59:44 +0000 (Wed, 08 Jul 2009) Log Message: ----------- added fault handling in addAccount, some bugs fixed in addCategory, AddCourse, DeleteAccount Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-08 12:50:59 UTC (rev 329) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-08 12:59:44 UTC (rev 330) @@ -12,12 +12,14 @@ xmlns:ns0="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" xmlns:ex="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"> <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" location="AddAccount.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://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" @@ -42,7 +44,73 @@ <scope name="AddAccountScope"> <variables> <variable name="AddAccountOut" messageType="ns0:AddAccountResponse"/> + + + <!-- FaultHandling Variables --> + + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> </variables> + + <faultHandlers> + + <!-- Handling SystemFault --> + <catch faultName="sxeh:systemFault"> + <sequence> + <assign name="prepareSystemFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in AddAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>'AddAccount failed with a SystemFault!'</from> + <to variable="SystemFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddAccountIn.account)</from> + <to variable="SystemFault" part="context"/> + </copy> + <copy> + <from>'AddAccount.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="addAccount" portType="ns0:AddAccountPortType" faultName="ns0:SystemFault" variable="SystemFault"/> + </sequence> + </catch> + + <!--Handling unspecific Faults --> + <catchAll> + + <sequence> + <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in AddAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'AddAccount failed with an UnknownFault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddAccountIn.account)</from> + <to variable="UnknownFault" part="context"/> + </copy> + <copy> + <from>'DeleteAccount.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="addAccount" portType="ns0:AddAccountPortType" faultName="ns0:UnknownFault" variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="addAccount" portType="ns0:AddAccountPortType" @@ -67,8 +135,7 @@ </copy> </assign> <elseif> - <condition> $AddAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value/text() - and $AddAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value/text()</condition> + <condition> $AddAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value/text() and $AddAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value/text()</condition> <!-- Construct login from firstname + surname --> <assign> <copy> @@ -90,8 +157,7 @@ <!-- Construct Password --> <if name="ConstructPassword"> - <condition> $AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text() - and string-length($AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text()) > 5</condition> + <condition> $AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text() and string-length($AddAccountIn.account/dt:attribute[dt:name = 'password']/dt:value/text()) > 5</condition> <!-- Password is set in attributes AND long enough --> <assign> <copy> @@ -216,17 +282,46 @@ portType="tns:ILIASSoapWebservicePortType" inputVariable="AddUserIn" outputVariable="AddUserOut"/> - - <assign name="prepareReply"> - <copy> - <from>$AddUserOut.user_id</from> - <to>$AddAccountOut.accountId</to> - </copy> - </assign> - - <reply name="replyWithAccountId" partnerLink="IliasAdapter" operation="addAccount" + <if name="IfReturnedIdIsOk"> + <condition>$AddUserOut.user_id >= 0</condition> + <sequence> + <assign name="prepareReply"> + <copy> + <from>$AddUserOut.user_id</from> + <to>$AddAccountOut.accountId</to> + </copy> + </assign> + <reply name="replyWithAccountId" partnerLink="IliasAdapter" operation="addAccount" portType="ns0:AddAccountPortType" variable="AddAccountOut"/> + </sequence> + <else> + <sequence> + <assign name="prepareIliasFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Ilias Fault occured in AddAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>'AddAccount.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($AddAccountIn.account)</from> + <to variable="IliasFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="addAccount" portType="ns0:AddAccountPortType" faultName="ns0:IliasFault" variable="IliasFault"/> + </sequence> + </else> + </if> </sequence> </scope> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-07-08 12:50:59 UTC (rev 329) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-07-08 12:59:44 UTC (rev 330) @@ -176,9 +176,9 @@ <!-- Check if returned Reference Id is valid --> <if name="IfRefIdIsOk" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory"> - <condition>0 <= $AddObjectOut.ref_id</condition> <!--Sending a normal Reply --> - <sequence> + <condition>$AddObjectOut.ref_id >= 0</condition> + <sequence> <assign name="prepareReply"> <copy> <from>$AddObjectOut.ref_id</from> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-08 12:50:59 UTC (rev 329) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-07-08 12:59:44 UTC (rev 330) @@ -387,7 +387,7 @@ <!-- If courseId less or equel 0, fault reply, otherwise reply with CourseId--> <if> - <condition>0 <= $IliasAddCourseOut.course_id</condition> + <condition>$IliasAddCourseOut.course_id >= 0</condition> <sequence> <assign name="prepeareReply"> <copy> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-08 12:50:59 UTC (rev 329) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteAccount.bpel 2009-07-08 12:59:44 UTC (rev 330) @@ -51,12 +51,8 @@ <sxt:log level="info" location="onStart"> <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> </sxt:log> - </sxt:trace> + </sxt:trace> <copy> - <from>false()</from> - <to variable="DeleteAccountOut" part="success"/> - </copy> - <copy> <from>'DeleteAccount failed with a SystemFault!'</from> <to variable="SystemFault" part="cause"/> </copy> @@ -86,12 +82,8 @@ <sxt:log level="info" location="onStart"> <from>concat('*** System Fault occured in deleteAccount()!', ' ')</from> </sxt:log> - </sxt:trace> + </sxt:trace> <copy> - <from>false()</from> - <to variable="DeleteAccountOut" part="success"/> - </copy> - <copy> <from>'DeleteAccount failed with an UnknownFault'</from> <to variable="UnknownFault" part="cause"/> </copy> @@ -168,11 +160,8 @@ <from>concat('*** IliasFault occured in deleteAccount()!', ' ')</from> </sxt:log> </sxt:trace> + <copy> - <from>false()</from> - <to variable="DeleteAccountOut" part="success"/> - </copy> - <copy> <from>'Ilias returned failed.'</from> <to variable="IliasFault" part="cause"/> </copy> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[331]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-07-08 13:03:55
|
Revision: 331 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=331&view=rev Author: alexloewen Date: 2009-07-08 13:03:53 +0000 (Wed, 08 Jul 2009) Log Message: ----------- some bugs fixed in DeleteCategory, DeleteCourse. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-07-08 12:59:44 UTC (rev 330) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-07-08 13:03:53 UTC (rev 331) @@ -53,11 +53,8 @@ <from>concat('*** System Fault occured in deleteCategory()!', ' ')</from> </sxt:log> </sxt:trace> + <copy> - <from>false()</from> - <to variable="DeleteCategoryOut" part="success"/> - </copy> - <copy> <from>'DeleteCategory failed with a SystemFault.'</from> <to variable="SystemFault" part="cause"/> </copy> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-08 12:59:44 UTC (rev 330) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-08 13:03:53 UTC (rev 331) @@ -54,11 +54,8 @@ <from>concat('*** System Fault occured in deleteCourse()!', ' ')</from> </sxt:log> </sxt:trace> + <copy> - <from>false()</from> - <to variable="DeleteCourseOut" part="success"/> - </copy> - <copy> <from>'DeleteCourse failed with a SystemFault.'</from> <to variable="SystemFault" part="cause"/> </copy> @@ -89,11 +86,8 @@ <from>concat('*** System Fault occured in deleteCourse()!', ' ')</from> </sxt:log> </sxt:trace> + <copy> - <from>false()</from> - <to variable="DeleteCourseOut" part="success"/> - </copy> - <copy> <from>'DeleteCourse failed with an UnknownFault'</from> <to variable="UnknownFault" part="cause"/> </copy> @@ -170,11 +164,8 @@ <from>concat('*** IliasFault occured in deleteCourse()!', ' ')</from> </sxt:log> </sxt:trace> + <copy> - <from>false()</from> - <to variable="DeleteCourseOut" part="success"/> - </copy> - <copy> <from>'Ilias returned failed.'</from> <to variable="IliasFault" part="cause"/> </copy> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[333]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <ale...@us...> - 2009-07-09 14:24:29
|
Revision: 333 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=333&view=rev Author: alexloewen Date: 2009-07-09 14:24:24 +0000 (Thu, 09 Jul 2009) Log Message: ----------- added updateAccount. fixed some bugs. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixedWrapper.wsdl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-09 14:24:14 UTC (rev 332) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddAccount.bpel 2009-07-09 14:24:24 UTC (rev 333) @@ -19,7 +19,7 @@ <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <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="urn:ilUserAdministration" location="ilias-3.10.5-fixed.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://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" @@ -103,7 +103,7 @@ <to variable="UnknownFault" part="context"/> </copy> <copy> - <from>'DeleteAccount.bpel'</from> + <from>'AddAccount.bpel'</from> <to variable="UnknownFault" part="process"/> </copy> </assign> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-09 14:24:14 UTC (rev 332) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-09 14:24:24 UTC (rev 333) @@ -40,6 +40,7 @@ <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"/> @@ -58,6 +59,7 @@ <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"/> @@ -637,6 +639,8 @@ <scope name="AccountScope"> <variables> + <variable name="UpdateAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" messageType="tns:UpdateAccountResponse"/> + <variable name="UpdateAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" messageType="tns:UpdateAccountRequest"/> <variable name="DeleteAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountResponse"/> <variable name="DeleteAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" messageType="tns:deleteAccountRequest"/> <variable name="AddAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" messageType="tns:AddAccountResponse"/> @@ -753,46 +757,42 @@ </copy> </assign> </sequence> -<!-- + <elseif> ---> + <!-- Event == "UPDATE" --> -<!-- - <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'UPDATE'</condition> + + <condition>$ProcessAccountIn.accountMessage/dt:event = 'UPDATE'</condition> <sequence> - <assign name="prepareUpdateCategory"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** updateCategory()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> - <to>$UpdateCategoryIn.category</to> - </copy> - <copy> - <from>$SID</from> - <to>$UpdateCategoryIn.SID</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$UpdateCategoryIn.EPR</to> - </copy> - </assign> - <invoke name="updateCategory" partnerLink="UpdateCategory" operation="updateCategory" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" - portType="tns:UpdateCategoryPortType" - inputVariable="UpdateCategoryIn" - outputVariable="UpdateCategoryOut"/> - <assign name="updateCategorySuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> + <assign name="prepareUpdateAccount"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** updateAccount()', '')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$ProcessAccountIn.accountMessage/dt:account</from> + <to>$UpdateAccountIn.account</to> + </copy> + <copy> + <from>$SID</from> + <to>$UpdateAccountIn.SID</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$UpdateAccountIn.EPR</to> + </copy> + </assign> + <invoke name="updateAccount" partnerLink="UpdateAccount" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" inputVariable="UpdateAccountIn" outputVariable="UpdateAccountOut"/> + <assign name="updateAccountSuccess"> + <copy> + <from>$STATUS_SUCCESS</from> + <to>$ReplyStatus</to> + </copy> + </assign> </sequence> </elseif> ---> + <elseif> <!-- Event == "DELETE" --> <condition>$ProcessAccountIn.accountMessage/dt:event = 'DELETE'</condition> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.bpel 2009-07-09 14:24:24 UTC (rev 333) @@ -0,0 +1,240 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="UpdateAccount" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateAccount" + 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://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateAccount" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" + xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:dt="http://cse.campussource.de/schema/DataTypes" + xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" location="UpdateAccount.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://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" partnerLinkType="tns:UpdateAccount" myRole="UpdateAccountPortTypeRole"/> + </partnerLinks> + <variables> + <variable name="GetUserOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getUserResponse"/> + <variable name="GetUserIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:getUserRequest"/> + <variable name="UpdateUserOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateUserResponse"/> + <variable name="UpdateUserIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateUserRequest"/> + <variable name="UpdateAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" messageType="tns:UpdateAccountResponse"/> + <variable name="UpdateAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" messageType="tns:UpdateAccountRequest"/> + + <!--FaultHandling Variables --> + <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> + <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> + <variable name="IliasFault" messageType="fltns:iliasFaultMessage"/> + + </variables> + <sequence> + <scope name="UpdateAccountScope"> + + <faultHandlers> + + <!-- Handling SystemFault --> + <catch faultName="sxeh:systemFault"> + <sequence> + <assign name="prepareSystemFaultReply"> + <!-- Set Fault Data --> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** System Fault occured in UpdateAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>'UpdateAccount failed with a SystemFault!'</from> + <to variable="SystemFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($UpdateAccountIn.account)</from> + <to variable="SystemFault" part="context"/> + </copy> + <copy> + <from>'UpdateAccount.bpel'</from> + <to variable="SystemFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithSystemFault" partnerLink="IliasAdapter" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" faultName="tns:SystemFault" variable="SystemFault"/> + </sequence> + </catch> + + <!-- Handling unspecific Faults --> + <catchAll> + + <sequence> + <assign name="prepareUnknownFaultReply"> + <!-- Set Fault Data --> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Unknown Fault occured in UpdateAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'UpdateAccount failed with an UnknownFault'</from> + <to variable="UnknownFault" part="cause"/> + </copy> + <copy> + <from>sxxf:doMarshal($UpdateAccountIn.account)</from> + <to variable="UnknownFault" part="context"/> + </copy> + <copy> + <from>'UpdateAccount.bpel'</from> + <to variable="UnknownFault" part="process"/> + </copy> + </assign> + <reply name="ReplyWithUnknownFault" partnerLink="IliasAdapter" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" faultName="tns:UnknownFault" variable="UnknownFault"/> + </sequence> + </catchAll> + </faultHandlers> + + <sequence> + <receive name="Start" createInstance="yes" partnerLink="IliasAdapter" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" variable="UpdateAccountIn"/> + + + <!-- Set Ilias EPR --> + <assign name="setERP"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('***Progressing UpdateAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$UpdateAccountIn.EPR</from> + <to partnerLink="ILIAS"/> + </copy> + + </assign> + + <!--Set Requiered Data --> + <assign name="SetUserID"> + <copy> + <from variable="UpdateAccountIn" part="SID"/> + <to variable="GetUserIn" part="sid"/> + </copy> + <copy> + <from>290</from> + <to variable="GetUserIn" part="user_id"/> + </copy> + </assign> + <invoke name="GetUserInvoke" partnerLink="ILIAS" operation="getUser" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="GetUserIn" outputVariable="GetUserOut"/> + <assign name="CopyOldData"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** User Data from Ilias', ' :', sxxf:doMarshal($GetUserOut.user_data))</from> + </sxt:log> + </sxt:trace> + <copy> + <from variable="GetUserOut" part="user_data"/> + <to variable="UpdateUserIn" part="user_data"/> + </copy> + </assign> + <assign name="SetReqData"> + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'login']/dt:value</from> + <to>$UpdateUserIn.user_data/login</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'password']/dt:value</from> + <to>$UpdateUserIn.user_data/passwd</to> + </copy> + </assign> + <assign name="setOptionalAccountData"> + + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'firstName']/dt:value</from> + <to>$UpdateUserIn.user_data/firstname</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'surname']/dt:value</from> + <to>$UpdateUserIn.user_data/lastname</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'emailAddress']/dt:value</from> + <to>$UpdateUserIn.user_data/email</to> + </copy> + <copy ignoreMissingFromData="yes"> + <from>$UpdateAccountIn.account/dt:attribute[dt:name = 'gender']/dt:value</from> + <to>$UpdateUserIn.user_data/gender</to> + </copy> + </assign> + + <assign name="prepareForUpdateUserInvoke"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** updateUser-xml: ', sxxf:doMarshal($UpdateUserIn.user_data))</from> + </sxt:log> + </sxt:trace> + + <!-- Set SID --> + <copy> + <from variable="UpdateAccountIn" part="SID"/> + <to variable="UpdateUserIn" part="sid"/> + </copy> + + <!-- TODO global role + <copy> + <from>4</from> + <to>$UpdateUserIn.global_role_id</to> + </copy> + + --> + + + + </assign> + <invoke name="UpdateUserInvoke" partnerLink="ILIAS" operation="updateUser" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateUserIn" outputVariable="UpdateUserOut"/> + <if name="UpdateUserSucceed"> + <condition>$UpdateUserOut.success</condition> + <sequence> + <assign name="prepareForNormalResponce"> + <copy> + <from variable="UpdateUserOut" part="success"/> + <to variable="UpdateAccountOut" part="success"/> + </copy> + </assign> + <reply name="Return" partnerLink="IliasAdapter" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" variable="UpdateAccountOut"/> + </sequence> + <else> + <sequence> + <assign name="prepareIliasFaultReply"> + <!-- Set Fault Data--> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Ilias Fault occured in UpdateAccount()!', ' ')</from> + </sxt:log> + </sxt:trace> + + <copy> + <from>'Ilias returned failed.'</from> + <to variable="IliasFault" part="cause"/> + </copy> + <copy> + <from>'UpdateAccount.bpel'</from> + <to variable="IliasFault" part="process"/> + </copy> + <copy> + <from>sxxf:doMarshal($UpdateAccountIn.account)</from> + <to variable="IliasFault" part="context"/> + </copy> + </assign> + <reply name="ReplyWithIliasFault" partnerLink="IliasAdapter" operation="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" portType="tns:UpdateAccountPortType" faultName="tns:IliasFault" variable="IliasFault"/> + </sequence> + </else> + </if> + + </sequence> + </scope> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateAccount.wsdl 2009-07-09 14:24:24 UTC (rev 333) @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="UpdateAccount" targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" + xmlns:ns="http://cse.campussource.de/schema/DataTypes" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns:ns0="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" + xmlns:ns1="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + + <import location="faultHandlingMsg.wsdl" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg"/> + + <types> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> + <message name="UpdateAccountRequest"> + <part name="SID" type="xsd:string"/> + <part name="account" type="ns:accountType"/> + <part name="EPR" element="ns1:service-ref"/> + </message> + <message name="UpdateAccountResponse"> + <part name="success" type="xsd:boolean"/> + </message> + <portType name="UpdateAccountPortType"> + <operation name="UpdateAccount"> + <input name="input1" message="tns:UpdateAccountRequest"/> + <output name="output1" message="tns:UpdateAccountResponse"/> + <fault name="SystemFault" message="ns0:systemFaultMessage"/> + <fault name="IliasFault" message="ns0:iliasFaultMessage"/> + <fault name="UnknownFault" message="ns0:unknownFaultMessage"/> + </operation> + </portType> + <plnk:partnerLinkType name="UpdateAccount"> + <!-- 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="UpdateAccountPortTypeRole" portType="tns:UpdateAccountPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixedWrapper.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixedWrapper.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixedWrapper.wsdl 2009-07-09 14:24:24 UTC (rev 333) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<definitions + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ilias-3.10.5-fixedWrapper" targetNamespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-fixedWrapper" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-fixedWrapper" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="urn:ilUserAdministration"> + <import location="ilias-3.10.5-fixed.wsdl" namespace="urn:ilUserAdministration"/> + <plnk:partnerLinkType name="ILIASSoapWebserviceLinkType"> + <plnk:role name="ILIASSoapWebserviceRole" portType="ns:ILIASSoapWebservicePortType"/> + </plnk:partnerLinkType> +</definitions> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Cse-ip-svn-commits] SF.net SVN: cse-ip:[343]
trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ src
From: <pka...@us...> - 2009-07-22 10:45:44
|
Revision: 343 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=343&view=rev Author: pkasprzak Date: 2009-07-22 10:45:37 +0000 (Wed, 22 Jul 2009) Log Message: ----------- * WS-Interface to RelationManager (for tests, using existing cddm.xsd data-model) * MASSIV casa updates * Tests don't work for now (will be migrated to soap-ui) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/CDDM.xsd Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/CDDM.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/CDDM.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/CDDM.xsd 2009-07-22 10:45:37 UTC (rev 343) @@ -0,0 +1,190 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema xmlns:tns="http://cse.campussource.de/schema/DataTypes" + xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://cse.campussource.de/schema/DataTypes" + elementFormDefault="qualified" + attributeFormDefault="qualified" + version="1.0"> + + <xs:element name="category" type="tns:categoryType"/> + <xs:element name="course" type="tns:courseType"/> + <xs:element name="account" type="tns:accountType"/> + + <xs:element name="courseMessage" type="tns:courseMessageType"/> + <xs:element name="categoryMessage" type="tns:categoryMessageType"/> + <xs:element name="accountMessage" type="tns:accountMessageType"/> + + <xs:element name="eventReplyMessage" type="tns:eventReplyMessageType"/> + <xs:element name="status" type="tns:statusType"/> + <xs:element name="messages" type="tns:messagesType"/> + + <!-- Base type for entities --> + <xs:complexType name="entityType"> + <xs:sequence> + <xs:element name="busId" type="xs:int"/> + <xs:element name="eventTime" type="xs:dateTime"/> + <xs:element name="attribute" type="tns:attributeType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="attributeType"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + <xs:element name="value" type="xs:string"/> + <xs:element name="transient" type="xs:boolean" /> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="courseType"> + <xs:complexContent> + <xs:extension base="tns:entityType"> + <xs:sequence> + <xs:element name="categories" minOccurs="0" > + <xs:complexType> + <xs:sequence> + <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="parent" type="xs:string" minOccurs="0"/> + <xs:element name="workgroups" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="workgroup" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="categoryType"> + <xs:complexContent> + <xs:extension base="tns:entityType"> + <xs:sequence> + <xs:element name="parent" type="xs:string" minOccurs="0"/> + <xs:element name="categories" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="courses" minOccurs="0"> + <xs:complexType> + <xs:sequence> + <xs:element name="course" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="accountType"> + <xs:complexContent> + <xs:extension base="tns:entityType"> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:simpleType name="eventType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="CREATE_UPDATE"/> + <xs:enumeration value="CREATE"/> + <xs:enumeration value="UPDATE"/> + <xs:enumeration value="DELETE"/> + </xs:restriction> + </xs:simpleType> + + <!-- Base type for messages --> + <xs:complexType name="messageType"> + <xs:sequence> + <xs:element name="eventTime" type="xs:dateTime"/> + <xs:element name="event" type="tns:eventType"/> + <!-- Sender-System of thismessage --> + <xs:element name="source" type="xs:string"/> + <!-- Receiver-System of this message --> + <xs:element name="target" type="xs:string"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="courseMessageType"> + <xs:complexContent> + <xs:extension base="tns:messageType"> + <xs:sequence> + <xs:element name="course" type="tns:courseType"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="categoryMessageType"> + <xs:complexContent> + <xs:extension base="tns:messageType"> + <xs:sequence> + <xs:element name="category" type="tns:categoryType"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <xs:complexType name="accountMessageType"> + <xs:complexContent> + <xs:extension base="tns:messageType"> + <xs:sequence> + <xs:element name="account" type="tns:accountType"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> + + <!-- Status for replies --> + <xs:simpleType name="statusType"> + <xs:restriction base="xs:string"> + <xs:enumeration value="SUCCESS"/> + <xs:enumeration value="FAILURE"/> + </xs:restriction> + </xs:simpleType> + + <!-- Relies --> + <xs:complexType name="eventReplyMessageType"> + <xs:sequence> + <xs:element name="objectBusId" type="xs:int"/> + <xs:element name="objectClientId" type="xs:string"/> + <xs:element name="replyTime" type="xs:dateTime"/> + <xs:element name="replyStatus" type="tns:statusType"/> + <xs:element name="info" type="xs:string"/> + </xs:sequence> + </xs:complexType> + + <!-- Container for all different messages --> + <xs:complexType name="messagesType"> + <xs:sequence> + <xs:element name="courseMessages"> + <xs:complexType> + <xs:sequence> + <xs:element name="courseMessage" type="tns:courseMessageType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="categoryMessages"> + <xs:complexType> + <xs:sequence> + <xs:element name="categoryMessage" type="tns:categoryMessageType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="accountMessages"> + <xs:complexType> + <xs:sequence> + <xs:element name="accountMessage" type="tns:accountMessageType" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:sequence> + </xs:complexType> + +</xs:schema> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-07-22 10:44:43 UTC (rev 342) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-07-22 10:45:37 UTC (rev 343) @@ -9,7 +9,7 @@ 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="Common/CDDM.xsd"/> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="CDDM.xsd"/> </xsd:schema> </types> <message name="ProcessCourseOperationRequest"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |