From: <pka...@us...> - 2009-04-25 14:46:38
|
Revision: 175 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=175&view=rev Author: pkasprzak Date: 2009-04-25 14:46:34 +0000 (Sat, 25 Apr 2009) Log Message: ----------- * Initial import * Ilias is directly connected to the ESB * Login() / Logout() works Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-Wrapper.wsdl 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 Property Changed: ---------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/ Property changes on: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter ___________________________________________________________________ Added: svn:ignore + build Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> +<project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> + <description>Builds, tests, and runs the project .</description> + <import file="nbproject/build-impl.xml"/> + <!-- + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + -pre-init called before initialization of project properties + -post-init called after initialization of project properties + -pre-compile called before javac compilation + -post-compile called after javac compilation + -pre-compile-single called before javac compilation of single file + -post-compile-single called after javac compilation of single file + -pre-dist called before jar building + -post-dist called after jar building + -post-clean called after cleaning build products + + Example of pluging an obfuscator after the compilation could look like + + <target name="post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + Other way how to customize the build is by overriding existing main targets. + The target of interest are: + + init-macrodef-javac defines macro for javac compilation + init-macrodef-debug defines macro for class debugging + do-dist jar archive building + run execution of project + javadoc-build javadoc generation + + Example of overriding the target for project execution could look like + + <target name="run" depends="<PROJNAME>-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that overridden target depends on jar target and not only on + compile target as regular run target does. Again, for list of available + properties which you can use check the target you are overriding in + nbproject/build-impl.xml file. + --> + <target name="-check-netbeans-home"> + <condition property="no.netbeans.home"> + <not> + <isset property="netbeans.home"/> + </not> + </condition> + </target> + <target name="-init-caps" if="no.netbeans.home"> + <property file="${basedir}/nbproject/private/private.properties"/> + <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="from.commandline" value="true"/> + </target> + <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> +</project> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> + <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> +</catalog> Property changes on: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject ___________________________________________________________________ Added: svn:ignore + private Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,155 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** + + For the purpose of easier reading the script + is divided into following sections: + + - initialization + - dist + - cleanup +--> +<project name="ILIASClientAdapter-impl" default="default" basedir=".."> + <target name="default" depends="dist_se" description="Build whole project."/> + <!-- + ====================== + INITIALIZATION SECTION + ====================== + --> + <target name="-pre-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-private" depends="-pre-init"> + <property file="nbproject/private/private.properties"/> + </target> + <target name="-init-userdir" depends="-pre-init,-init-private"> + <property name="user.properties.file" location="${netbeans.user}/build.properties"/> + </target> + <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <property file="${user.properties.file}"/> + </target> + <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <property file="nbproject/project.properties"/> + </target> + <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <available file="${src.dir}/../retrieved" property="retrieved.exists"/> + </target> + <target name="-post-init"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <fail unless="src.dir">Must set src.dir</fail> + <fail unless="build.dir">Must set build.dir</fail> + <fail unless="dist.dir">Must set dist.dir</fail> + <fail unless="dist.jar">Must set dist.jar</fail> + </target> + <target name="-init-taskdefs" if="from.commandline"> + <path id="ant.task.classpath"> + <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${netbeans.home}/../platform9/core/core.jar"/> + <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/boot.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/org-openide-modules.jar"/> + <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + </path> + <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-catalog-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateCatalogTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + <taskdef name="generate-jbi-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateJbiDescriptorTask"> + <classpath refid="ant.task.classpath"/> + </taskdef> + </target> + <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <!-- + ===================== + DIST BUILDING SECTION + ===================== + --> + <target name="-pre-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <ant target="dist_se" inheritall="false" dir="${project.Common}"/> + </target> + <target name="-do-dist" depends="init,-pre-dist"> + <mkdir dir="${build.dir}"/> + <!--validation--> + <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> + <!-- copy all files from project source directory to build directory. --> + <copy todir="${build.dir}" preservelastmodified="true"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> + </copy> + <generate-catalog-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <generate-jbi-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" classpathRef="ant.task.classpath"/> + <jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar"> + <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" excludes="SEDeployment.jar" dir="${basedir}/${build.dir}"/> + <fileset dir="${basedir}/${build.dir}"> + <include name="**/jbi.xml"/> + <include name="**/catalog.xml"/> + </fileset> + </jar> + </target> + <target name="-post-dist"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <!-- + =============== + CLEANUP SECTION + =============== + --> + <target name="-pre-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <ant target="clean" inheritall="false" dir="${project.Common}"/> + </target> + <target name="-do-clean" depends="init,-pre-clean"> + <delete dir="${build.dir}"/> + <delete dir="${dist.dir}"/> + </target> + <target name="-post-clean"> + <!-- Empty placeholder for easier customization. --> + <!-- You can override this target in the ../build.xml file. --> + </target> + <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> +</project> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c508cd24 +build.xml.script.CRC32=3d3dbc12 +build.xml.stylesheet.CRC32=1947459d +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. +nbproject/build-impl.xml.data.CRC32=c508cd24 +nbproject/build-impl.xml.script.CRC32=27fa18ec +nbproject/build-impl.xml.stylesheet.CRC32=749ec361 Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,30 @@ +allow.build.with.error=false +bcdeployment.jar=${build.dir}/BCDeployment.jar +build.classes.dir=${build.dir}/jar +build.classes.excludes=**/*.java,**/*.form,**/.nbattrs +build.dir=build +build.generated.dir=${build.dir}/generated +com.sun.jbi.ui.devtool.jbi.description.application-sub-assembly=Represents this Service Unit +com.sun.jbi.ui.devtool.jbi.setype.prefix=sun-bpel-engine +debug.classpath=${javac.classpath}:${build.classes.dir} +dist.dir=dist +dist.jar=${dist.dir}/ILIASClientAdapter.zip +dist.javadoc.dir=${dist.dir}/javadoc +jar.compress=false +jar.name=ILIASClientAdapter.jar +javac.debug=true +javac.deprecation=false +javac.source=1.4 +javac.target=1.4 +jbi.se.type=sun-bpel-engine +jbi.service-unit.description=Represents this Service Unit +meta.inf=${source.root}/conf +platform.active=default_platform +project.Common=../Common +reference.Common.dist_se=${project.Common}/build/SEDeployment.jar +resource.dir=setup +sedeployment.jar=${build.dir}/SEDeployment.jar +source.encoding=UTF-8 +source.root=src +src.dir=${source.root} +wsdl.classpath= Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://www.netbeans.org/ns/project/1"> + <type>org.netbeans.modules.bpel.project</type> + <configuration> + <data xmlns="http://www.netbeans.org/ns/j2ee-bpelpro/1"> + <name>ILIASClientAdapter</name> + <minimum-ant-version>1.6</minimum-ant-version> + </data> + <references xmlns="http://www.netbeans.org/ns/ant-project-references/1"> + <reference> + <foreign-project>Common</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>dist_se</target> + <clean-target>clean</clean-target> + <id>dist_se</id> + </reference> + </references> + </configuration> +</project> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="ILIASClientAdapter" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" xmlns:ns="http://cse.campussource.de/schema/DataTypes" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> + <types> + <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"> + <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="Common/CDDM.xsd"/> + </xsd:schema> + </types> + <message name="ProcessCourseOperationRequest"> + <part name="courseMessage" type="ns:courseMessageType"/> + </message> + <portType name="ILIASClientAdapterPortType"> + <operation name="ProcessCourseOperation"> + <input name="input1" message="tns:ProcessCourseOperationRequest"/> + </operation> + </portType> + <binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType"> + <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="ProcessCourseOperation"> + <soap:operation/> + <input name="input1"> + <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> + </input> + </operation> + </binding> + <service name="ILIASClientAdapterService"> + <port name="ILIASClientAdapterPort" binding="tns:ILIASClientAdapterBinding"> + <soap:address location="http://localhost:${HttpDefaultPort}/ILIASClientAdapterService/ILIASClientAdapterPort"/> + </port> + </service> + <plnk:partnerLinkType name="ILIASClientAdapter"> + <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. +In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. +A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> + <plnk:role name="ILIASClientAdapterPortTypeRole" portType="tns:ILIASClientAdapterPortType"/> + </plnk:partnerLinkType> +</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process + name="OutboundClientAdapter" + targetNamespace="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/newProcess" + 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: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/"/> + <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"/> + <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"/> + <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/> + <!-- ILIAS session id --> + <variable name="SID" type="xsd:string"/> + <!-- Course description in ILIAS-Format --> +<!-- + <variable name="CourseXML" element=""/> +--> + </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> + <to variable="LoginIn" part="client"/> + </copy> + <copy> + <from>'root'</from> + <to variable="LoginIn" part="username"/> + </copy> + <copy> + <from>'homer'</from> + <to variable="LoginIn" part="password"/> + </copy> + </assign> + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" 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"> + <copy> + <from variable="LoginOut" part="sid"/> + <to variable="SID"/> + </copy> + </assign> +<!-- + <assign name="setCourseXML"> + <copy> + <from>$ProcessCourseOperationIn/course/attribute[name = 'title']/value</from> + <to>$CourseXML/MetaData/General/Title</to> + </copy> + <copy> + <from>$ProcessCourseOperationIn/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Title/@Language</to> + </copy> + <copy> + <from>$ProcessCourseOperationIn/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Language[0]/@Language</to> + </copy> + </assign> +--> + <assign name="prepareAddCourse"> + <!-- Set SID --> + <copy> + <from variable="SID"/> + <to variable="AddCourseIn" part="sid"/> + </copy> + <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> + <copy> + <from>1</from> + <to variable="AddCourseIn" part="target_id"/> + </copy> + <!-- Set CourseXML (as string) --> +<!-- <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="AddCourseIn" part="crs_xml"/> + </copy> +--> + </assign> +<!-- + <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="AddCourseIn" outputVariable="AddCourseOut"/> +--> + <assign name="prepareLogout"> + <copy> + <from variable="SID"/> + <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"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Result of logout: ', $LogoutOut.success)</from> + </sxt:log> + </sxt:trace> + </invoke> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-Wrapper.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-Wrapper.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-Wrapper.wsdl 2009-04-25 14:46:34 UTC (rev 175) @@ -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-Wrapper" targetNamespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" 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> Added: 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 (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-3.10.5-fixed.wsdl 2009-04-25 14:46:34 UTC (rev 175) @@ -0,0 +1,1879 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:tns="urn:ilUserAdministration" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" + xmlns="http://schemas.xmlsoap.org/wsdl/" + targetNamespace="urn:ilUserAdministration"> + + <types> + <xsd:schema targetNamespace="urn:ilUserAdministration" +> +<!-- Old Line with Error-Message, should be ok (bug in NetBeans?) + <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> +--> + <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> + <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" /> + <xsd:complexType name="intArray"> + <xsd:complexContent> + <xsd:restriction base="SOAP-ENC:Array"> + <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/> + </xsd:restriction> + </xsd:complexContent> + </xsd:complexType> + <xsd:complexType name="stringArray"> + <xsd:complexContent> + <xsd:restriction base="SOAP-ENC:Array"> + <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/> + </xsd:restriction> + </xsd:complexContent> + </xsd:complexType> + <xsd:complexType name="ilUserData"> + <xsd:all> + <xsd:element name="usr_id" type="xsd:int"/> + <xsd:element name="login" type="xsd:string"/> + <xsd:element name="passwd" type="xsd:string"/> + <xsd:element name="firstname" type="xsd:string"/> + <xsd:element name="lastname" type="xsd:string"/> + <xsd:element name="title" type="xsd:string"/> + <xsd:element name="gender" type="xsd:string"/> + <xsd:element name="email" type="xsd:string"/> + <xsd:element name="institution" type="xsd:string"/> + <xsd:element name="street" type="xsd:string"/> + <xsd:element name="city" type="xsd:string"/> + <xsd:element name="zipcode" type="xsd:string"/> + <xsd:element name="country" type="xsd:string"/> + <xsd:element name="phone_office" type="xsd:string"/> + <xsd:element name="last_login" type="xsd:string"/> + <xsd:element name="last_update" type="xsd:string"/> + <xsd:element name="create_date" type="xsd:string"/> + <xsd:element name="hobby" type="xsd:string"/> + <xsd:element name="department" type="xsd:string"/> + <xsd:element name="phone_home" type="xsd:string"/> + <xsd:element name="phone_mobile" type="xsd:string"/> + <xsd:element name="fax" type="xsd:string"/> + <xsd:element name="time_limit_owner" type="xsd:int"/> + <xsd:element name="time_limit_unlimited" type="xsd:int"/> + <xsd:element name="time_limit_from" type="xsd:int"/> + <xsd:element name="time_limit_until" type="xsd:int"/> + <xsd:element name="time_limit_message" type="xsd:int"/> + <xsd:element name="referral_comment" type="xsd:string"/> + <xsd:element name="matriculation" type="xsd:string"/> + <xsd:element name="active" type="xsd:int"/> + <xsd:element name="accepted_agreement" type="xsd:boolean"/> + <xsd:element name="approve_date" type="xsd:string"/> + <xsd:element name="user_skin" type="xsd:string"/> + <xsd:element name="user_style" type="xsd:string"/> + <xsd:element name="user_language" type="xsd:string"/> + <xsd:element name="import_id" type="xsd:string"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="ilOperation"> + <xsd:all> + <xsd:element name="ops_id" type="xsd:int"/> + <xsd:element name="operation" type="xsd:string"/> + <xsd:element name="description" type="xsd:string"/> + </xsd:all> + </xsd:complexType> + <xsd:complexType name="ilOperations"> + <xsd:complexContent> + <xsd:restriction base="SOAP-ENC:Array"> + <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:ilOperation[]"/> + </xsd:restriction> + </xsd:complexContent> + </xsd:complexType> + <xsd:complexType name="ilOperationIds"> + <xsd:complexContent> + <xsd:restriction base="SOAP-ENC:Array"> + <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:int[]"/> + </xsd:restriction> + </xsd:complexContent> + </xsd:complexType> + </xsd:schema> + </types> + <message name="loginRequest"> + <part name="client" type="xsd:string" /> + <part name="username" type="xsd:string" /> + <part name="password" type="xsd:string" /> + </message> + <message name="loginResponse"> + <part name="sid" type="xsd:string" /> + </message> + <message name="loginCASRequest"> + <part name="client" type="xsd:string" /> + <part name="PT" type="xsd:string" /> + <part name="user" type="xsd:string" /> + </message> + <message name="loginCASResponse"> + <part name="sid" type="xsd:string" /> + </message> + <message name="loginLDAPRequest"> + <part name="client" type="xsd:string" /> + <part name="username" type="xsd:string" /> + <part name="password" type="xsd:string" /> + </message> + <message name="loginLDAPResponse"> + <part name="sid" type="xsd:string" /> + </message> + <message name="logoutRequest"> + <part name="sid" type="xsd:string" /> + </message> + <message name="logoutResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="lookupUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_name" type="xsd:string" /> + </message> + <message name="lookupUserResponse"> + <part name="usr_id" type="xsd:int" /> + </message> + <message name="getUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getUserResponse"> + <part name="user_data" type="tns:ilUserData" /> + </message> + <message name="updateUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_data" type="tns:ilUserData" /> + </message> + <message name="updateUserResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="updatePasswordRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + <part name="new_password" type="xsd:string" /> + </message> + <message name="updatePasswordResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="addUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_data" type="tns:ilUserData" /> + <part name="global_role_id" type="xsd:int" /> + </message> + <message name="addUserResponse"> + <part name="user_id" type="xsd:int" /> + </message> + <message name="deleteUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="deleteUserResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="addCourseRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="crs_xml" type="xsd:string" /> + </message> + <message name="addCourseResponse"> + <part name="course_id" type="xsd:int" /> + </message> + <message name="deleteCourseRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + </message> + <message name="deleteCourseResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="assignCourseMemberRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + <part name="type" type="xsd:string" /> + </message> + <message name="assignCourseMemberResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="excludeCourseMemberRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="excludeCourseMemberResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="isAssignedToCourseRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="isAssignedToCourseResponse"> + <part name="role" type="xsd:int" /> + </message> + <message name="getCourseXMLRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + </message> + <message name="getCourseXMLResponse"> + <part name="xml" type="xsd:string" /> + </message> + <message name="updateCourseRequest"> + <part name="sid" type="xsd:string" /> + <part name="course_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="updateCourseResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getObjIdByImportIdRequest"> + <part name="sid" type="xsd:string" /> + <part name="import_id" type="xsd:string" /> + </message> + <message name="getObjIdByImportIdResponse"> + <part name="obj_id" type="xsd:int" /> + </message> + <message name="getRefIdsByImportIdRequest"> + <part name="sid" type="xsd:string" /> + <part name="import_id" type="xsd:string" /> + </message> + <message name="getRefIdsByImportIdResponse"> + <part name="ref_ids" type="tns:intArray" /> + </message> + <message name="getRefIdsByObjIdRequest"> + <part name="sid" type="xsd:string" /> + <part name="obj_id" type="xsd:string" /> + </message> + <message name="getRefIdsByObjIdResponse"> + <part name="ref_ids" type="tns:intArray" /> + </message> + <message name="getObjectByReferenceRequest"> + <part name="sid" type="xsd:string" /> + <part name="reference_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getObjectByReferenceResponse"> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="getObjectsByTitleRequest"> + <part name="sid" type="xsd:string" /> + <part name="title" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getObjectsByTitleResponse"> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="searchObjectsRequest"> + <part name="sid" type="xsd:string" /> + <part name="types" type="tns:stringArray" /> + <part name="key" type="xsd:string" /> + <part name="combination" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="searchObjectsResponse"> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="getTreeChildsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="types" type="tns:stringArray" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getTreeChildsResponse"> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="getXMLTreeRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="types" type="tns:stringArray" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getXMLTreeResponse"> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="addObjectRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="addObjectResponse"> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="updateObjectsRequest"> + <part name="sid" type="xsd:string" /> + <part name="object_xml" type="xsd:string" /> + </message> + <message name="updateObjectsResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="addReferenceRequest"> + <part name="sid" type="xsd:string" /> + <part name="source_id" type="xsd:int" /> + <part name="target_id" type="xsd:int" /> + </message> + <message name="addReferenceResponse"> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="deleteObjectRequest"> + <part name="sid" type="xsd:string" /> + <part name="reference_id" type="xsd:int" /> + </message> + <message name="deleteObjectResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="removeFromSystemByImportIdRequest"> + <part name="sid" type="xsd:string" /> + <part name="import_id" type="xsd:string" /> + </message> + <message name="removeFromSystemByImportIdResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="addUserRoleEntryRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + <part name="role_id" type="xsd:int" /> + </message> + <message name="addUserRoleEntryResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="deleteUserRoleEntryRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + <part name="role_id" type="xsd:int" /> + </message> + <message name="deleteUserRoleEntryResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getOperationsRequest"> + <part name="sid" type="xsd:string" /> + </message> + <message name="getOperationsResponse"> + <part name="operations" type="tns:ilOperations" /> + </message> + <message name="revokePermissionsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="role_id" type="xsd:int" /> + </message> + <message name="revokePermissionsResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="grantPermissionsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="role_id" type="xsd:int" /> + <part name="operations" type="tns:intArray" /> + </message> + <message name="grantPermissionsResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getLocalRolesRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="getLocalRolesResponse"> + <part name="role_xml" type="xsd:string" /> + </message> + <message name="getUserRolesRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getUserRolesResponse"> + <part name="role_xml" type="xsd:string" /> + </message> + <message name="addRoleRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="obj_xml" type="xsd:string" /> + </message> + <message name="addRoleResponse"> + <part name="role_ids" type="tns:intArray" /> + </message> + <message name="deleteRoleRequest"> + <part name="sid" type="xsd:string" /> + <part name="role_id" type="xsd:int" /> + </message> + <message name="deleteRoleResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="addRoleFromTemplateRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="obj_xml" type="xsd:string" /> + <part name="role_template_id" type="xsd:int" /> + </message> + <message name="addRoleFromTemplateResponse"> + <part name="role_ids" type="tns:intArray" /> + </message> + <message name="getObjectTreeOperationsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="getObjectTreeOperationsResponse"> + <part name="operations" type="tns:ilOperations" /> + </message> + <message name="addGroupRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="group_xml" type="xsd:string" /> + </message> + <message name="addGroupResponse"> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="groupExistsRequest"> + <part name="sid" type="xsd:string" /> + <part name="title" type="xsd:string" /> + </message> + <message name="groupExistsResponse"> + <part name="exists" type="xsd:boolean" /> + </message> + <message name="getGroupRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="getGroupResponse"> + <part name="group_xml" type="xsd:string" /> + </message> + <message name="assignGroupMemberRequest"> + <part name="sid" type="xsd:string" /> + <part name="group_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + <part name="type" type="xsd:string" /> + </message> + <message name="assignGroupMemberResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="excludeGroupMemberRequest"> + <part name="sid" type="xsd:string" /> + <part name="group_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="excludeGroupMemberResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="isAssignedToGroupRequest"> + <part name="sid" type="xsd:string" /> + <part name="group_id" type="xsd:int" /> + <part name="user_id" type="xsd:int" /> + </message> + <message name="isAssignedToGroupResponse"> + <part name="role" type="xsd:int" /> + </message> + <message name="sendMailRequest"> + <part name="sid" type="xsd:string" /> + <part name="rcp_to" type="xsd:string" /> + <part name="rcp_cc" type="xsd:string" /> + <part name="rcp_bcc" type="xsd:string" /> + <part name="sender" type="xsd:string" /> + <part name="subject" type="xsd:string" /> + <part name="message" type="xsd:string" /> + <part name="attachments" type="xsd:string" /> + </message> + <message name="sendMailResponse"> + <part name="status" type="xsd:boolean" /> + </message> + <message name="ilCloneRequest"> + <part name="sid" type="xsd:string" /> + <part name="copy_identifier" type="xsd:int" /> + </message> + <message name="ilCloneResponse"> + <part name="new_ref_id" type="xsd:int" /> + </message> + <message name="handleECSTasksRequest"> + <part name="sid" type="xsd:string" /> + </message> + <message name="handleECSTasksResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="ilCloneDependenciesRequest"> + <part name="sid" type="xsd:string" /> + <part name="copy_identifier" type="xsd:int" /> + </message> + <message name="ilCloneDependenciesResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="saveQuestionResultRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_id" type="xsd:int" /> + <part name="test_id" type="xsd:int" /> + <part name="question_id" type="xsd:int" /> + <part name="pass" type="xsd:int" /> + <part name="solution" type="tns:stringArray" /> + </message> + <message name="saveQuestionResultResponse"> + <part name="status" type="xsd:boolean" /> + </message> + <message name="saveQuestionRequest"> + <part name="sid" type="xsd:string" /> + <part name="active_id" type="xsd:long" /> + <part name="question_id" type="xsd:long" /> + <part name="pass" type="xsd:int" /> + <part name="solution" type="tns:stringArray" /> + </message> + <message name="saveQuestionResponse"> + <part name="status" type="xsd:boolean" /> + </message> + <message name="getQuestionSolutionRequest"> + <part name="sid" type="xsd:string" /> + <part name="active_id" type="xsd:long" /> + <part name="question_id" type="xsd:int" /> + <part name="pass" type="xsd:int" /> + </message> + <message name="getQuestionSolutionResponse"> + <part name="solution" type="tns:stringArray" /> + </message> + <message name="getStructureObjectsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="getStructureObjectsResponse"> + <part name="xml" type="xsd:string" /> + </message> + <message name="importUsersRequest"> + <part name="sid" type="xsd:string" /> + <part name="folder_id" type="xsd:int" /> + <part name="usr_xml" type="xsd:string" /> + <part name="conflict_rule" type="xsd:int" /> + <part name="send_account_mail" type="xsd:int" /> + </message> + <message name="importUsersResponse"> + <part name="protocol" type="xsd:string" /> + </message> + <message name="getRolesRequest"> + <part name="sid" type="xsd:string" /> + <part name="role_type" type="xsd:string" /> + <part name="id" type="xsd:string" /> + </message> + <message name="getRolesResponse"> + <part name="role_xml" type="xsd:string" /> + </message> + <message name="getUsersForContainerRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="attach_roles" type="xsd:int" /> + <part name="active" type="xsd:int" /> + </message> + <message name="getUsersForContainerResponse"> + <part name="user_xml" type="xsd:string" /> + </message> + <message name="getUsersForRoleRequest"> + <part name="sid" type="xsd:string" /> + <part name="role_id" type="xsd:int" /> + <part name="attach_roles" type="xsd:int" /> + <part name="active" type="xsd:int" /> + </message> + <message name="getUsersForRoleResponse"> + <part name="user_xml" type="xsd:string" /> + </message> + <message name="searchUserRequest"> + <part name="sid" type="xsd:string" /> + <part name="key_fields" type="tns:stringArray" /> + <part name="query_operator" type="xsd:string" /> + <part name="key_values" type="tns:stringArray" /> + <part name="attach_roles" type="xsd:int" /> + <part name="active" type="xsd:int" /> + </message> + <message name="searchUserResponse"> + <part name="user_xml" type="xsd:string" /> + </message> + <message name="hasNewMailRequest"> + <part name="sid" type="xsd:string" /> + </message> + <message name="hasNewMailResponse"> + <part name="status" type="xsd:boolean" /> + </message> + <message name="getNICRequest"> + <part name="sid" type="xsd:string" /> + </message> + <message name="getNICResponse"> + <part name="xmlresultset" type="xsd:string" /> + </message> + <message name="getExerciseXMLRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="attachment_mode" type="xsd:int" /> + </message> + <message name="getExerciseXMLResponse"> + <part name="exercisexml" type="xsd:string" /> + </message> + <message name="addExerciseRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="addExerciseResponse"> + <part name="refid" type="xsd:int" /> + </message> + <message name="updateExerciseRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="updateExerciseResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getFileXMLRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="attachment_mode" type="xsd:int" /> + </message> + <message name="getFileXMLResponse"> + <part name="filexml" type="xsd:string" /> + </message> + <message name="addFileRequest"> + <part name="sid" type="xsd:string" /> + <part name="target_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="addFileResponse"> + <part name="refid" type="xsd:int" /> + </message> + <message name="updateFileRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="updateFileResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getUserXMLRequest"> + <part name="sid" type="xsd:string" /> + <part name="user_ids" type="tns:intArray" /> + <part name="attach_roles" type="xsd:int" /> + </message> + <message name="getUserXMLResponse"> + <part name="xml" type="xsd:string" /> + </message> + <message name="getObjIdsByRefIdsRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_ids" type="tns:intArray" /> + </message> + <message name="getObjIdsByRefIdsResponse"> + <part name="obj_ids" type="tns:intArray" /> + </message> + <message name="updateGroupRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="updateGroupResponse"> + <part name="success" type="xsd:boolean" /> + </message> + <message name="getIMSManifestXMLRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + </message> + <message name="getIMSManifestXMLResponse"> + <part name="xml" type="xsd:string" /> + </message> + <message name="copyObjectRequest"> + <part name="sid" type="xsd:string" /> + <part name="xml" type="xsd:string" /> + </message> + <message name="copyObjectResponse"> + <part name="xml" type="xsd:int" /> + </message> + <message name="moveObjectRequest"> + <part name="sid" type="xsd:string" /> + <part name="ref_id" type="xsd:int" /> + <part name="target_id" type="xsd:int" /> + </message> + <message name="moveObjectResponse"> + <part name="result" type="xsd:boolean" /> + </message> + <message name="getTestResultsRequest"> + <part name="sid" type="xsd:string" /> + <part name... [truncated message content] |
From: <pka...@us...> - 2009-04-28 14:52:01
|
Revision: 190 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=190&view=rev Author: pkasprzak Date: 2009-04-28 14:51:52 +0000 (Tue, 28 Apr 2009) Log Message: ----------- * Finally fixed (hopefully) the ElementNotFoundInComplexTypeException-problem: the xsds have to be qualified (which explains why all xsds in all examples are qualified ;)) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 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/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-04-28 14:51:52 UTC (rev 190) @@ -53,18 +53,14 @@ properties which you can use check the target you are overriding in nbproject/build-impl.xml file. --> - <target name="-check-netbeans-home"> - <condition property="no.netbeans.home"> - <not> - <isset property="netbeans.home"/> - </not> - </condition> + <target name="-init-esb-ide" if="netbeans.home"> + <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-caps" if="no.netbeans.home"> + <target name="-init-esb-cmdline" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> - <property name="netbeans.home" value="${caps.netbeans.home}/platform9"/> - <property name="netbeans.user" value="${caps.netbeans.user}"/> + <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> + <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-check-netbeans-home,-init-caps"/> + <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-04-28 14:51:52 UTC (rev 190) @@ -48,42 +48,42 @@ </target> <target name="-init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> - <pathelement location="${netbeans.home}/../ide10/modules/ext/resolver-1.2.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-apache-xml-resolver.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> - <pathelement location="${netbeans.home}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/core.jar"/> - <pathelement location="${netbeans.home}/../platform9/core/org-openide-filesystems.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/boot.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-modules.jar"/> - <pathelement location="${netbeans.home}/../platform9/lib/org-openide-util.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-dialogs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-loaders.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-nodes.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-openide-text.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> - <pathelement location="${netbeans.home}/../platform9/modules/org-netbeans-modules-queries.jar"/> - <pathelement location="${netbeans.home}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> - <pathelement location="${netbeans.home}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> - <pathelement location="${netbeans.home}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-ant.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-project-libraries.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-projectuiapi.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-catalog.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-xam.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-schema-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-wsdl-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-netbeans-modules-xml-retriever.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/core.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/core/org-openide-filesystems.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/boot.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-modules.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/lib/org-openide-util.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-dialogs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-loaders.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-nodes.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-openide-text.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-masterfs.jar"/> + <pathelement location="${esb.netbeans.platform}/../platform9/modules/org-netbeans-modules-queries.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/ant/nblib/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-debugger-api.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-model.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-project.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-bpel-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-ui.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-soa-validation.jar"/> + <pathelement location="${esb.netbeans.platform}/../soa2/modules/org-netbeans-modules-compapp-projects-base.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/ext/jxpath/jxpath1.1.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-catalogsupport.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-search.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-wsdl-extensions.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath.jar"/> + <pathelement location="${esb.netbeans.platform}/../xml2/modules/org-netbeans-modules-xml-xpath-ext.jar"/> </path> <taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask"> <classpath refid="ant.task.classpath"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-04-28 14:51:52 UTC (rev 190) @@ -1,8 +1,8 @@ build.xml.data.CRC32=c508cd24 -build.xml.script.CRC32=3d3dbc12 -build.xml.stylesheet.CRC32=1947459d +build.xml.script.CRC32=60b50638 +build.xml.stylesheet.CRC32=f35fd70d # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=c508cd24 -nbproject/build-impl.xml.script.CRC32=27fa18ec -nbproject/build-impl.xml.stylesheet.CRC32=749ec361 +nbproject/build-impl.xml.script.CRC32=9fe3d43a +nbproject/build-impl.xml.stylesheet.CRC32=5068533b Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-04-28 14:51:52 UTC (rev 190) @@ -78,7 +78,7 @@ <Course xmlns="http://cse.campussource.de/schema/ilias/course"> <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> <General> - <Title Language="en">test2</Title> + <Title Language="en">test3</Title> <Language Language="en">en</Language> <Description Language="en">bpel test2</Description> </General> @@ -91,12 +91,16 @@ </assign> <!-- Set relevant course data --> -<!-- + <assign name="setCourseData"> <copy> +<!-- <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> - <to>$CourseXML/MetaData/General/Title/text()</to> +--> + <from>'test5'</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title</to> </copy> +<!-- <copy> <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> <to>$CourseXML/MetaData/General/Title/@Language</to> @@ -105,8 +109,8 @@ <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"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xml 2009-04-28 14:51:52 UTC (rev 190) @@ -2,268 +2,14 @@ <!-- Document : ilias-course.xml - Created on : April 27, 2009, 4:57 PM + Created on : 28. April 2009, 15:13 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:Admin xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' + xmlns:ns0='null' + xsi:schemaLocation='null ilias-course.xsd' id="" notification="" passed="" action=""> -</ns0:Course> +</ns0:Admin> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd 2009-04-28 14:30:38 UTC (rev 189) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course.xsd 2009-04-28 14:51:52 UTC (rev 190) @@ -1,5 +1,8 @@ <?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: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"> <xs:element name="Admin"> <xs:complexType> @@ -14,15 +17,7 @@ <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:element ref="Value" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> @@ -30,21 +25,9 @@ <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 ref="Entity"/> <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:element ref="Description"/> </xs:sequence> </xs:complexType> </xs:element> @@ -63,24 +46,9 @@ <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:element ref="NotAvailable"/> + <xs:element ref="Unlimited"/> + <xs:element ref="TemporarilyAvailable"/> </xs:choice> </xs:sequence> </xs:complexType> @@ -98,49 +66,9 @@ <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:element ref="TaxonPath" maxOccurs="unbounded"/> + <xs:element ref="Description"/> + <xs:element ref="Keyword" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="Purpose" type="xs:string" use="required"/> </xs:complexType> @@ -161,11 +89,7 @@ <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 ref="Entity" maxOccurs="unbounded"/> <xs:element name="Date" type="xs:string"/> </xs:sequence> <xs:attribute name="Role" type="xs:string" use="required"/> @@ -175,537 +99,14 @@ <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:element ref="MetaData" minOccurs="0"/> + <xs:element ref="AdvancedMetaData" minOccurs="0"/> + <xs:element ref="Admin" maxOccurs="unbounded"/> + <xs:element ref="Tutor" minOccurs="0" maxOccurs="unbounded"/> + <xs:element ref="Member" minOccurs="0" maxOccurs="unbounded"/> + <xs:element ref="Subscriber" minOccurs="0" maxOccurs="unbounded"/> + <xs:element ref="WaitingList" minOccurs="0" maxOccurs="unbounded"/> + <xs:element ref="Settings" minOccurs="0"/> </xs:sequence> <xs:attribute name="exportVersion" type="xs:string" use="required"/> <xs:attribute name="id" type="xs:string"/> @@ -741,31 +142,10 @@ <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 ref="TypicalAgeRange" maxOccurs="unbounded"/> <xs:element name="TypicalLearningTime" type="xs:string"/> - <xs:element name="Description" minOccurs="0" maxOccurs="unbounded"> - <xs:complexType> - ... [truncated message content] |
From: <pka...@us...> - 2009-05-04 14:50:29
|
Revision: 207 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=207&view=rev Author: pkasprzak Date: 2009-05-04 14:50:27 +0000 (Mon, 04 May 2009) Log Message: ----------- * Added support for creating categories * Added appropriate Testcase Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-04 13:54:05 UTC (rev 206) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-04 14:50:27 UTC (rev 207) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> + <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> - <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-04 13:54:05 UTC (rev 206) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-05-04 14:50:27 UTC (rev 207) @@ -11,10 +11,16 @@ <message name="ProcessCourseOperationRequest"> <part name="courseMessage" type="ns:courseMessageType"/> </message> + <message name="ProcessCategoryOperationRequest"> + <part name="categoryMessage" type="ns:categoryMessageType"/> + </message> <portType name="ILIASClientAdapterPortType"> <operation name="ProcessCourseOperation"> <input name="input1" message="tns:ProcessCourseOperationRequest"/> </operation> + <operation name="ProcessCategoryOperation"> + <input name="input2" message="tns:ProcessCategoryOperationRequest"/> + </operation> </portType> <binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> @@ -24,6 +30,12 @@ <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> </input> </operation> + <operation name="ProcessCategoryOperation"> + <soap:operation/> + <input name="input2"> + <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> + </input> + </operation> </binding> <service name="ILIASClientAdapterService"> <port name="ILIASClientAdapterPort" binding="tns:ILIASClientAdapterBinding"> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-04 13:54:05 UTC (rev 206) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-05-04 14:50:27 UTC (rev 207) @@ -27,6 +27,9 @@ <variables> <!-- Messages --> + <variable name="ProcessCategoryOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCategoryOperationRequest"/> + <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/> + <variable name="AddObjectOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectResponse"/> <variable name="AddObjectIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:addObjectRequest"/> <variable name="GetObjectsByTitleOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:getObjectsByTitleResponse"/> @@ -37,7 +40,6 @@ <variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/> <variable name="LoginOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginResponse"/> <variable name="LoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> - <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/> <!-- Ilias --> @@ -54,156 +56,325 @@ </variables> <sequence> + <pick name="processObjects" createInstance="yes"> + <onMessage partnerLink="ILIASAdapter" operation="ProcessCourseOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> + <sequence> + <assign name="prepareLogin"> + <copy> + <from>'test'</from> + <to variable="LoginIn" part="client"/> + </copy> + <copy> + <from>'root'</from> + <to variable="LoginIn" part="username"/> + </copy> + <copy> + <from>'homer'</from> + <to variable="LoginIn" part="password"/> + </copy> + </assign> - <receive name="receive" createInstance="yes" partnerLink="ILIASAdapter" operation="ProcessCourseOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"/> - - <assign name="prepareLogin"> - <copy> - <from>'test'</from> - <to variable="LoginIn" part="client"/> - </copy> - <copy> - <from>'root'</from> - <to variable="LoginIn" part="username"/> - </copy> - <copy> - <from>'homer'</from> - <to variable="LoginIn" part="password"/> - </copy> - </assign> - - <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="LoginIn" outputVariable="LoginOut"> - <sxt:trace> - <sxt:log level="info" location="onComplete"> - <from>concat('*** SID: ', $LoginOut.sid)</from> - </sxt:log> - </sxt:trace> - </invoke> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** SID: ', $LoginOut.sid)</from> + </sxt:log> + </sxt:trace> + </invoke> - <assign name="saveSID"> - <copy> - <from variable="LoginOut" part="sid"/> - <to variable="SID"/> - </copy> - </assign> + <assign name="saveSID"> + <copy> + <from variable="LoginOut" part="sid"/> + <to variable="SID"/> + </copy> + </assign> - <!-- Check if "test" category exists and if not add it --> - <scope name="CheckAndCreateTestCategory"> + <!-- Check if "test" category exists and if not add it --> + <scope name="CheckAndCreateTestCategory"> - <variables> - <!-- Category description as object in Ilias-Format --> - <variable name="CategoryXML" element="il_objs:Object"/> + <variables> + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Object"/> - <!-- Result of object search for title --> - <variable name="ObjectsRawXML" element="il_objs:Objects"/> - <variable name="ObjectsXML" element="il_objs:Objects"/> + <!-- Result of object search for title --> + <variable name="ObjectsRawXML" element="il_objs:Objects"/> + <variable name="ObjectsXML" element="il_objs:Objects"/> - </variables> + </variables> - <sequence name="CheckForTestCategory"> - <!-- Init variables --> - <assign name="init"> - <copy> - <from>0</from> - <to variable="CategoryRefId"/> - </copy> - </assign> + <sequence name="CheckForTestCategory"> + <!-- Init variables --> + <assign name="init"> + <copy> + <from>0</from> + <to variable="CategoryRefId"/> + </copy> + </assign> - <!-- Prepeare search by title --> - <assign name="prepareGetObjectsByTitle"> - <copy> - <from variable="SID"/> - <to>$GetObjectsByTitleIn.sid</to> - </copy> - <copy> - <from>'test'</from> - <to>$GetObjectsByTitleIn.title</to> - </copy> - <copy> - <from>0</from> - <to>$GetObjectsByTitleIn.user_id</to> - </copy> - </assign> + <!-- Prepeare search by title --> + <assign name="prepareGetObjectsByTitle"> + <copy> + <from variable="SID"/> + <to>$GetObjectsByTitleIn.sid</to> + </copy> + <copy> + <from>'test'</from> + <to>$GetObjectsByTitleIn.title</to> + </copy> + <copy> + <from>0</from> + <to>$GetObjectsByTitleIn.user_id</to> + </copy> + </assign> - <!-- Do search --> - <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" - portType="tns:ILIASSoapWebservicePortType" - inputVariable="GetObjectsByTitleIn" - outputVariable="GetObjectsByTitleOut"> + <!-- Do search --> + <invoke name="getObjectsByTitle" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="GetObjectsByTitleIn" + outputVariable="GetObjectsByTitleOut"> <!-- - BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs - java.lang.NullPointerException - <sxt:trace> - <sxt:log level="info" location="onComplete"> - <from>concat('*** ObjectsXML: ', $GetObjectsByTitleOut.object_xml)</from> - </sxt:log> - </sxt:trace> + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** ObjectsXML: ', $GetObjectsByTitleOut.object_xml)</from> + </sxt:log> + </sxt:trace> --> - </invoke> + </invoke> - <!-- Don't try to unmarshal empty string (i.e. no objects found) --> - <if> - <condition>$GetObjectsByTitleOut.object_xml != ""</condition> - <sequence name="processObjectsXML"> + <!-- Don't try to unmarshal empty string (i.e. no objects found) --> + <if> + <condition>$GetObjectsByTitleOut.object_xml != ''</condition> + <sequence name="processObjectsXML"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>'*** Processing ObjectsXML...'</from> + </sxt:log> + </sxt:trace> + + <!-- Convert to XML structure --> + <assign name="unmarshalResult" > + <copy> + <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> + <to variable="ObjectsRawXML"/> + </copy> + </assign> + + <assign> +<!-- + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** ObjectsXML (after xslt): ', sxxf:doMarshal($ObjectsXML))</from> + </sxt:log> + </sxt:trace> +--> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from> + <to variable="ObjectsXML"/> + </copy> + </assign> + + <!-- Determine, if there is a category in the result (Object/@type = "cat") and get it's refId for later --> + <assign name="checkForCategories"> + +<!-- + BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs + java.lang.NullPointerException + + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** CategoryRefId: ', string($CategoryRefId))</from> + </sxt:log> + </sxt:trace> +--> + <!-- Note: if an empty node is return below, it is converted by number() to "NaN" --> + <copy> + <from>number($ObjectsXML/il_objs:Object[@il_objs:type = 'cat']/il_objs:References/@il_objs:ref_id)</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + </sequence> + </if> + + <!-- If no appropriate catgeory was found, create one --> + <if> + <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> + <sequence name="addTestCategory"> + <assign name="prepareAddCategory"> + <copy> + <from variable="SID"/> + <to>$AddObjectIn.sid</to> + </copy> + <copy> + <from>1</from> + <to>$AddObjectIn.target_id</to> + </copy> + <copy> + <from> + <literal> + <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> + <Title>test</Title> + <Description>test category</Description> + </Object> + </literal> + </from> + <to variable="CategoryXML"/> + </copy> + </assign> + + <!-- Render XML to string --> + <assign name="marshalCategoryXML"> + <copy> + <from>sxxf:doMarshal($CategoryXML)</from> + <to>$AddObjectIn.object_xml</to> + </copy> + </assign> + + <invoke name="addCategory" partnerLink="ILIAS" operation="addObject" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddObjectIn" + outputVariable="AddObjectOut"> + <sxt:trace> + <sxt:log level="info" location="onStart"> + <from>concat('*** Adding Category: ', $AddObjectIn.object_xml)</from> + </sxt:log> + </sxt:trace> + </invoke> + + <!-- Set RefId --> + <assign name="setRefId"> + <copy> + <from>$AddObjectOut.ref_id</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + </sequence> + </if> + </sequence> + </scope> + + <!-- Initialize course xml skeleton --> + <assign name="initializeCourseXML"> + <copy> + <from> + <literal> + <Course xmlns="http://cse.campussource.de/schema/ilias/course"> + <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> + <General> + <Title Language="en">test3</Title> + <Language Language="en">en</Language> + <Description Language="en">bpel test2</Description> + </General> + </MetaData> + </Course> + </literal> + </from> + <to>$CourseXML</to> + </copy> + </assign> + + <!-- Set relevant course data --> + <assign name="setCourseData"> + <copy> +<!-- + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> +--> + <from>'test6'</from> + <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> + </copy> +<!-- + <copy> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Title/@Language</to> + </copy> + <copy> + <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> + <to>$CourseXML/MetaData/General/Language[0]/@Language</to> + </copy> +--> + </assign> + + <!-- Set all parts for addCourse call --> + <assign name="prepareAddCourse"> + <!-- Set SID --> + <copy> + <from variable="SID"/> + <to variable="AddCourseIn" part="sid"/> + </copy> + <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> + <copy> + <from variable="CategoryRefId"/> + <to variable="AddCourseIn" part="target_id"/> + </copy> + <!-- Set CourseXML (as string) --> + <copy> + <from>sxxf:doMarshal($CourseXML)</from> + <to variable="AddCourseIn" part="crs_xml"/> + </copy> + </assign> + + <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="AddCourseIn" + outputVariable="AddCourseOut"> <sxt:trace> <sxt:log level="info" location="onStart"> - <from>'*** Processing ObjectsXML...'</from> + <from>concat('*** Adding Course (refId: ', $AddCourseIn.target_id, ', xml: ', $AddCourseIn.crs_xml, ')')</from> </sxt:log> + + <sxt:log level="info" location="onComplete"> + <from>concat('*** Result of addCourse: ', $AddCourseOut.course_id)</from> + </sxt:log> </sxt:trace> - - <!-- Convert to XML structure --> - <assign name="unmarshalResult" > + </invoke> + </sequence> + </onMessage> + <onMessage partnerLink="ILIASAdapter" operation="ProcessCategoryOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" portType="tns:ILIASClientAdapterPortType" variable="ProcessCategoryOperationIn"> + <scope name="createCategory"> + <variables> + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Object"/> + </variables> + <sequence> + <assign name="prepareLoginForProcessCategory"> <copy> - <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> - <to variable="ObjectsRawXML"/> + <from>'test'</from> + <to variable="LoginIn" part="client"/> </copy> - </assign> - - <assign> -<!-- - BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs - java.lang.NullPointerException - <sxt:trace> - <sxt:log level="info" location="onComplete"> - <from>concat('*** ObjectsXML (after xslt): ', sxxf:doMarshal($ObjectsXML))</from> - </sxt:log> - </sxt:trace> ---> <copy> - <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $ObjectsRawXML)</from> - <to variable="ObjectsXML"/> + <from>'root'</from> + <to variable="LoginIn" part="username"/> </copy> + <copy> + <from>'homer'</from> + <to variable="LoginIn" part="password"/> + </copy> </assign> - <!-- Determine, if there is a category in the result (Object/@type = "cat") and get it's refId for later --> - <assign name="checkForCategories"> - -<!-- - BUG: java.util.logging.ErrorManager: 5: Error in extracting Name Value Pairs - java.lang.NullPointerException - + <invoke name="loginForProcessCategory" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" + portType="tns:ILIASSoapWebservicePortType" + inputVariable="LoginIn" + outputVariable="LoginOut"> <sxt:trace> <sxt:log level="info" location="onComplete"> - <from>concat('*** CategoryRefId: ', string($CategoryRefId))</from> + <from>concat('*** SID: ', $LoginOut.sid)</from> </sxt:log> </sxt:trace> ---> - <!-- Note: if an empty node is return below, it is converted by number() to "NaN" --> + </invoke> + + <assign name="saveSIDForProcessCategory"> <copy> - <from>number($ObjectsXML/il_objs:Object[@il_objs:type = 'cat']/il_objs:References/@il_objs:ref_id)</from> - <to variable="CategoryRefId"/> + <from variable="LoginOut" part="sid"/> + <to variable="SID"/> </copy> </assign> - </sequence> - </if> - <!-- If no appropriate catgeory was found, create one --> - <if> - <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> - <sequence name="addTestCategory"> <assign name="prepareAddCategory"> <copy> <from variable="SID"/> @@ -217,7 +388,7 @@ <from> <literal> <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> - <Title>test</Title> + <Title>category1</Title> <Description>test category</Description> </Object> </literal> @@ -225,7 +396,7 @@ <to variable="CategoryXML"/> </copy> </assign> - + <!-- Render XML to string --> <assign name="marshalCategoryXML"> <copy> @@ -244,105 +415,11 @@ </sxt:log> </sxt:trace> </invoke> - - <!-- Set RefId --> - <assign name="setRefId"> - <copy> - <from>$AddObjectOut.ref_id</from> - <to variable="CategoryRefId"/> - </copy> - </assign> </sequence> - </if> - </sequence> - </scope> -<!-- - <forEach name="SearchForCategoryInResult" parallel="no" counterName="ObjectCounter"> - <startCounterValue>1</startCounterValue> - <finalCounterValue>$ObjectsXML/object[.]</finalCounterValue> - <completionCondition> - <branches>6</branches> - </completionCondition> - <scope name="Scope1"> - <assign name="Assign1"/> - </scope> - </forEach> ---> - <!-- Initialize course xml skeleton --> - <assign name="initializeCourseXML"> - <copy> - <from> - <literal> - <Course xmlns="http://cse.campussource.de/schema/ilias/course"> - <MetaData xmlns="http://cse.campussource.de/schema/ilias/course"> - <General> - <Title Language="en">test3</Title> - <Language Language="en">en</Language> - <Description Language="en">bpel test2</Description> - </General> - </MetaData> - </Course> - </literal> - </from> - <to>$CourseXML</to> - </copy> - </assign> + </scope> + </onMessage> + </pick> - <!-- Set relevant course data --> - <assign name="setCourseData"> - <copy> -<!-- - <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'title']/value</from> ---> - <from>'test6'</from> - <to>$CourseXML/il_crs:MetaData/il_crs:General/il_crs:Title/text()</to> - </copy> -<!-- - <copy> - <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> - <to>$CourseXML/MetaData/General/Title/@Language</to> - </copy> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/course/attribute[name = 'languageISO']/value</from> - <to>$CourseXML/MetaData/General/Language[0]/@Language</to> - </copy> ---> - </assign> - - <!-- Set all parts for addCourse call --> - <assign name="prepareAddCourse"> - <!-- Set SID --> - <copy> - <from variable="SID"/> - <to variable="AddCourseIn" part="sid"/> - </copy> - <!-- Set targetRefId with defaut value (= catgeory-root hopefully...) --> - <copy> - <from variable="CategoryRefId"/> - <to variable="AddCourseIn" part="target_id"/> - </copy> - <!-- Set CourseXML (as string) --> - <copy> - <from>sxxf:doMarshal($CourseXML)</from> - <to variable="AddCourseIn" part="crs_xml"/> - </copy> - </assign> - - <invoke name="createLecture" partnerLink="ILIAS" operation="addCourse" xmlns:tns="urn:ilUserAdministration" - portType="tns:ILIASSoapWebservicePortType" - inputVariable="AddCourseIn" - outputVariable="AddCourseOut"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Adding Course (refId: ', $AddCourseIn.target_id, ', xml: ', $AddCourseIn.crs_xml, ')')</from> - </sxt:log> - - <sxt:log level="info" location="onComplete"> - <from>concat('*** Result of addCourse: ', $AddCourseOut.course_id)</from> - </sxt:log> - </sxt:trace> - </invoke> - <assign name="prepareLogout"> <copy> <from variable="SID"/> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ilias-course-exported.xml 2009-05-04 14:50:27 UTC (rev 207) @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?><!DOCTYPE Course PUBLIC "-//ILIAS//DTD Course//EN" "http://localhost/ilias3/xml/ilias_course_3_8.dtd"> + <!-- + Document : ilias-course-real.xml + Created on : 29. April 2009, 10:07 + Author : pete + Description: + Purpose of the document follows. +--> +<!--Export of ILIAS course 179 of installation 0 (refId [used for export] = 43).--> +<Course exportVersion="2" id="il_0_crs_179"> + <MetaData> + <General Structure="Hierarchical"> + <Identifier Catalog="ILIAS" Entry="il__crs_179"/> + <Title Language="en">test - manual</Title> + <Language Language="en"/> + <Description Language="en">test - manual</Description> + <Keyword Language="en"/> + </General> + </MetaData> + <AdvancedMetaData></AdvancedMetaData> + <Admin id="il_0_usr_6" notification="No" passed="No"></Admin> + <Settings> + <Availability> + <NotAvailable/> + </Availability> + <Syllabus></Syllabus> + <ImportantInformation></ImportantInformation> + <Contact> + <Name></Name> + <Responsibility></Responsibility> + <Phone></Phone> + <Email></Email> + <Consultation></Consultation> + </Contact> + <Registration registrationType="Direct" maxMembers="0" notification="Yes" waitingList="Yes"> + <Unlimited/> + </Registration> + <Sort type="Manual"/> + <Archive Access="Disabled"> + <Start>1240992000</Start> + <End>1323644400</End> + </Archive> + </Settings> +</Course> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ale...@us...> - 2009-05-29 12:43:06
|
Revision: 225 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=225&view=rev Author: alexloewen Date: 2009-05-29 12:42:50 +0000 (Fri, 29 May 2009) Log Message: ----------- Some Funktionality to delete/update Category and delete/updateCourse. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 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/Login.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/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-05-29 12:42:50 UTC (rev 225) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> - <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCategory.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -49,7 +49,7 @@ <from> <literal> <Object xmlns="http://cse.campussource.de/schema/ilias/objects" type="cat"> - <Title>category1</Title> + <Title>category2</Title> <Description>test category</Description> </Object> </literal> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -223,7 +223,7 @@ </Course> </literal> </from> - <to>$CourseXML</to> + <to variable="CourseXML"/> </copy> </assign> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCategory.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -10,15 +10,37 @@ 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/"/> + <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"/> </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"/> </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"/> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -10,15 +10,37 @@ 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/"/> + <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"/> </partnerLinks> <variables> + <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"/> </sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -43,7 +43,7 @@ <to variable="IliasLoginIn" part="username"/> </copy> <copy> - <from>'homer'</from> + <from>'cs3-1p'</from> <to variable="IliasLoginIn" part="password"/> </copy> </assign> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -8,17 +8,111 @@ 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/UpdateCategory"> + xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" + xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateCategory" 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"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.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://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"/> <partnerLink name="IliasAdpater" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" myRole="UpdateCategoryPortTypeRole"/> </partnerLinks> <variables> + <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"/> + <variable name="UpdateObjectsIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateObjectsRequest"/> <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"/> + + <!-- Category description as object in Ilias-Format --> + <variable name="CategoryXML" element="il_objs:Objects"/> + <!-- Category XML unmarshalled --> + <variable name="CategoryXMLtransformed" element="il_objs:Objects"/> </variables> <sequence> <receive name="start" createInstance="yes" partnerLink="IliasAdpater" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" variable="UpdateCategoryIn"/> - <reply name="return" partnerLink="IliasAdpater" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" variable="UpdateCategoryOut"/> - </sequence> + <assign name="prepareForGettingCategory"> + <copy> + <from variable="UpdateCategoryIn" part="SID"/> + <to variable="GetObjectsByTitleIn" part="sid"/> + </copy> + <copy> + <from>'test7'</from> + <to variable="GetObjectsByTitleIn" part="title"/> + </copy> + <copy> + <from>0</from> + <to variable="GetObjectsByTitleIn" part="user_id"/> + </copy> + </assign> + <invoke name="getObjectBeiTitleInvoke" partnerLink="ILIAS" operation="getObjectsByTitle" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="GetObjectsByTitleIn" outputVariable="GetObjectsByTitleOut"/> + <if name="If1"> + <condition>'' != $GetObjectsByTitleOut.object_xml</condition> + <sequence name="Sequence1"> + <assign name="unmarshalObjectXml"> + <copy> + <from>sxxf:doUnMarshal($GetObjectsByTitleOut.object_xml)</from> + <to variable="CategoryXML"/> + </copy> + </assign> + + <assign name="doXSLTransformation"> + <copy> + <from>ns0:doXslTransform('urn:stylesheets:setObjectsNS.xsl', $CategoryXML)</from> + <to variable="CategoryXMLtransformed"/> + </copy> + + </assign> + <assign name="fakeUpdateData"> + <copy> + <from>'test10'</from> + <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title</to> + </copy> + <copy> + <from>'descrTest'</from> + <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Description</to> + </copy> + <copy> + <from>sxxf:current-dateTime()</from> + <to>$CategoryXMLtransformed/il_objs:Object/il_objs:LastUpdate</to> + </copy> + </assign> + <assign name="marshallCategoryXML"> + <copy> + <from>sxxf:doMarshal($CategoryXMLtransformed)</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> + </sxt:log> + </sxt:trace> + <copy> + <from variable="UpdateCategoryIn" part="SID"/> + <to variable="UpdateObjectsIn" part="sid"/> + </copy> + </assign> + <invoke name="UpdateObjectInvoke" partnerLink="ILIAS" operation="updateObjects" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="UpdateObjectsIn" outputVariable="UpdateObjectsOut"/> + <assign name="prepareReply"> + <copy> + <from variable="UpdateObjectsOut" part="success"/> + <to variable="UpdateCategoryOut" part="success"/> + </copy> + </assign> + </sequence> + <else> + <assign name="noSuchCategory"> + <copy> + <from>false()</from> + <to variable="UpdateCategoryOut" part="success"/> + </copy> + </assign> + </else> + </if> + <reply name="return" partnerLink="IliasAdpater" operation="updateCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" portType="tns:UpdateCategoryPortType" variable="UpdateCategoryOut"/> +</sequence> </process> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-05-29 10:05:34 UTC (rev 224) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-05-29 12:42:50 UTC (rev 225) @@ -10,15 +10,37 @@ 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/"/> <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"/> </partnerLinks> <variables> + <variable name="UpdateILIASCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateCourseResponse"/> + <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"/> </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"> + <copy> + <from variable="UpdateCourseIn" part="SID"/> + <to variable="UpdateILIASCourseIn" part="sid"/> + </copy> + <copy> + <from>182</from> + <to variable="UpdateILIASCourseIn" part="course_id"/> + </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"/> + <to variable="UpdateCourseOut" part="success"/> + </copy> + </assign> <reply name="return" partnerLink="IliasAdapter" operation="updateCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" portType="tns:UpdateCoursePortType" variable="UpdateCourseOut"/> </sequence> </process> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-06-09 08:04:07
|
Revision: 248 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=248&view=rev Author: pkasprzak Date: 2009-06-09 08:04:04 +0000 (Tue, 09 Jun 2009) Log Message: ----------- * Generate replies Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-09 08:02:48 UTC (rev 247) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-09 08:04:04 UTC (rev 248) @@ -1,66 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> <project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> - <description>Builds, tests, and runs the project .</description> <import file="nbproject/build-impl.xml"/> - <!-- - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -pre-init called before initialization of project properties - -post-init called after initialization of project properties - -pre-compile called before javac compilation - -post-compile called after javac compilation - -pre-compile-single called before javac compilation of single file - -post-compile-single called after javac compilation of single file - -pre-dist called before jar building - -post-dist called after jar building - -post-clean called after cleaning build products - - Example of pluging an obfuscator after the compilation could look like - - <target name="post-compile"> - <obfuscate> - <fileset dir="${build.classes.dir}"/> - </obfuscate> - </target> - - For list of available properties check the imported - nbproject/build-impl.xml file. - - Other way how to customize the build is by overriding existing main targets. - The target of interest are: - - init-macrodef-javac defines macro for javac compilation - init-macrodef-debug defines macro for class debugging - do-dist jar archive building - run execution of project - javadoc-build javadoc generation - - Example of overriding the target for project execution could look like - - <target name="run" depends="<PROJNAME>-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that overridden target depends on jar target and not only on - compile target as regular run target does. Again, for list of available - properties which you can use check the target you are overriding in - nbproject/build-impl.xml file. - --> - <target name="-init-esb-ide" if="netbeans.home"> + <target name="init-esb-ide" if="netbeans.home"> <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-esb-cmdline" unless="netbeans.home"> + <target name="init-esb-cli" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> + <target name="check-catd-context"> + <condition property="no.catd.context"> + <not> + <isset property="org.netbeans.modules.compapp.catd.context"/> + </not> + </condition> + </target> + <target name="init-catd" if="no.catd.context"> + <property name="org.netbeans.modules.compapp.catd.context" value=""/> + </target> + <target name="pre-init" depends="init-esb-ide,init-esb-cli,check-catd-context,init-catd"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-09 08:02:48 UTC (rev 247) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-09 08:04:04 UTC (rev 248) @@ -1,52 +1,43 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - *** GENERATED FROM project.xml - DO NOT EDIT *** - *** EDIT ../build.xml INSTEAD *** - - For the purpose of easier reading the script - is divided into following sections: - - - initialization - - dist - - cleanup + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** --> <project name="ILIASClientAdapter-impl" default="default" basedir=".."> - <target name="default" depends="dist_se" description="Build whole project."/> + <target name="default" depends="dist_se"/> <!-- - ====================== INITIALIZATION SECTION - ====================== --> - <target name="-pre-init"> + <target name="pre-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-private" depends="-pre-init"> + <target name="init-private" depends="pre-init"> <property file="nbproject/private/private.properties"/> </target> - <target name="-init-userdir" depends="-pre-init,-init-private"> + <target name="init-userdir" depends="pre-init,init-private"> <property name="user.properties.file" location="${netbeans.user}/build.properties"/> </target> - <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <target name="init-user" depends="pre-init,init-private,init-userdir"> <property file="${user.properties.file}"/> </target> - <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <target name="init-project" depends="pre-init,init-private,init-userdir,init-user"> <property file="nbproject/project.properties"/> </target> - <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project"> <available file="${src.dir}/../retrieved" property="retrieved.exists"/> </target> - <target name="-post-init"> + <target name="post-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init"> <fail unless="src.dir">Must set src.dir</fail> <fail unless="build.dir">Must set build.dir</fail> <fail unless="dist.dir">Must set dist.dir</fail> <fail unless="dist.jar">Must set dist.jar</fail> </target> - <target name="-init-taskdefs" if="from.commandline"> + <target name="init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> @@ -95,24 +86,21 @@ <classpath refid="ant.task.classpath"/> </taskdef> </target> - <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,init-taskdefs"/> <!-- - ===================== DIST BUILDING SECTION - ===================== --> - <target name="-pre-dist"> + <target name="pre-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <target name="deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.Common}"/> + <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-dist" depends="init,-pre-dist"> + <target name="do-dist" depends="init,pre-dist"> <mkdir dir="${build.dir}"/> - <!--validation--> <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> - <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> </copy> @@ -126,30 +114,29 @@ </fileset> </jar> </target> - <target name="-post-dist"> + <target name="post-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <target name="dist_se" depends="init,pre-dist,deps-jar-dist,do-dist,post-dist"/> <!-- - =============== CLEANUP SECTION - =============== --> - <target name="-pre-clean"> + <target name="pre-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <target name="deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.Common}"/> + <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-clean" depends="init,-pre-clean"> + <target name="do-clean" depends="init,pre-clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> - <target name="-post-clean"> + <target name="post-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> + <target name="clean" depends="init,pre-clean,deps-clean,do-clean,post-clean"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-09 08:02:48 UTC (rev 247) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-09 08:04:04 UTC (rev 248) @@ -1,8 +1,8 @@ -build.xml.data.CRC32=c508cd24 -build.xml.script.CRC32=60b50638 -build.xml.stylesheet.CRC32=f35fd70d +build.xml.data.CRC32=da61cde5 +build.xml.script.CRC32=22f94a4b +build.xml.stylesheet.CRC32=b168c0ed # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=c508cd24 -nbproject/build-impl.xml.script.CRC32=9fe3d43a -nbproject/build-impl.xml.stylesheet.CRC32=5068533b +nbproject/build-impl.xml.data.CRC32=da61cde5 +nbproject/build-impl.xml.script.CRC32=544d13e7 +nbproject/build-impl.xml.stylesheet.CRC32=2e896532 Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties 2009-06-09 08:02:48 UTC (rev 247) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.properties 2009-06-09 08:04:04 UTC (rev 248) @@ -21,7 +21,9 @@ meta.inf=${source.root}/conf platform.active=default_platform project.Common=../Common +project.ObjectProcessor=../ObjectProcessor reference.Common.dist_se=${project.Common}/build/SEDeployment.jar +reference.ObjectProcessor.dist_se=${project.ObjectProcessor}/build/SEDeployment.jar resource.dir=setup sedeployment.jar=${build.dir}/SEDeployment.jar source.encoding=UTF-8 Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml 2009-06-09 08:02:48 UTC (rev 247) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/project.xml 2009-06-09 08:04:04 UTC (rev 248) @@ -15,6 +15,14 @@ <clean-target>clean</clean-target> <id>dist_se</id> </reference> + <reference> + <foreign-project>ObjectProcessor</foreign-project> + <artifact-type>jar</artifact-type> + <script>build.xml</script> + <target>dist_se</target> + <clean-target>clean</clean-target> + <id>dist_se</id> + </reference> </references> </configuration> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ale...@us...> - 2009-06-10 12:56:14
|
Revision: 252 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=252&view=rev Author: alexloewen Date: 2009-06-10 12:36:38 +0000 (Wed, 10 Jun 2009) Log Message: ----------- edited updateCategory and UpdateCourse. Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 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/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -1,24 +1,66 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- You may freely edit this file. See commented blocks below for --> +<!-- some examples of how to customize the build. --> +<!-- (If you delete it and reopen the project it will be recreated.) --> <project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> + <description>Builds, tests, and runs the project .</description> <import file="nbproject/build-impl.xml"/> - <target name="init-esb-ide" if="netbeans.home"> + <!-- + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: + + -pre-init called before initialization of project properties + -post-init called after initialization of project properties + -pre-compile called before javac compilation + -post-compile called after javac compilation + -pre-compile-single called before javac compilation of single file + -post-compile-single called after javac compilation of single file + -pre-dist called before jar building + -post-dist called after jar building + -post-clean called after cleaning build products + + Example of pluging an obfuscator after the compilation could look like + + <target name="post-compile"> + <obfuscate> + <fileset dir="${build.classes.dir}"/> + </obfuscate> + </target> + + For list of available properties check the imported + nbproject/build-impl.xml file. + + Other way how to customize the build is by overriding existing main targets. + The target of interest are: + + init-macrodef-javac defines macro for javac compilation + init-macrodef-debug defines macro for class debugging + do-dist jar archive building + run execution of project + javadoc-build javadoc generation + + Example of overriding the target for project execution could look like + + <target name="run" depends="<PROJNAME>-impl.jar"> + <exec dir="bin" executable="launcher.exe"> + <arg file="${dist.jar}"/> + </exec> + </target> + + Notice that overridden target depends on jar target and not only on + compile target as regular run target does. Again, for list of available + properties which you can use check the target you are overriding in + nbproject/build-impl.xml file. + --> + <target name="-init-esb-ide" if="netbeans.home"> <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="init-esb-cli" unless="netbeans.home"> + <target name="-init-esb-cmdline" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="check-catd-context"> - <condition property="no.catd.context"> - <not> - <isset property="org.netbeans.modules.compapp.catd.context"/> - </not> - </condition> - </target> - <target name="init-catd" if="no.catd.context"> - <property name="org.netbeans.modules.compapp.catd.context" value=""/> - </target> - <target name="pre-init" depends="init-esb-ide,init-esb-cli,check-catd-context,init-catd"/> + <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -2,6 +2,6 @@ <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-10 12:36:38 UTC (rev 252) @@ -1,43 +1,52 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - *** GENERATED FROM project.xml - DO NOT EDIT *** - *** EDIT ../build.xml INSTEAD *** + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** + + For the purpose of easier reading the script + is divided into following sections: + + - initialization + - dist + - cleanup --> <project name="ILIASClientAdapter-impl" default="default" basedir=".."> - <target name="default" depends="dist_se"/> + <target name="default" depends="dist_se" description="Build whole project."/> <!-- + ====================== INITIALIZATION SECTION + ====================== --> - <target name="pre-init"> + <target name="-pre-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="init-private" depends="pre-init"> + <target name="-init-private" depends="-pre-init"> <property file="nbproject/private/private.properties"/> </target> - <target name="init-userdir" depends="pre-init,init-private"> + <target name="-init-userdir" depends="-pre-init,-init-private"> <property name="user.properties.file" location="${netbeans.user}/build.properties"/> </target> - <target name="init-user" depends="pre-init,init-private,init-userdir"> + <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> <property file="${user.properties.file}"/> </target> - <target name="init-project" depends="pre-init,init-private,init-userdir,init-user"> + <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> <property file="nbproject/project.properties"/> </target> - <target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project"> + <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> <available file="${src.dir}/../retrieved" property="retrieved.exists"/> </target> - <target name="post-init"> + <target name="-post-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init"> + <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> <fail unless="src.dir">Must set src.dir</fail> <fail unless="build.dir">Must set build.dir</fail> <fail unless="dist.dir">Must set dist.dir</fail> <fail unless="dist.jar">Must set dist.jar</fail> </target> - <target name="init-taskdefs" if="from.commandline"> + <target name="-init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> @@ -86,21 +95,25 @@ <classpath refid="ant.task.classpath"/> </taskdef> </target> - <target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,init-taskdefs"/> + <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> <!-- + ===================== DIST BUILDING SECTION + ===================== --> - <target name="pre-dist"> + <target name="-pre-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="deps-jar-dist" depends="init" unless="${no.dependencies}"> + <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.Common}"/> <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="do-dist" depends="init,pre-dist"> + <target name="-do-dist" depends="init,-pre-dist"> <mkdir dir="${build.dir}"/> + <!--validation--> <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> + <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> </copy> @@ -114,29 +127,31 @@ </fileset> </jar> </target> - <target name="post-dist"> + <target name="-post-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="dist_se" depends="init,pre-dist,deps-jar-dist,do-dist,post-dist"/> + <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> <!-- + =============== CLEANUP SECTION + =============== --> - <target name="pre-clean"> + <target name="-pre-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="deps-clean" depends="init" unless="${no.dependencies}"> + <target name="-deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.Common}"/> <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="do-clean" depends="init,pre-clean"> + <target name="-do-clean" depends="init,-pre-clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> - <target name="post-clean"> + <target name="-post-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="clean" depends="init,pre-clean,deps-clean,do-clean,post-clean"/> + <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-06-10 12:36:38 UTC (rev 252) @@ -1,8 +1,8 @@ build.xml.data.CRC32=da61cde5 -build.xml.script.CRC32=22f94a4b -build.xml.stylesheet.CRC32=b168c0ed +build.xml.script.CRC32=60b50638 +build.xml.stylesheet.CRC32=f35fd70d # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=da61cde5 -nbproject/build-impl.xml.script.CRC32=544d13e7 -nbproject/build-impl.xml.stylesheet.CRC32=2e896532 +nbproject/build-impl.xml.script.CRC32=fdb3b604 +nbproject/build-impl.xml.stylesheet.CRC32=5068533b Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCategory.bpel 2009-06-10 12:36:38 UTC (rev 252) @@ -8,6 +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:dt="http://cse.campussource.de/schema/DataTypes" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" xmlns:tns="http://enterprise.netbeans.org/bpel/ILIASClientAdapter/UpdateCategory" 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"> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -19,6 +20,7 @@ <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"/> @@ -70,21 +72,27 @@ </copy> </assign> - <assign name="fakeUpdateData"> + + <assign name="SetUpdatedData"> <copy> - <from>'test12'</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title</to> + <from>$UpdateCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Title/text()</to> </copy> - <copy> - <from>'descrTest2'</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:Description</to> + </assign> + + <assign name="Assign1"> + <copy> + <from>$UpdateCategoryIn.category/dt:attribute[dt:name = 'name']/dt:value</from> + <to>$testVariable1</to> </copy> - <copy> - <from>sxxf:current-dateTime()</from> - <to>$CategoryXMLtransformed/il_objs:Object/il_objs:LastUpdate</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> <from>ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl', $CategoryXMLtransformed)</from> <to variable="CategoryXML"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-10 06:58:18 UTC (rev 251) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/UpdateCourse.bpel 2009-06-10 12:36:38 UTC (rev 252) @@ -24,6 +24,7 @@ <partnerLink name="IliasAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" myRole="UpdateCoursePortTypeRole"/> </partnerLinks> <variables> + <variable name="testUpdate1" type="xsd:string"/> <variable name="UpdateILIASCourseOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:updateCourseResponse"/> <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"/> @@ -61,15 +62,15 @@ <to variable="CourseXML"/> </copy> </assign> --> - + <!--delete Namespaces bevor XSLT Transformation !--> <assign name="copyTheActualDataToCourseXML"> <copy> - <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', $UpdateCourseIn.course)</from> + <from>ns0:doXslTransform('urn:stylesheets:updateCourseXSLT.xsl', ns0:doXslTransform('urn:stylesheets:deleteObjectsNS.xsl',$UpdateCourseIn.course))</from> <to variable="CourseXML"/> </copy> </assign> - + <assign name="marshalCourseXML"> <sxt:trace> <sxt:log level="info" location="onStart"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-06-16 11:31:12
|
Revision: 256 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=256&view=rev Author: pkasprzak Date: 2009-06-16 11:31:09 +0000 (Tue, 16 Jun 2009) Log Message: ----------- * Added ws-addressing xsd Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/soap/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/08/ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd 2009-06-16 11:31:09 UTC (rev 256) @@ -0,0 +1,536 @@ +<?xml version='1.0' encoding='UTF-8' ?> + +<!-- Schema for the SOAP/1.1 encoding + +Portions © 2001 DevelopMentor. +© 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. + +This document is governed by the W3C Software License [1] as described in the FAQ [2]. +[1] http://www.w3.org/Consortium/Legal/copyright-software-19980720 +[2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD +By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: + +Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make: + +1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. + +2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" + +3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) + +Original W3C files; http://www.w3.org/2001/06/soap-encoding +Changes made: + - reverted namespace to http://schemas.xmlsoap.org/soap/encoding/ + - reverted root to only allow 0 and 1 as lexical values + - removed default value from root attribute declaration + +THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. + +COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. + +The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. + +--> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/" + targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" > + + <xs:attribute name="root" > + <xs:annotation> + <xs:documentation> + 'root' can be used to distinguish serialization roots from other + elements that are present in a serialization but are not roots of + a serialized value graph + </xs:documentation> + </xs:annotation> + <xs:simpleType> + <xs:restriction base='xs:boolean'> + <xs:pattern value='0|1' /> + </xs:restriction> + </xs:simpleType> + </xs:attribute> + + <xs:attributeGroup name="commonAttributes" > + <xs:annotation> + <xs:documentation> + Attributes common to all elements that function as accessors or + represent independent (multi-ref) values. The href attribute is + intended to be used in a manner like CONREF. That is, the element + content should be empty iff the href attribute appears + </xs:documentation> + </xs:annotation> + <xs:attribute name="id" type="xs:ID" /> + <xs:attribute name="href" type="xs:anyURI" /> + <xs:anyAttribute namespace="##other" processContents="lax" /> + </xs:attributeGroup> + + <!-- Global Attributes. The following attributes are intended to be usable via qualified attribute names on any complex type referencing them. --> + + <!-- Array attributes. Needed to give the type and dimensions of an array's contents, and the offset for partially-transmitted arrays. --> + + <xs:simpleType name="arrayCoordinate" > + <xs:restriction base="xs:string" /> + </xs:simpleType> + + <xs:attribute name="arrayType" type="xs:string" /> + <xs:attribute name="offset" type="tns:arrayCoordinate" /> + + <xs:attributeGroup name="arrayAttributes" > + <xs:attribute ref="tns:arrayType" /> + <xs:attribute ref="tns:offset" /> + </xs:attributeGroup> + + <xs:attribute name="position" type="tns:arrayCoordinate" /> + + <xs:attributeGroup name="arrayMemberAttributes" > + <xs:attribute ref="tns:position" /> + </xs:attributeGroup> + + <xs:group name="Array" > + <xs:sequence> + <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> + </xs:sequence> + </xs:group> + + <xs:element name="Array" type="tns:Array" /> + <xs:complexType name="Array" > + <xs:annotation> + <xs:documentation> + 'Array' is a complex type for accessors identified by position + </xs:documentation> + </xs:annotation> + <xs:group ref="tns:Array" minOccurs="0" /> + <xs:attributeGroup ref="tns:arrayAttributes" /> + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:complexType> + + <!-- 'Struct' is a complex type for accessors identified by name. + Constraint: No element may be have the same name as any other, + nor may any element have a maxOccurs > 1. --> + + <xs:element name="Struct" type="tns:Struct" /> + + <xs:group name="Struct" > + <xs:sequence> + <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> + </xs:sequence> + </xs:group> + + <xs:complexType name="Struct" > + <xs:group ref="tns:Struct" minOccurs="0" /> + <xs:attributeGroup ref="tns:commonAttributes"/> + </xs:complexType> + + <!-- 'Base64' can be used to serialize binary data using base64 encoding + as defined in RFC2045 but without the MIME line length limitation. --> + + <xs:simpleType name="base64" > + <xs:restriction base="xs:base64Binary" /> + </xs:simpleType> + + <!-- Element declarations corresponding to each of the simple types in the + XML Schemas Specification. --> + + <xs:element name="duration" type="tns:duration" /> + <xs:complexType name="duration" > + <xs:simpleContent> + <xs:extension base="xs:duration" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="dateTime" type="tns:dateTime" /> + <xs:complexType name="dateTime" > + <xs:simpleContent> + <xs:extension base="xs:dateTime" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + + + <xs:element name="NOTATION" type="tns:NOTATION" /> + <xs:complexType name="NOTATION" > + <xs:simpleContent> + <xs:extension base="xs:QName" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + + <xs:element name="time" type="tns:time" /> + <xs:complexType name="time" > + <xs:simpleContent> + <xs:extension base="xs:time" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="date" type="tns:date" /> + <xs:complexType name="date" > + <xs:simpleContent> + <xs:extension base="xs:date" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="gYearMonth" type="tns:gYearMonth" /> + <xs:complexType name="gYearMonth" > + <xs:simpleContent> + <xs:extension base="xs:gYearMonth" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="gYear" type="tns:gYear" /> + <xs:complexType name="gYear" > + <xs:simpleContent> + <xs:extension base="xs:gYear" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="gMonthDay" type="tns:gMonthDay" /> + <xs:complexType name="gMonthDay" > + <xs:simpleContent> + <xs:extension base="xs:gMonthDay" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="gDay" type="tns:gDay" /> + <xs:complexType name="gDay" > + <xs:simpleContent> + <xs:extension base="xs:gDay" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="gMonth" type="tns:gMonth" /> + <xs:complexType name="gMonth" > + <xs:simpleContent> + <xs:extension base="xs:gMonth" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="boolean" type="tns:boolean" /> + <xs:complexType name="boolean" > + <xs:simpleContent> + <xs:extension base="xs:boolean" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="base64Binary" type="tns:base64Binary" /> + <xs:complexType name="base64Binary" > + <xs:simpleContent> + <xs:extension base="xs:base64Binary" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="hexBinary" type="tns:hexBinary" /> + <xs:complexType name="hexBinary" > + <xs:simpleContent> + <xs:extension base="xs:hexBinary" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="float" type="tns:float" /> + <xs:complexType name="float" > + <xs:simpleContent> + <xs:extension base="xs:float" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="double" type="tns:double" /> + <xs:complexType name="double" > + <xs:simpleContent> + <xs:extension base="xs:double" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="anyURI" type="tns:anyURI" /> + <xs:complexType name="anyURI" > + <xs:simpleContent> + <xs:extension base="xs:anyURI" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="QName" type="tns:QName" /> + <xs:complexType name="QName" > + <xs:simpleContent> + <xs:extension base="xs:QName" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + + <xs:element name="string" type="tns:string" /> + <xs:complexType name="string" > + <xs:simpleContent> + <xs:extension base="xs:string" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="normalizedString" type="tns:normalizedString" /> + <xs:complexType name="normalizedString" > + <xs:simpleContent> + <xs:extension base="xs:normalizedString" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="token" type="tns:token" /> + <xs:complexType name="token" > + <xs:simpleContent> + <xs:extension base="xs:token" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="language" type="tns:language" /> + <xs:complexType name="language" > + <xs:simpleContent> + <xs:extension base="xs:language" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="Name" type="tns:Name" /> + <xs:complexType name="Name" > + <xs:simpleContent> + <xs:extension base="xs:Name" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="NMTOKEN" type="tns:NMTOKEN" /> + <xs:complexType name="NMTOKEN" > + <xs:simpleContent> + <xs:extension base="xs:NMTOKEN" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="NCName" type="tns:NCName" /> + <xs:complexType name="NCName" > + <xs:simpleContent> + <xs:extension base="xs:NCName" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="NMTOKENS" type="tns:NMTOKENS" /> + <xs:complexType name="NMTOKENS" > + <xs:simpleContent> + <xs:extension base="xs:NMTOKENS" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="ID" type="tns:ID" /> + <xs:complexType name="ID" > + <xs:simpleContent> + <xs:extension base="xs:ID" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="IDREF" type="tns:IDREF" /> + <xs:complexType name="IDREF" > + <xs:simpleContent> + <xs:extension base="xs:IDREF" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="ENTITY" type="tns:ENTITY" /> + <xs:complexType name="ENTITY" > + <xs:simpleContent> + <xs:extension base="xs:ENTITY" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="IDREFS" type="tns:IDREFS" /> + <xs:complexType name="IDREFS" > + <xs:simpleContent> + <xs:extension base="xs:IDREFS" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="ENTITIES" type="tns:ENTITIES" /> + <xs:complexType name="ENTITIES" > + <xs:simpleContent> + <xs:extension base="xs:ENTITIES" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="decimal" type="tns:decimal" /> + <xs:complexType name="decimal" > + <xs:simpleContent> + <xs:extension base="xs:decimal" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="integer" type="tns:integer" /> + <xs:complexType name="integer" > + <xs:simpleContent> + <xs:extension base="xs:integer" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="nonPositiveInteger" type="tns:nonPositiveInteger" /> + <xs:complexType name="nonPositiveInteger" > + <xs:simpleContent> + <xs:extension base="xs:nonPositiveInteger" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="negativeInteger" type="tns:negativeInteger" /> + <xs:complexType name="negativeInteger" > + <xs:simpleContent> + <xs:extension base="xs:negativeInteger" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="long" type="tns:long" /> + <xs:complexType name="long" > + <xs:simpleContent> + <xs:extension base="xs:long" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="int" type="tns:int" /> + <xs:complexType name="int" > + <xs:simpleContent> + <xs:extension base="xs:int" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="short" type="tns:short" /> + <xs:complexType name="short" > + <xs:simpleContent> + <xs:extension base="xs:short" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="byte" type="tns:byte" /> + <xs:complexType name="byte" > + <xs:simpleContent> + <xs:extension base="xs:byte" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="nonNegativeInteger" type="tns:nonNegativeInteger" /> + <xs:complexType name="nonNegativeInteger" > + <xs:simpleContent> + <xs:extension base="xs:nonNegativeInteger" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="unsignedLong" type="tns:unsignedLong" /> + <xs:complexType name="unsignedLong" > + <xs:simpleContent> + <xs:extension base="xs:unsignedLong" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="unsignedInt" type="tns:unsignedInt" /> + <xs:complexType name="unsignedInt" > + <xs:simpleContent> + <xs:extension base="xs:unsignedInt" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="unsignedShort" type="tns:unsignedShort" /> + <xs:complexType name="unsignedShort" > + <xs:simpleContent> + <xs:extension base="xs:unsignedShort" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="unsignedByte" type="tns:unsignedByte" /> + <xs:complexType name="unsignedByte" > + <xs:simpleContent> + <xs:extension base="xs:unsignedByte" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="positiveInteger" type="tns:positiveInteger" /> + <xs:complexType name="positiveInteger" > + <xs:simpleContent> + <xs:extension base="xs:positiveInteger" > + <xs:attributeGroup ref="tns:commonAttributes" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + + <xs:element name="anyType" /> +</xs:schema> + Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd 2009-06-16 11:31:09 UTC (rev 256) @@ -0,0 +1,149 @@ +<?xml version="1.0"?> +<!-- +Copyright © 2002-2004 BEA Systems Inc., International Business Machines Corporation, +Microsoft Corporation, Inc, SAP AG, and Sun Microsystems, Inc.. All rights reserved. + +Permission to copy, display, perform, modify and distribute the WS-Addressing Specification, +and to authorize others to do the foregoing, in any medium without fee or royalty is hereby +granted for the purpose of developing and evaluating the WS-Addressing Specification. + +BEA, IBM, Microsoft, SAP AG, and Sun Microsystems (collectively, the "Authors") each agree +to grant a license to third parties, under royalty-free and otherwise reasonable, +non-discriminatory terms and conditions, to their respective essential patent claims that +they deem necessary to implement the WS-Addressing Specification. + +DISCLAIMERS: + +THE WS-Addressing Specification IS PROVIDED "AS IS", AND THE AUTHORS MAKE NO REPRESENTATIONS +OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE +CONTENTS OF THE WS-Addressing Specification IS SUITABLE FOR ANY PURPOSE; NOR THAT THE +IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, +TRADEMARKS OR OTHER RIGHTS. + +THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL +DAMAGES ARISING OUT OF ANY USE OF THE WS-Addressing Specification OR THE PERFORMANCE OR +IMPLEMENTATION OF THE CONTENTS THEREOF. + +You may remove these disclaimers from your modified versions of the WS-Addressing +Specification provided that you effectively disclaim all warranties and liabilities on behalf +of all copyright holders in the copies of any such modified versions you distribute. + +The name and trademarks of the Authors may NOT be used in any manner, including advertising +or publicity pertaining to the WS-Addressing Specification or its contents without specific, +written prior permission. Title to copyright in the WS-Addressing Specification will at all +times remain with the Authors. + +No other rights are granted by implication, estoppel or otherwise. + +--> +<xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" elementFormDefault="qualified" blockDefault="#all"> + <!-- //////////////////// WS-Addressing //////////////////// --> + <!-- Endpoint reference --> + <xs:element name="EndpointReference" type="wsa:EndpointReferenceType"/> + <xs:complexType name="EndpointReferenceType"> + <xs:sequence> + <xs:element name="Address" type="wsa:AttributedURI"/> + <xs:element name="ReferenceProperties" type="wsa:ReferencePropertiesType" minOccurs="0"/> + <xs:element name="ReferenceParameters" type="wsa:ReferenceParametersType" minOccurs="0"/> + <xs:element name="PortType" type="wsa:AttributedQName" minOccurs="0"/> + <xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/> + <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"> + <xs:annotation> + <xs:documentation> + If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements). + </xs:documentation> + </xs:annotation> + </xs:any> + </xs:sequence> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:complexType> + <xs:complexType name="ReferencePropertiesType"> + <xs:sequence> + <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="ReferenceParametersType"> + <xs:sequence> + <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="ServiceNameType"> + <xs:simpleContent> + <xs:extension base="xs:QName"> + <xs:attribute name="PortName" type="xs:NCName"/> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <!-- Message information header blocks --> + <xs:element name="MessageID" type="wsa:AttributedURI"/> + <xs:element name="RelatesTo" type="wsa:Relationship"/> + <xs:element name="To" type="wsa:AttributedURI"/> + <xs:element name="Action" type="wsa:AttributedURI"/> + <xs:element name="From" type="wsa:EndpointReferenceType"/> + <xs:element name="ReplyTo" type="wsa:EndpointReferenceType"/> + <xs:element name="FaultTo" type="wsa:EndpointReferenceType"/> + <xs:complexType name="Relationship"> + <xs:simpleContent> + <xs:extension base="xs:anyURI"> + <xs:attribute name="RelationshipType" type="xs:QName" use="optional"/> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:simpleType name="RelationshipTypeValues"> + <xs:restriction base="xs:QName"> + <xs:enumeration value="wsa:Reply"/> + </xs:restriction> + </xs:simpleType> + <!-- + June 19, 2007: The ReplyAfter element is deprecated. The name of this element does not match the + name (RetryAfter) used in the specification (http://www.w3.org/Submission/2004/SUBM-ws-addressing-20040810/). + --> + <xs:element name="ReplyAfter" type="wsa:ReplyAfterType"/> + <xs:complexType name="ReplyAfterType"> + <xs:simpleContent> + <xs:extension base="xs:nonNegativeInteger"> + <xs:anyAttribute namespace="##other"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <!-- + June 19, 2007: The RetryAfter element has been added to be consistent with the specification + (http://www.w3.org/Submission/2004/SUBM-ws-addressing-20040810/). + --> + <xs:element name="RetryAfter" type="wsa:RetryAfterType"/> + <xs:complexType name="RetryAfterType"> + <xs:simpleContent> + <xs:extension base="xs:nonNegativeInteger"> + <xs:anyAttribute namespace="##other"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:simpleType name="FaultSubcodeValues"> + <xs:restriction base="xs:QName"> + <xs:enumeration value="wsa:InvalidMessageInformationHeader"/> + <xs:enumeration value="wsa:MessageInformationHeaderRequired"/> + <xs:enumeration value="wsa:DestinationUnreachable"/> + <xs:enumeration value="wsa:ActionNotSupported"/> + <xs:enumeration value="wsa:EndpointUnavailable"/> + </xs:restriction> + </xs:simpleType> + <xs:attribute name="Action" type="xs:anyURI"/> + <!-- Common declarations and definitions --> + <xs:complexType name="AttributedQName"> + <xs:simpleContent> + <xs:extension base="xs:QName"> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> + <xs:complexType name="AttributedURI"> + <xs:simpleContent> + <xs:extension base="xs:anyURI"> + <xs:anyAttribute namespace="##other" processContents="lax"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:schema> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-06-16 11:34:37
|
Revision: 258 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=258&view=rev Author: pkasprzak Date: 2009-06-16 11:34:03 +0000 (Tue, 16 Jun 2009) Log Message: ----------- * Added functionality to test dynamic partner links (seems to work :)) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-16 11:31:27 UTC (rev 257) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-16 11:34:03 UTC (rev 258) @@ -1,7 +1,10 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> - <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> + <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/> + <system systemId="http://schemas.xmlsoap.org/ws/2004/08/addressing" uri="retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-06-16 11:31:27 UTC (rev 257) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-06-16 11:34:03 UTC (rev 258) @@ -8,15 +8,19 @@ 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:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref" + xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/Login"> + <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/"/> <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://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> @@ -24,6 +28,7 @@ <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="IliasEPR" element="wsa:EndpointReference"/> </variables> <sequence> @@ -48,6 +53,34 @@ </copy> </assign> + <assign> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias EPR: ', sxxf:doMarshal($IliasEPR))</from> + </sxt:log> + </sxt:trace> + <copy> + <from partnerLink="ILIAS" endpointReference="partnerRole"/> + <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:ServiceName xmlns:ns="urn:ilUserAdministration" PortName="ILIASSoapWebservicePort">ns:ILIASSoapWebservice</wsa:ServiceName> + </wsa:EndpointReference> + </sref:service-ref> + </literal> + </from> + <to partnerLink="ILIAS"/> + </copy> + </assign> + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="IliasLoginIn" Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-16 11:31:27 UTC (rev 257) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-06-16 11:34:03 UTC (rev 258) @@ -11,11 +11,13 @@ 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"> + <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"/> <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/"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-06-16 19:50:15
|
Revision: 260 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=260&view=rev Author: pkasprzak Date: 2009-06-16 19:50:12 +0000 (Tue, 16 Jun 2009) Log Message: ----------- * Cleanup of local modifications (no relevant change) Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-16 18:15:09 UTC (rev 259) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/build.xml 2009-06-16 19:50:12 UTC (rev 260) @@ -1,66 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- You may freely edit this file. See commented blocks below for --> -<!-- some examples of how to customize the build. --> -<!-- (If you delete it and reopen the project it will be recreated.) --> <project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1"> - <description>Builds, tests, and runs the project .</description> <import file="nbproject/build-impl.xml"/> - <!-- - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: - - -pre-init called before initialization of project properties - -post-init called after initialization of project properties - -pre-compile called before javac compilation - -post-compile called after javac compilation - -pre-compile-single called before javac compilation of single file - -post-compile-single called after javac compilation of single file - -pre-dist called before jar building - -post-dist called after jar building - -post-clean called after cleaning build products - - Example of pluging an obfuscator after the compilation could look like - - <target name="post-compile"> - <obfuscate> - <fileset dir="${build.classes.dir}"/> - </obfuscate> - </target> - - For list of available properties check the imported - nbproject/build-impl.xml file. - - Other way how to customize the build is by overriding existing main targets. - The target of interest are: - - init-macrodef-javac defines macro for javac compilation - init-macrodef-debug defines macro for class debugging - do-dist jar archive building - run execution of project - javadoc-build javadoc generation - - Example of overriding the target for project execution could look like - - <target name="run" depends="<PROJNAME>-impl.jar"> - <exec dir="bin" executable="launcher.exe"> - <arg file="${dist.jar}"/> - </exec> - </target> - - Notice that overridden target depends on jar target and not only on - compile target as regular run target does. Again, for list of available - properties which you can use check the target you are overriding in - nbproject/build-impl.xml file. - --> - <target name="-init-esb-ide" if="netbeans.home"> + <target name="init-esb-ide" if="netbeans.home"> <property name="esb.netbeans.platform" value="${netbeans.home}"/> </target> - <target name="-init-esb-cmdline" unless="netbeans.home"> + <target name="init-esb-cli" unless="netbeans.home"> <property file="${basedir}/nbproject/private/private.properties"/> <property name="esb.netbeans.platform" value="${esb.netbeans.home}/platform9"/> <property name="netbeans.user" value="${esb.netbeans.user}"/> <property name="from.commandline" value="true"/> </target> - <target name="-pre-init" depends="-init-esb-ide,-init-esb-cmdline"/> + <target name="check-catd-context"> + <condition property="no.catd.context"> + <not> + <isset property="org.netbeans.modules.compapp.catd.context"/> + </not> + </condition> + </target> + <target name="init-catd" if="no.catd.context"> + <property name="org.netbeans.modules.compapp.catd.context" value=""/> + </target> + <target name="pre-init" depends="init-esb-ide,init-esb-cli,check-catd-context,init-catd"/> </project> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-16 18:15:09 UTC (rev 259) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-06-16 19:50:12 UTC (rev 260) @@ -4,7 +4,8 @@ <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> - <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/> <system systemId="http://schemas.xmlsoap.org/ws/2004/08/addressing" uri="retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> + <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> + <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-16 18:15:09 UTC (rev 259) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/build-impl.xml 2009-06-16 19:50:12 UTC (rev 260) @@ -1,52 +1,43 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - *** GENERATED FROM project.xml - DO NOT EDIT *** - *** EDIT ../build.xml INSTEAD *** - - For the purpose of easier reading the script - is divided into following sections: - - - initialization - - dist - - cleanup + *** GENERATED FROM project.xml - DO NOT EDIT *** + *** EDIT ../build.xml INSTEAD *** --> <project name="ILIASClientAdapter-impl" default="default" basedir=".."> - <target name="default" depends="dist_se" description="Build whole project."/> + <target name="default" depends="dist_se"/> <!-- - ====================== INITIALIZATION SECTION - ====================== --> - <target name="-pre-init"> + <target name="pre-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-private" depends="-pre-init"> + <target name="init-private" depends="pre-init"> <property file="nbproject/private/private.properties"/> </target> - <target name="-init-userdir" depends="-pre-init,-init-private"> + <target name="init-userdir" depends="pre-init,init-private"> <property name="user.properties.file" location="${netbeans.user}/build.properties"/> </target> - <target name="-init-user" depends="-pre-init,-init-private,-init-userdir"> + <target name="init-user" depends="pre-init,init-private,init-userdir"> <property file="${user.properties.file}"/> </target> - <target name="-init-project" depends="-pre-init,-init-private,-init-userdir,-init-user"> + <target name="init-project" depends="pre-init,init-private,init-userdir,init-user"> <property file="nbproject/project.properties"/> </target> - <target name="-do-init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project"> + <target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project"> <available file="${src.dir}/../retrieved" property="retrieved.exists"/> </target> - <target name="-post-init"> + <target name="post-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-init-check" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init"> + <target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init"> <fail unless="src.dir">Must set src.dir</fail> <fail unless="build.dir">Must set build.dir</fail> <fail unless="dist.dir">Must set dist.dir</fail> <fail unless="dist.jar">Must set dist.jar</fail> </target> - <target name="-init-taskdefs" if="from.commandline"> + <target name="init-taskdefs" if="from.commandline"> <path id="ant.task.classpath"> <pathelement location="${esb.netbeans.platform}/../ide10/modules/ext/resolver-1.2.jar"/> <pathelement location="${esb.netbeans.platform}/../ide10/modules/org-apache-xml-resolver.jar"/> @@ -95,25 +86,21 @@ <classpath refid="ant.task.classpath"/> </taskdef> </target> - <target name="init" depends="-pre-init,-init-private,-init-userdir,-init-user,-init-project,-do-init,-post-init,-init-check,-init-taskdefs"/> + <target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,init-taskdefs"/> <!-- - ===================== DIST BUILDING SECTION - ===================== --> - <target name="-pre-dist"> + <target name="pre-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-jar-dist" depends="init" unless="${no.dependencies}"> + <target name="deps-jar-dist" depends="init" unless="${no.dependencies}"> <ant target="dist_se" inheritall="false" dir="${project.Common}"/> <ant target="dist_se" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-dist" depends="init,-pre-dist"> + <target name="do-dist" depends="init,pre-dist"> <mkdir dir="${build.dir}"/> - <!--validation--> <validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" projectClassPath="${javac.classpath}" buildDependentProjectDir="${basedir}/${build.dir}/dependentProjectFiles" classpathRef="ant.task.classpath" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/> - <!-- copy all files from project source directory to build directory. --> <copy todir="${build.dir}" preservelastmodified="true"> <fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/> </copy> @@ -127,31 +114,29 @@ </fileset> </jar> </target> - <target name="-post-dist"> + <target name="post-dist"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="dist_se" depends="init,-pre-dist,-deps-jar-dist,-do-dist,-post-dist" description="Build distribution."/> + <target name="dist_se" depends="init,pre-dist,deps-jar-dist,do-dist,post-dist"/> <!-- - =============== CLEANUP SECTION - =============== --> - <target name="-pre-clean"> + <target name="pre-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="-deps-clean" depends="init" unless="${no.dependencies}"> + <target name="deps-clean" depends="init" unless="${no.dependencies}"> <ant target="clean" inheritall="false" dir="${project.Common}"/> <ant target="clean" inheritall="false" dir="${project.ObjectProcessor}"/> </target> - <target name="-do-clean" depends="init,-pre-clean"> + <target name="do-clean" depends="init,pre-clean"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> - <target name="-post-clean"> + <target name="post-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> - <target name="clean" depends="init,-pre-clean,-deps-clean,-do-clean,-post-clean" description="Clean build products."/> + <target name="clean" depends="init,pre-clean,deps-clean,do-clean,post-clean"/> </project> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-07-01 09:05:27
|
Revision: 285 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=285&view=rev Author: pkasprzak Date: 2009-07-01 09:04:49 +0000 (Wed, 01 Jul 2009) Log Message: ----------- * WS-Interface to ConfigurationManager * Used by Login.bpel to determine login-data Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-01 09:04:38 UTC (rev 284) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-01 09:04:49 UTC (rev 285) @@ -8,4 +8,5 @@ <system systemId="http://schemas.xmlsoap.org/ws/2004/08/addressing" uri="retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> + <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-01 09:04:38 UTC (rev 284) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-01 09:04:49 UTC (rev 285) @@ -11,26 +11,33 @@ xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/Login"> + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/Login" xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> - <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://cse.campussource.de/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <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://cse.campussource.de/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/ejb/ConfigurationManager" location="Common/ConfigurationManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <partnerLinks> - <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"/> + <partnerLink name="ConfigurationManager" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" partnerLinkType="tns:ConfigurationManagerLinkType" + partnerRole="ConfigurationManagerRole"/> + + <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://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"/> + <variable name="GetSettingAsStringOut" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" messageType="tns:getSettingAsStringResponse"/> + <variable name="GetSettingAsStringIn" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" messageType="tns:getSettingAsString"/> + <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> @@ -40,6 +47,81 @@ portType="tns:LoginPortType" variable="LoginIn"/> + <!-- Set client, will later be determined by message --> + <assign> + <copy> + <from>'Ilias'</from> + <to>$GetSettingAsStringIn.parameters/categoryName</to> + </copy> + <copy> + <from>'ilias_login_client'</from> + <to>$GetSettingAsStringIn.parameters/settingName</to> + </copy> + </assign> + + <invoke name="getClientSetting" partnerLink="ConfigurationManager" operation="getSettingAsString" + xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" + portType="tns:ConfigurationManager" + inputVariable="GetSettingAsStringIn" + outputVariable="GetSettingAsStringOut"/> + + <assign> + <copy> + <from>$GetSettingAsStringOut.parameters/return</from> + <to variable="IliasLoginIn" part="client"/> + </copy> + <copy> + <from>'ilias_login_username'</from> + <to>$GetSettingAsStringIn.parameters/settingName</to> + </copy> + </assign> + + <invoke name="getUserNameSetting" partnerLink="ConfigurationManager" operation="getSettingAsString" + xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" + portType="tns:ConfigurationManager" + inputVariable="GetSettingAsStringIn" + outputVariable="GetSettingAsStringOut"/> + + + <assign> + <copy> + <from>$GetSettingAsStringOut.parameters/return</from> + <to variable="IliasLoginIn" part="username"/> + </copy> + <copy> + <from>'ilias_login_password'</from> + <to>$GetSettingAsStringIn.parameters/settingName</to> + </copy> + </assign> + + + <invoke name="getPasswordSetting" partnerLink="ConfigurationManager" operation="getSettingAsString" + xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" + portType="tns:ConfigurationManager" + inputVariable="GetSettingAsStringIn" + outputVariable="GetSettingAsStringOut"/> + + + <assign> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias client: ', $IliasLoginIn.client)</from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias username: ', $IliasLoginIn.username)</from> + </sxt:log> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias password: ', $IliasLoginIn.password)</from> + </sxt:log> + </sxt:trace> + <copy> + <from>$GetSettingAsStringOut.parameters/return</from> + <to variable="IliasLoginIn" part="password"/> + </copy> + </assign> + + +<!-- <assign name="prepareLogin"> <copy> <from>'test'</from> @@ -54,7 +136,7 @@ <to variable="IliasLoginIn" part="password"/> </copy> </assign> - +--> <assign> <sxt:trace> <sxt:log level="info" location="onComplete"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-07-01 14:53:12
|
Revision: 290 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=290&view=rev Author: pkasprzak Date: 2009-07-01 13:56:03 +0000 (Wed, 01 Jul 2009) Log Message: ----------- * Catalog changes for serviceref support * Added serviceref.xsd Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-01 12:21:32 UTC (rev 289) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-01 13:56:03 UTC (rev 290) @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> - <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> - <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> - <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> - <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/> - <system systemId="http://schemas.xmlsoap.org/ws/2004/08/addressing" uri="retrieved/src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> + <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> + <system systemId="Common/WS-BPEL-ServiceRef.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> + <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> + <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/> + <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-07-01 12:21:32 UTC (rev 289) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/nbproject/genfiles.properties 2009-07-01 13:56:03 UTC (rev 290) @@ -1,8 +1,8 @@ build.xml.data.CRC32=da61cde5 -build.xml.script.CRC32=60b50638 -build.xml.stylesheet.CRC32=f35fd70d +build.xml.script.CRC32=22f94a4b +build.xml.stylesheet.CRC32=b168c0ed # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=da61cde5 -nbproject/build-impl.xml.script.CRC32=fdb3b604 -nbproject/build-impl.xml.stylesheet.CRC32=5068533b +nbproject/build-impl.xml.script.CRC32=544d13e7 +nbproject/build-impl.xml.stylesheet.CRC32=2e896532 Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-01 12:21:32 UTC (rev 289) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-01 13:56:03 UTC (rev 290) @@ -14,6 +14,7 @@ xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/Login" xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" location="Common/WS-Addressing.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" location="Common/WS-BPEL-ServiceRef.xsd" importType="http://www.w3.org/2001/XMLSchema"/> <import namespace="http://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/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -37,6 +38,7 @@ <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="IliasSR" element="sref:service-ref"/> <variable name="IliasEPR" element="wsa:EndpointReference"/> </variables> @@ -165,6 +167,34 @@ </copy> </assign> --> + <!-- Build sref for ILIAS PL --> +<!-- + <assign> + <copy> + <from> + <literal> + <sref:service-ref> + <wsa:EndpointReference> + <wsa:Address/> + <wsa:ServiceName xmlns:ns="urn:ilUserAdministration" PortName="ILIASSoapWebservicePort">ns:ILIASSoapWebservice</wsa:ServiceName> + </wsa:EndpointReference> + </sref:service-ref> + </literal> + </from> + <to>$IliasSR</to> + </copy> + <copy> + <from>'http://localhost/ilias3/webservice/soap/server.php?debug=1'</from> + <to>$IliasSR/wsa:EndpointReference</to> + </copy> + <copy> + <from>$IliasSR</from> + <to partnerLink="ILIAS"/> + </copy> + </assign> +--> + + <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" inputVariable="IliasLoginIn" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-07-02 11:19:48
|
Revision: 297 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=297&view=rev Author: pkasprzak Date: 2009-07-02 11:19:41 +0000 (Thu, 02 Jul 2009) Log Message: ----------- * Dynamic Partnerlink stuff: - Get system-endpoint from config based on target-system in message - Use XSLT / Voodoo to generate valid EndpointReference - Override static Partnerlink with new EPR - Only implemented for Login.bpel and addCourse-Testcase for now Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 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 Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.wsdl Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-02 11:19:30 UTC (rev 296) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-02 11:19:41 UTC (rev 297) @@ -9,4 +9,5 @@ <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> + <system systemId="Common/serviceref.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-02 11:19:30 UTC (rev 296) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.bpel 2009-07-02 11:19:41 UTC (rev 297) @@ -40,6 +40,7 @@ <variable name="IliasLoginIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:loginRequest"/> <variable name="IliasSR" element="sref:service-ref"/> <variable name="IliasEPR" element="wsa:EndpointReference"/> + <variable name="IliasEPRTest" element="wsa:EndpointReference"/> </variables> <sequence> @@ -122,23 +123,7 @@ </copy> </assign> - <!-- - <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>'cs3-1p'</from> - <to variable="IliasLoginIn" part="password"/> - </copy> - </assign> ---> <assign> <sxt:trace> <sxt:log level="info" location="onComplete"> @@ -150,6 +135,7 @@ <to>$IliasEPR</to> </copy> </assign> +--> <!-- <assign> <copy> @@ -168,32 +154,45 @@ </assign> --> <!-- Build sref for ILIAS PL --> -<!-- + <assign> +<!-- + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias EPR: ', sxxf:doMarshal($LoginIn.EPR))</from> + </sxt:log> + </sxt:trace> + + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Ilias EPR-Test: ', sxxf:doMarshal($IliasEPRTest))</from> + </sxt:log> + </sxt:trace> + <copy> <from> <literal> - <sref:service-ref> <wsa:EndpointReference> <wsa:Address/> <wsa:ServiceName xmlns:ns="urn:ilUserAdministration" PortName="ILIASSoapWebservicePort">ns:ILIASSoapWebservice</wsa:ServiceName> </wsa:EndpointReference> - </sref:service-ref> </literal> </from> - <to>$IliasSR</to> + <to>$IliasEPRTest</to> </copy> <copy> <from>'http://localhost/ilias3/webservice/soap/server.php?debug=1'</from> - <to>$IliasSR/wsa:EndpointReference</to> + <to>$IliasEPRTest/wsa:Address/text()</to> </copy> +--> + + <copy> - <from>$IliasSR</from> + <from>$LoginIn.EPR</from> <to partnerLink="ILIAS"/> </copy> + </assign> ---> - <invoke name="login" partnerLink="ILIAS" operation="login" xmlns:tns="urn:ilUserAdministration" portType="tns:ILIASSoapWebservicePortType" Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-07-02 11:19:30 UTC (rev 296) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/Login.wsdl 2009-07-02 11:19:41 UTC (rev 297) @@ -4,10 +4,15 @@ 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/> + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/serviceref"> + <types> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login"> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> <message name="loginRequest"> - <part name="dummy" type="xsd:string"/> + <part name="system" type="xsd:string"/> + <part name="EPR" element="ns0:service-ref"/> </message> <message name="loginResponse"> <part name="SID" type="xsd:string"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-02 11:19:30 UTC (rev 296) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-07-02 11:19:41 UTC (rev 297) @@ -10,6 +10,7 @@ xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment" xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" + xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" @@ -19,8 +20,8 @@ xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" xmlns:ns2="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"> - <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" location="Common/WS-Addressing.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" location="Common/WS-BPEL-ServiceRef.xsd" importType="http://www.w3.org/2001/XMLSchema"/> <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> <import namespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" location="ILIASClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> @@ -36,7 +37,11 @@ <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" location="ObjectProcessor/ReplyProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" location="ResolveEPR.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <partnerLinks> + <partnerLink name="ResolveEPR" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" partnerLinkType="tns:ResolveEPR" + partnerRole="ResolveEPRPortTypeRole"/> <partnerLink name="Login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" partnerRole="LoginPortTypeRole"/> <partnerLink name="AddCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" @@ -55,12 +60,14 @@ partnerRole="ReplyProcessorPortTypeRole"/> <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" partnerRole="ILIASSoapWebserviceRole"/> - <partnerLink name="ILIASAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" partnerLinkType="tns:ILIASClientAdapter" + <partnerLink name="ILIASAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" partnerLinkType="tns:ILIASClientAdapter" myRole="ILIASClientAdapterPortTypeRole"/> </partnerLinks> <variables> <!-- Messages --> + <variable name="ResolveEPROut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRResponse"/> + <variable name="ResolveEPRIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRRequest"/> <variable name="ProcessReplyIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" messageType="tns:processReplyRequest"/> <variable name="DeleteCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> <variable name="DeleteCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> @@ -85,6 +92,9 @@ <!-- Ilias session id --> <variable name="SID" type="xsd:string"/> + <!-- Ilias EndpointReference --> + <variable name="IliasEPR" element="sref:service-ref"/> + <!-- Reply vars --> <variable name="STATUS_SUCCESS" type="xsd:string" /> <variable name="STATUS_FAILURE" type="xsd:string"/> @@ -97,9 +107,8 @@ <variable name="ReplyXML" type="xsd:string"/> <!--Fault Variable, if Operation from inkoming msg is not supportet --> + <variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/> - <variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/> - </variables> <sequence> @@ -173,14 +182,41 @@ portType="tns:ILIASClientAdapterPortType" variable="ProcessCourseOperationIn"> - <scope name="CourseScope"> + <scope name="CourseScope"> <sequence> + + <assign name="setSystem"> + <copy> + <from>$ProcessCourseOperationIn.courseMessage/dt:target</from> + <to>$ResolveEPRIn.system</to> + </copy> + </assign> + + <!-- Determine Ilias Endpoint --> + <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + portType="tns:ResolveEPRPortType" + inputVariable="ResolveEPRIn" + outputVariable="ResolveEPROut"/> + + <assign name="saveIliasEPR"> + <copy> + <from>$ResolveEPROut.EPR</from> + <to>$IliasEPR</to> + </copy> + </assign> + <assign name="prepareLoginForCourses"> <copy> - <from>'dummy'</from> - <to>$LoginIn.dummy</to> + <from>$ProcessCourseOperationIn.courseMessage/dt:target</from> + <to>$LoginIn.system</to> </copy> + <copy> + <from>$IliasEPR</from> + <to>$LoginIn.EPR</to> + </copy> </assign> + <invoke name="loginForCourses" partnerLink="Login" operation="login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" portType="tns:LoginPortType" @@ -199,7 +235,7 @@ <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> @@ -311,15 +347,15 @@ portType="tns:DeleteCoursePortType" inputVariable="DeleteCourseIn" outputVariable="DeleteCourseOut"/> - + <assign name="deleteCourseSuccess"> <copy> <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> </assign> - - + + </sequence> </elseif> <else> @@ -334,7 +370,7 @@ </sxt:log> </sxt:trace> <copy> - <from>concat('This Operation is unknown: ',$ProcessCourseOperationIn.courseMessage/dt:event)</from> + <from>concat('This Operation is unknown: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from> <to variable="SystemFaultOperationNotFounded" part="cause"/> </copy> <copy> @@ -352,19 +388,45 @@ </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"> <sequence> - <assign name="prepareLoginForCategories"> + <assign name="setSystem"> <copy> - <from>'dummy'</from> - <to>$LoginIn.dummy</to> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from> + <to>$ResolveEPRIn.system</to> </copy> </assign> + + <!-- Determine Ilias Endpoint --> + <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + portType="tns:ResolveEPRPortType" + inputVariable="ResolveEPRIn" + outputVariable="ResolveEPROut"/> + + <assign name="saveIliasEPR"> + <copy> + <from>$ResolveEPROut.EPR</from> + <to>$IliasEPR</to> + </copy> + </assign> + + <assign name="prepareLoginForCourses"> + <copy> + <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from> + <to>$LoginIn.system</to> + </copy> + <copy> + <from>$IliasEPR</from> + <to>$LoginIn.EPR</to> + </copy> + </assign> + <invoke name="loginForCategories" partnerLink="Login" operation="login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" portType="tns:LoginPortType" @@ -394,7 +456,7 @@ <to>$STATUS_FAILURE</to> </copy> </assign> - + <!-- Branch on different events --> <if> <sxt:trace> @@ -495,14 +557,14 @@ portType="tns:DeleteCategoryPortType" inputVariable="DeleteCategoryIn" outputVariable="DeleteCategoryOut"/> - + <assign name="deleteCategorySuccess"> <copy> <from>$STATUS_SUCCESS</from> <to>$ReplyStatus</to> </copy> </assign> - + </sequence> </elseif> <else> @@ -516,7 +578,7 @@ </sxt:log> </sxt:trace> <copy> - <from>concat('This Operation is unknown: ',$ProcessCategoryOperationIn.categoryMessage/dt:event)</from> + <from>concat('This Operation is unknown: ', $ProcessCategoryOperationIn.categoryMessage/dt:event)</from> <to variable="SystemFaultOperationNotFounded" part="cause"/> </copy> <copy> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.bpel 2009-07-02 11:19:41 UTC (rev 297) @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process name="ResolveEPR" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/ResolveEPR" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:ex="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:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref" + xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/ResolveEPR"> + + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" location="ResolveEPR.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/ejb/ConfigurationManager" location="Common/ConfigurationManager.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" location="Common/WS-BPEL-ServiceRef.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" location="Common/WS-Addressing.xsd" importType="http://www.w3.org/2001/XMLSchema"/> + + <partnerLinks> + <partnerLink name="ConfigurationManager" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" partnerLinkType="tns:ConfigurationManagerLinkType" + partnerRole="ConfigurationManagerRole"/> + <partnerLink name="IliasAdapter" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" partnerLinkType="tns:ResolveEPR" + myRole="ResolveEPRPortTypeRole"/> + </partnerLinks> + + <variables> + <variable name="ResolveEPROut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRResponse"/> + <variable name="GetSettingAsStringOut" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" messageType="tns:getSettingAsStringResponse"/> + <variable name="GetSettingAsStringIn" xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" messageType="tns:getSettingAsString"/> + <variable name="ResolveEPRIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRRequest"/> + <variable name="IliasEPR" element="wsa:EndpointReference"/> + </variables> + + <sequence> + <receive name="start" createInstance="yes" partnerLink="IliasAdapter" operation="resolveEPR" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + portType="tns:ResolveEPRPortType" + variable="ResolveEPRIn"/> + + <assign name="setSystem"> + <!-- Using system name as setting category --> + <copy> + <from>$ResolveEPRIn.system</from> + <to>$GetSettingAsStringIn.parameters/categoryName</to> + </copy> + <copy> + <from>'ilias_ws_url'</from> + <to>$GetSettingAsStringIn.parameters/settingName</to> + </copy> + </assign> + + <invoke name="getEndpointSetting" partnerLink="ConfigurationManager" operation="getSettingAsString" + xmlns:tns="http://cse.campussource.de/ejb/ConfigurationManager" + portType="tns:ConfigurationManager" + inputVariable="GetSettingAsStringIn" + outputVariable="GetSettingAsStringOut"/> + + <assign name="initEPR"> + <copy> + <from> + <literal> + <wsa:EndpointReference> + <wsa:Address/> + <wsa:ServiceName xmlns:ns="urn:ilUserAdministration" PortName="ILIASSoapWebservicePort">ns:ILIASSoapWebservice</wsa:ServiceName> + </wsa:EndpointReference> + </literal> + </from> + <to>$IliasEPR</to> + </copy> + </assign> + + <assign name="setIliasEndpoint"> + <copy> + <from>$GetSettingAsStringOut.parameters/return</from> + <to>$IliasEPR/wsa:Address/text()</to> + </copy> + </assign> + + <assign name="wrapEPRWithServiceRef"> + <sxt:trace> + <sxt:log level="info" location="onComplete"> + <from>concat('*** Resolved Ilias EPR: ', sxxf:doMarshal($ResolveEPROut.EPR))</from> + </sxt:log> + </sxt:trace> + <copy> + <from>ex:doXslTransform('urn:stylesheets:WrapEPRWithServiceRef.xsl', $IliasEPR)</from> + <to>$ResolveEPROut.EPR</to> + </copy> + </assign> + + <reply name="replyWithEPR" partnerLink="IliasAdapter" operation="resolveEPR" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + portType="tns:ResolveEPRPortType" + variable="ResolveEPROut"/> + </sequence> +</process> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.wsdl (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ResolveEPR.wsdl 2009-07-02 11:19:41 UTC (rev 297) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<definitions name="ResolveEPR" + targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" + 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/ResolveEPR" + xmlns:ns="http://docs.oasis-open.org/wsbpel/2.0/serviceref" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"> + <types> + <xsd:schema targetNamespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR"> + <xsd:import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" schemaLocation="Common/serviceref.xsd"/> + </xsd:schema> + </types> + <message name="resolveEPRRequest"> + <part name="system" type="xsd:string"/> + </message> + <message name="resolveEPRResponse"> + <part name="EPR" element="ns:service-ref"/> + </message> + <portType name="ResolveEPRPortType"> + <operation name="resolveEPR"> + <input name="input1" message="tns:resolveEPRRequest"/> + <output name="output1" message="tns:resolveEPRResponse"/> + </operation> + </portType> + <plnk:partnerLinkType name="ResolveEPR"> + <!-- 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="ResolveEPRPortTypeRole" portType="tns:ResolveEPRPortType"/> + </plnk:partnerLinkType> +</definitions> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-07-07 14:48:32
|
Revision: 321 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=321&view=rev Author: pkasprzak Date: 2009-07-07 14:22:44 +0000 (Tue, 07 Jul 2009) Log Message: ----------- * Cleanups + stuff Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-07 14:22:25 UTC (rev 320) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-07-07 14:22:44 UTC (rev 321) @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> - <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="Common/WS-BPEL-ServiceRef.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> @@ -9,5 +8,6 @@ <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> + <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> <system systemId="Common/serviceref.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> </catalog> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-07 14:22:25 UTC (rev 320) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/DeleteCourse.bpel 2009-07-07 14:22:44 UTC (rev 321) @@ -31,7 +31,7 @@ <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"/> - <!--FaultHandling Variables --> + <!-- FaultHandling Variables --> <variable name="SystemFault" messageType="fltns:systemFaultMessage"/> <variable name="UnknownFault" messageType="fltns:unknownFaultMessage"/> @@ -40,6 +40,7 @@ </variables> <sequence> + <scope name="deleteCourseScope"> <faultHandlers> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pka...@us...> - 2009-08-02 17:45:54
|
Revision: 418 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=418&view=rev Author: pkasprzak Date: 2009-08-02 17:45:41 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * Restructured Adapter Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml Added Paths: ----------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessAccount.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessAccount.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCategory.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCategory.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCourse.bpel trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ProcessCourse.wsdl Removed Paths: ------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 17:42:20 UTC (rev 417) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 17:45:41 UTC (rev 418) @@ -4,10 +4,9 @@ <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="Common/WS-BPEL-ServiceRef.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> - <system systemId="http://schemas.xmlsoap.org/soap/encoding/" uri="retrieved/src/schemas.xmlsoap.org/soap/encoding.xsd"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> <system systemId="Common/serviceref.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> <system systemId="Common/CDDM.xsd" uri="nb-uri:Common#src/CDDM.xsd"/> + <system systemId="Common/OutboundAdapter.wsdl" uri="nb-uri:Common#src/OutboundAdapter.wsdl"/> </catalog> Deleted: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-08-02 17:42:20 UTC (rev 417) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/ILIASClientAdapter.wsdl 2009-08-02 17:45:41 UTC (rev 418) @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<definitions name="ILIASClientAdapter" targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" - xmlns="http://schemas.xmlsoap.org/wsdl/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" - xmlns:ns="http://cse.campussource.de/schema/DataTypes" - xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> - <types> - <xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"> - <xsd:import namespace="http://cse.campussource.de/schema/DataTypes" schemaLocation="CDDM.xsd"/> - </xsd:schema> - </types> - <message name="ProcessCourseOperationRequest"> - <part name="courseMessage" type="ns:courseMessageType"/> - </message> - <message name="ProcessCategoryOperationRequest"> - <part name="categoryMessage" type="ns:categoryMessageType"/> - </message> - <message name="ProcessAccountOperationRequest"> - <part name="accountMessage" type="ns:accountMessageType"/> - </message> - <portType name="ILIASClientAdapterPortType"> - <operation name="processCourse"> - <input name="input1" message="tns:ProcessCourseOperationRequest"/> - </operation> - <operation name="processCategory"> - <input name="input2" message="tns:ProcessCategoryOperationRequest"/> - </operation> - <operation name="processAccount"> - <input name="input3" message="tns:ProcessAccountOperationRequest"/> - </operation> - </portType> - <!-- Provide SOAP-Binding so that process can be tested externally --> - <binding name="ILIASClientAdapterBinding" type="tns:ILIASClientAdapterPortType"> - <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> - <operation name="processCourse"> - <soap:operation/> - <input name="input1"> - <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> - </input> - </operation> - <operation name="processCategory"> - <soap:operation/> - <input name="input2"> - <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> - </input> - </operation> - <operation name="processAccount"> - <soap:operation/> - <input name="input3"> - <soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"/> - </input> - </operation> - </binding> - <service name="ILIASClientAdapterService"> - <port name="ILIASClientAdapterPort" binding="tns:ILIASClientAdapterBinding"> - <soap:address location="http://localhost:${HttpDefaultPort}/ILIASClientAdapterService/ILIASClientAdapterPort"/> - </port> - </service> - <plnk:partnerLinkType name="ILIASClientAdapter"> - <!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes. -In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type. -A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--> - <plnk:role name="ILIASClientAdapterPortTypeRole" portType="tns:ILIASClientAdapterPortType"/> - </plnk:partnerLinkType> -</definitions> Added: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel (rev 0) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundAdapter.bpel 2009-08-02 17:45:41 UTC (rev 418) @@ -0,0 +1,165 @@ +<?xml version="1.0" encoding="UTF-8"?> +<process name="OutboundAdapter" + targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundAdapter" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace" + xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" + xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment" + xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" + xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundAdapter" + xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"> + + <import namespace="http://cse.campussource.de/wsdl/Common/OutboundAdapter" location="Common/OutboundAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" location="ProcessCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" location="ProcessCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" location="ProcessAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> + + <partnerLinks> + + <partnerLink name="ProcessCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" partnerLinkType="tns:ProcessCourse" + partnerRole="ProcessCoursePortTypeRole"/> + + <partnerLink name="ProcessCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" partnerLinkType="tns:ProcessCategory" + partnerRole="ProcessCategoryPortTypeRole"/> + + <partnerLink name="ProcessAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" partnerLinkType="tns:ProcessAccount" + partnerRole="ProcessAccountPortTypeRole"/> + + <partnerLink name="Core" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" partnerLinkType="tns:OutboundAdapter" + myRole="OutboundAdapterPortTypeRole"/> + </partnerLinks> + + <variables> + <variable name="ProcessAccountDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" messageType="tns:ProcessAccountOperationResponse"/> + <variable name="ProcessAccountDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" messageType="tns:ProcessAccountOperationRequest"/> + + <variable name="ProcessCategoryDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" messageType="tns:ProcessCategoryOperationResponse"/> + <variable name="ProcessCategoryDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" messageType="tns:ProcessCategoryOperationRequest"/> + + <variable name="ProcessCourseDelegateOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" messageType="tns:ProcessCourseOperationResponse"/> + <variable name="ProcessCourseDelegateIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" messageType="tns:ProcessCourseOperationRequest"/> + + <variable name="ProcessAccountOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessAccountOperationResponse"/> + <variable name="ProcessCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCategoryOperationResponse"/> + + <variable name="ProcessCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationResponse"/> + <variable name="ProcessAccountIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessAccountOperationRequest"/> + + <variable name="ProcessCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCategoryOperationRequest"/> + <variable name="ProcessCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" messageType="tns:ProcessCourseOperationRequest"/> + </variables> + + <sequence> + <pick name="Pick1" createInstance="yes"> + + <!-- Delegate course processing --> + <onMessage partnerLink="Core" operation="processCourse" + xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" + portType="tns:OutboundAdapterPortType" + variable="ProcessCourseIn"> + <sequence name="Sequence1"> + + <assign name="prepareProcessCourse"> + <copy> + <from variable="ProcessCourseIn" part="courseMessage"/> + <to variable="ProcessCourseDelegateIn" part="courseMessage"/> + </copy> + </assign> + + <invoke name="processCourse" partnerLink="ProcessCourse" + operation="processCourse" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCourse" + portType="tns:ProcessCoursePortType" + inputVariable="ProcessCourseDelegateIn" + outputVariable="ProcessCourseDelegateOut"/> + + <assign name="prepareReplyProcessCourse"> + <copy> + <from variable="ProcessCourseDelegateOut" part="eventReply"/> + <to variable="ProcessCourseOut" part="eventReply"/> + </copy> + </assign> + + <reply name="replyProcessCourse" partnerLink="Core" + operation="processCourse" + portType="tns:OutboundAdapterPortType" + variable="ProcessCourseOut"/> + </sequence> + + </onMessage> + + <!-- Delegate category processing --> + <onMessage partnerLink="Core" operation="processCategory" + xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" + portType="tns:OutboundAdapterPortType" + variable="ProcessCategoryIn"> + <sequence name="Sequence2"> + + <assign name="prepareProcessCategory"> + <copy> + <from variable="ProcessCategoryIn" part="categoryMessage"/> + <to variable="ProcessCategoryDelegateIn" part="categoryMessage"/> + </copy> + </assign> + + <invoke name="processCategory" partnerLink="ProcessCategory" + operation="processCategory" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessCategory" + portType="tns:ProcessCategoryPortType" + inputVariable="ProcessCategoryDelegateIn" + outputVariable="ProcessCategoryDelegateOut"/> + + <assign name="prepareReplyProcessCategory"> + <copy> + <from variable="ProcessCategoryDelegateOut" part="eventReply"/> + <to variable="ProcessCategoryOut" part="eventReply"/> + </copy> + </assign> + + <reply name="replyProcessCategory" partnerLink="Core" + operation="processCategory" + portType="tns:OutboundAdapterPortType" + variable="ProcessCategoryOut"/> + </sequence> + + </onMessage> + + <!-- Delegate account processing --> + <onMessage partnerLink="Core" operation="processAccount" + xmlns:tns="http://cse.campussource.de/wsdl/Common/OutboundAdapter" + portType="tns:OutboundAdapterPortType" + variable="ProcessAccountIn"> + <sequence name="Sequence3"> + + <assign name="prepareProcessAccount"> + <copy> + <from variable="ProcessAccountIn" part="accountMessage"/> + <to variable="ProcessAccountDelegateIn" part="accountMessage"/> + </copy> + </assign> + + <invoke name="processAccount" partnerLink="ProcessAccount" + operation="processAccount" + xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ProcessAccount" + portType="tns:ProcessAccountPortType" + inputVariable="ProcessAccountDelegateIn" + outputVariable="ProcessAccountDelegateOut"/> + + <assign name="prepareReplyProcessAccount"> + <copy> + <from variable="ProcessAccountDelegateOut" part="eventReply"/> + <to variable="ProcessAccountOut" part="eventReply"/> + </copy> + </assign> + + <reply name="replyProcessAccount" partnerLink="Core" + operation="processAccount" + portType="tns:OutboundAdapterPortType" + variable="ProcessAccountOut"/> + </sequence> + + </onMessage> + </pick> + </sequence> +</process> Deleted: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-08-02 17:42:20 UTC (rev 417) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/OutboundClientAdapter.bpel 2009-08-02 17:45:41 UTC (rev 418) @@ -1,949 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<process name="OutboundClientAdapter" - targetNamespace="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter" - xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" - xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" - xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace" - xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor" - xmlns:sxed2="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2" - xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment" - xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling" - xmlns:sxxf="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" - xmlns:sref="http://docs.oasis-open.org/wsbpel/2.0/serviceref" - xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" - xmlns:il_crs="http://cse.campussource.de/schema/ilias/course" - xmlns:il_objs="http://cse.campussource.de/schema/ilias/objects" - xmlns:dt="http://cse.campussource.de/schema/DataTypes" - xmlns:tns="http://cse.campussource.de/bpel/ILIASClientAdapter/OutboundClientAdapter" - xmlns:ns1="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" - xmlns:fltns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" - xmlns:ns2="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse"> - - <import namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing" location="Common/WS-Addressing.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://docs.oasis-open.org/wsbpel/2.0/serviceref" location="Common/WS-BPEL-ServiceRef.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/schema/DataTypes" location="Common/CDDM.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" location="ilias-3.10.5-Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" location="ILIASClientAdapter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="urn:ilUserAdministration" location="ilias-3.10.5-fixed.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/schema/ilias/course" location="ilias-course.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/schema/ilias/objects" location="ilias-objects.xsd" importType="http://www.w3.org/2001/XMLSchema"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" location="Login.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" location="AddCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" location="UpdateCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" location="DeleteCourse.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" location="AddCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" location="UpdateCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" location="DeleteCategory.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" location="ObjectProcessor/ReplyProcessor.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/faultHandlingMsg" location="faultHandlingMsg.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" location="ResolveEPR.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" location="AddAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" location="DeleteAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <import namespace="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" location="UpdateAccount.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/> - <partnerLinks> - <partnerLink name="ResolveEPR" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" partnerLinkType="tns:ResolveEPR" - partnerRole="ResolveEPRPortTypeRole"/> - <partnerLink name="Login" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" partnerLinkType="tns:Login" - partnerRole="LoginPortTypeRole"/> - <partnerLink name="AddCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" partnerLinkType="tns:AddCourse" - partnerRole="AddCoursePortTypeRole"/> - <partnerLink name="UpdateCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" partnerLinkType="tns:UpdateCourse" - partnerRole="UpdateCoursePortTypeRole"/> - <partnerLink name="DeleteCourse" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" partnerLinkType="tns:DeleteCourse" - partnerRole="DeleteCoursePortTypeRole"/> - <partnerLink name="AddCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" partnerLinkType="tns:AddCategory" - partnerRole="AddCategoryPortTypeRole"/> - <partnerLink name="UpdateCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" partnerLinkType="tns:UpdateCategory" - partnerRole="UpdateCategoryPortTypeRole"/> - <partnerLink name="DeleteCategory" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" partnerLinkType="tns:DeleteCategory" - partnerRole="DeleteCategoryPortTypeRole"/> - <partnerLink name="AddAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddAccount" partnerLinkType="tns:AddAccount" partnerRole="AddAccountPortTypeRole"/> - <partnerLink name="UpdateAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateAccount" partnerLinkType="tns:UpdateAccount" partnerRole="UpdateAccountPortTypeRole"/> - <partnerLink name="DeleteAccount" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteAccount" partnerLinkType="tns:DeleteAccount" partnerRole="DeleteAccountPortTypeRole"/> - <partnerLink name="ReplyProcessor" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" partnerLinkType="tns:ReplyProcessor" - partnerRole="ReplyProcessorPortTypeRole"/> - <partnerLink name="ILIAS" xmlns:tns="http://enterprise.netbeans.org/bpel/ilias-3.10.5-Wrapper" partnerLinkType="tns:ILIASSoapWebserviceLinkType" - partnerRole="ILIASSoapWebserviceRole"/> - <partnerLink name="ILIASAdapter" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" partnerLinkType="tns:ILIASClientAdapter" - myRole="ILIASClientAdapterPortTypeRole"/> - </partnerLinks> - - <variables> - <!-- Messages --> - <variable name="ProcessAccountIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessAccountOperationRequest"/> - <variable name="ResolveEPROut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRResponse"/> - <variable name="ResolveEPRIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" messageType="tns:resolveEPRRequest"/> - <variable name="ProcessReplyIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ObjectProcessor/ReplyProcessor" messageType="tns:processReplyRequest"/> - <variable name="DeleteCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryResponse"/> - <variable name="DeleteCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCategory" messageType="tns:deleteCategoryRequest"/> - <variable name="UpdateCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryResponse"/> - <variable name="UpdateCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCategory" messageType="tns:updateCategoryRequest"/> - <variable name="AddCategoryOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryResponse"/> - <variable name="AddCategoryIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCategory" messageType="tns:AddCategoryRequest"/> - <variable name="DeleteCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseResponse"/> - <variable name="DeleteCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" messageType="tns:DeleteCourseRequest"/> - <variable name="UpdateCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseResponse"/> - <variable name="UpdateCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" messageType="tns:updateCourseRequest"/> - <variable name="AddCourseOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseResponse"/> - <variable name="AddCourseIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" messageType="tns:AddCourseRequest"/> - <variable name="LoginOut" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" messageType="tns:loginResponse"/> - <variable name="LoginIn" xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" messageType="tns:loginRequest"/> - <variable name="ProcessCategoryOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCategoryOperationRequest"/> - <variable name="ProcessCourseOperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" messageType="tns:ProcessCourseOperationRequest"/> - - <variable name="LogoutOut" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutResponse"/> - <variable name="LogoutIn" xmlns:tns="urn:ilUserAdministration" messageType="tns:logoutRequest"/> - - <!-- Ilias session id --> - <variable name="SID" type="xsd:string"/> - - <!-- Ilias EndpointReference --> - <variable name="IliasEPR" element="sref:service-ref"/> - - <!-- Reply vars --> - <variable name="STATUS_SUCCESS" type="xsd:string" /> - <variable name="STATUS_FAILURE" type="xsd:string"/> - - <variable name="ObjectBusId" type="xsd:int"/> - <variable name="ObjectClientId" type="xsd:string"/> - <variable name="ReplyStatus" type="dt:statusType"/> - - <!-- For testing --> - <variable name="ReplyXML" type="xsd:string"/> - - <!--Fault Variable, if Operation from inkoming msg is not supportet --> - <variable name="SystemFaultOperationNotFounded" messageType="fltns:systemFaultMessage"/> - - </variables> - - <sequence> - <scope name="MainScope"> - <faultHandlers> - - <!--Handling SystemFault --> - <catch faultVariable="Fault" faultMessageType="fltns:systemFaultMessage"> - <assign> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Handling SystemFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </catch> - - <!--Handling UnknownFault --> - <catch faultVariable="Fault" faultMessageType="fltns:unknownFaultMessage"> - <assign> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Handling UnknownFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </catch> - - <!--Handling IliasFault --> - <catch faultVariable="Fault" faultMessageType="fltns:iliasFaultMessage"> - <assign> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Handling IliasFault from: ', $Fault.process, ' ,Fault cause:', $Fault.cause, ' ,Fault context: ', $Fault.context)</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </catch> - - <!--Handling unspecific Faults --> - <catchAll> - <assign> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Handling generic Fault', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$STATUS_FAILURE</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </catchAll> - - </faultHandlers> - - <pick name="processObjects" createInstance="yes" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter"> - - <!-- Process courses --> - <onMessage partnerLink="ILIASAdapter" operation="processCourse" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" - portType="tns:ILIASClientAdapterPortType" - variable="ProcessCourseOperationIn"> - - <scope name="CourseScope"> - <sequence> - - <assign name="setSystem"> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:target</from> - <to>$ResolveEPRIn.system</to> - </copy> - </assign> - - <!-- Determine Ilias Endpoint --> - <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" - portType="tns:ResolveEPRPortType" - inputVariable="ResolveEPRIn" - outputVariable="ResolveEPROut"/> - - <assign name="saveIliasEPR"> - <copy> - <from>$ResolveEPROut.EPR</from> - <to>$IliasEPR</to> - </copy> - </assign> - - <assign name="prepareLoginForCourses"> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:target</from> - <to>$LoginIn.system</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$LoginIn.EPR</to> - </copy> - </assign> - - <invoke name="loginForCourses" partnerLink="Login" operation="login" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" - portType="tns:LoginPortType" - inputVariable="LoginIn" - outputVariable="LoginOut"/> - <assign name="initCourseProcessing"> - <copy> - <from variable="LoginOut" part="SID"/> - <to variable="SID"/> - </copy> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:busId</from> - <to>$ObjectBusId</to> - </copy> - <copy ignoreMissingFromData="yes"> - <from>$ProcessCourseOperationIn.courseMessage/dt:course/dt:attribute[dt:name = 'clientId']/dt:value</from> - <to>$ObjectClientId</to> - </copy> - - <!-- Init constants (better alternatives?) --> - <copy> - <from>'SUCCESS'</from> - <to>$STATUS_SUCCESS</to> - </copy> - <copy> - <from>'FAILURE'</from> - <to>$STATUS_FAILURE</to> - </copy> - </assign> - - <!-- Branch on different events --> - <if> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Branching on course-event: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from> - </sxt:log> - </sxt:trace> - - <!-- Event == "CREATE" --> - <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'CREATE'</condition> - <sequence> - <assign name="prepareAddCourse"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** addCourse()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> - <to>$AddCourseIn.course</to> - </copy> - <copy> - <from>$SID</from> - <to>$AddCourseIn.SID</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$AddCourseIn.EPR</to> - </copy> - </assign> - <invoke name="addCourse" partnerLink="AddCourse" operation="addCourse" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/AddCourse" - portType="tns:AddCoursePortType" - inputVariable="AddCourseIn" - outputVariable="AddCourseOut"/> - <assign name="saveCourseId"> - <copy> - <from>string($AddCourseOut.courseId)</from> - <to>$ObjectClientId</to> - </copy> - </assign> - <assign name="addCourseSuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </sequence> - <elseif> - <!-- Event == "UPDATE" --> - <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'UPDATE'</condition> - <sequence> - <assign name="prepareUpdateCourse"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** updateCourse()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> - <to>$UpdateCourseIn.course</to> - </copy> - <copy> - <from>$SID</from> - <to>$UpdateCourseIn.SID</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$UpdateCourseIn.EPR</to> - </copy> - </assign> - <invoke name="updateCourse" partnerLink="UpdateCourse" operation="updateCourse" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/UpdateCourse" - portType="tns:UpdateCoursePortType" - inputVariable="UpdateCourseIn" - outputVariable="UpdateCourseOut"/> - <assign name="updateCourseSuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - </sequence> - </elseif> - <elseif> - <!-- Event == "DELETE" --> - <condition>$ProcessCourseOperationIn.courseMessage/dt:event = 'DELETE'</condition> - <sequence> - <assign name="prepareDeleteCourse"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** deleteCourse()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCourseOperationIn.courseMessage/dt:course</from> - <to>$DeleteCourseIn.course</to> - </copy> - <copy> - <from>$SID</from> - <to>$DeleteCourseIn.SID</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$DeleteCourseIn.EPR</to> - </copy> - </assign> - <invoke name="deleteCourse" partnerLink="DeleteCourse" operation="deleteCourse" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/DeleteCourse" - portType="tns:DeleteCoursePortType" - inputVariable="DeleteCourseIn" - outputVariable="DeleteCourseOut"/> - - <assign name="deleteCourseSuccess"> - <copy> - <from>$STATUS_SUCCESS</from> - <to>$ReplyStatus</to> - </copy> - </assign> - - </sequence> - </elseif> - <else> - <!-- Unrecognized Operation: throw fault! --> - <sequence > - - <!--Set Fault Data --> - <assign name="PrepareForThrowFaultOperationNotFounded"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Unknown event!', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>concat('This Operation is unknown: ', $ProcessCourseOperationIn.courseMessage/dt:event)</from> - <to variable="SystemFaultOperationNotFounded" part="cause"/> - </copy> - <copy> - <from>'OutboundClientAdapter.bpel, CourseScope'</from> - <to variable="SystemFaultOperationNotFounded" part="process"/> - </copy> - <copy> - <from>sxxf:doMarshal($ProcessCourseOperationIn.courseMessage)</from> - <to variable="SystemFaultOperationNotFounded" part="context"/> - </copy> - </assign> - <throw name="ThrowFaultOperationNotFounded" faultVariable="SystemFaultOperationNotFounded" - faultName="sxeh:systemFault"/> - </sequence> - </else> - </if> - </sequence> - </scope> - - </onMessage> - - <!-- Process categories --> - <onMessage partnerLink="ILIASAdapter" operation="processCategory" xmlns:tns="http://j2ee.netbeans.org/wsdl/ILIASClientAdapter/ILIASClientAdapter" - portType="tns:ILIASClientAdapterPortType" - variable="ProcessCategoryOperationIn"> - <scope name="CategoryScope"> - <sequence> - <assign name="setSystem"> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from> - <to>$ResolveEPRIn.system</to> - </copy> - </assign> - - <!-- Determine Ilias Endpoint --> - <invoke name="resolveEPR" partnerLink="ResolveEPR" operation="resolveEPR" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/ResolveEPR" - portType="tns:ResolveEPRPortType" - inputVariable="ResolveEPRIn" - outputVariable="ResolveEPROut"/> - - <assign name="saveIliasEPR"> - <copy> - <from>$ResolveEPROut.EPR</from> - <to>$IliasEPR</to> - </copy> - </assign> - - <assign name="prepareLoginForCategories"> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:target</from> - <to>$LoginIn.system</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$LoginIn.EPR</to> - </copy> - </assign> - - <invoke name="loginForCategories" partnerLink="Login" operation="login" - xmlns:tns="http://cse.campussource.de/wsdl/ILIASClientAdapter/Login" - portType="tns:LoginPortType" - inputVariable="LoginIn" - outputVariable="LoginOut"/> - <assign name="initCategoryProcessing"> - <copy> - <from variable="LoginOut" part="SID"/> - <to variable="SID"/> - </copy> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:busId</from> - <to>$ObjectBusId</to> - </copy> - <copy ignoreMissingFromData="yes"> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category/dt:attribute[dt:name = 'clientId']/dt:value</from> - <to>$ObjectClientId</to> - </copy> - - <!-- Init constants (better alternatives?) --> - <copy> - <from>'SUCCESS'</from> - <to>$STATUS_SUCCESS</to> - </copy> - <copy> - <from>'FAILURE'</from> - <to>$STATUS_FAILURE</to> - </copy> - </assign> - - <!-- Branch on different events --> - <if> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** Branching on category-event: ', $ProcessCategoryOperationIn.categoryMessage/dt:event)</from> - </sxt:log> - </sxt:trace> - - <!-- Event == "CREATE" --> - <condition>$ProcessCategoryOperationIn.categoryMessage/dt:event = 'CREATE'</condition> - <sequence> - <assign name="prepareAddCategory"> - <sxt:trace> - <sxt:log level="info" location="onStart"> - <from>concat('*** addCategory()', '')</from> - </sxt:log> - </sxt:trace> - <copy> - <from>$ProcessCategoryOperationIn.categoryMessage/dt:category</from> - <to>$AddCategoryIn.category</to> - </copy> - <copy> - <from>$SID</from> - <to>$AddCategoryIn.SID</to> - </copy> - <copy> - <from>$IliasEPR</from> - <to>$AddCategoryIn.EPR</to> - </copy> - </assign> - <invoke name="addCategory" partnerLink="AddCategory" operation="addCategory" - xmlns:tns="http://cse.campu... [truncated message content] |
From: <pka...@us...> - 2009-08-02 23:06:56
|
Revision: 433 http://cse-ip.svn.sourceforge.net/cse-ip/?rev=433&view=rev Author: pkasprzak Date: 2009-08-02 23:06:46 +0000 (Sun, 02 Aug 2009) Log Message: ----------- * RefId from message Modified Paths: -------------- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 23:05:40 UTC (rev 432) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/catalog.xml 2009-08-02 23:06:46 UTC (rev 433) @@ -3,7 +3,6 @@ <system systemId="file:/home/pete/openESB/ilias-3.10.5.wsdl" uri="src/ilias-3.10.5.wsdl"/> <system systemId="Common/WS-Addressing.xsd" uri="nb-uri:Common#src/schemas.xmlsoap.org/ws/2004/08/addressing.xsd"/> <system systemId="Common/WS-BPEL-ServiceRef.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> - <system systemId="ObjectProcessor/ReplyProcessor.wsdl" uri="nb-uri:ObjectProcessor#src/ReplyProcessor.wsdl"/> <nextCatalog catalog="nbproject/private/cache/retriever/catalog.xml"/> <system systemId="Common/ConfigurationManager.wsdl" uri="nb-uri:Common#src/ConfigurationManager.wsdl"/> <system systemId="Common/serviceref.xsd" uri="nb-uri:Common#src/serviceref.xsd"/> Modified: trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel =================================================================== --- trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-08-02 23:05:40 UTC (rev 432) +++ trunk/sandbox/lsf-adapter-demo/ILIASClientAdapter/src/AddCourse.bpel 2009-08-02 23:06:46 UTC (rev 433) @@ -241,6 +241,14 @@ </sequence> </if> + <!-- Set REAL category-id --> + <assign> + <copy> + <from>number($AddCourseIn.course/dt:categories/dt:category[0])</from> + <to variable="CategoryRefId"/> + </copy> + </assign> + <!-- If no appropriate catgeory was found, create one --> <if> <condition>string($CategoryRefId) = 'NaN' or $CategoryRefId = 0</condition> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |