Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/deploy.xml
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/deploy.xml
(added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/deploy.xml Tue
Jul 6 18:59:09 2010
@@ -0,0 +1,29 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pns="http://ode/bpel/unit-test"
+ xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+ <process name="pns:HelloXQueryWorld">
+ <active>true</active>
+ <provide partnerLink="HelloXQueryPartnerLink">
+ <service name="wns:HelloXQueryService" port="HelloXQueryPort"/>
+ </provide>
+ </process>
+</deploy>
Propchange:
ode/trunk/bpel-itest/src/test/bpelunit/TestXQueryExpression/deploy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/HelloXslWorld.xsl
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/HelloXslWorld.xsl?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/HelloXslWorld.xsl
(added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/HelloXslWorld.xsl
Tue Jul 6 18:59:09 2010
@@ -0,0 +1,48 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+ <xsl:output method="xml"/>
+ <xsl:param name="middle"/>
+
+ <xsl:template match="node()|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="TestPart">
+ <!-- The root element is the one that will be used as a base for the
assignment rvalue -->
+ <xsl:element name="root">
+ <xsl:element name="hello">
+ <xsl:apply-templates />
+ </xsl:element>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="content">
+ <xsl:value-of select="concat(text(), $middle, 'World')"/>
+ </xsl:template>
+
+ <!-- The nilled() function does not work if your Saxon parser is not
schema-aware -->
+ <!--<xsl:template match="*[nilled(current())]"/>-->
+ <!-- As a workaround, you may use boolean(@xsi:nil) instead of
nilled(current()) -->
+ <xsl:template match="*[boolean(@xsi:nil)]"/>
+</xsl:stylesheet>
\ No newline at end of file
Propchange:
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/HelloXslWorld.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added:
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpel
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpel?rev=960982&view=auto
==============================================================================
---
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpel
(added)
+++
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpel
Tue Jul 6 18:59:09 2010
@@ -0,0 +1,76 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<process name="HelloXslWorld"
+ targetNamespace="http://ode/bpel/unit-test"
+ xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://ode/bpel/unit-test"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:types="http://ode/bpel/types"
+ xmlns:test="http://ode/bpel/unit-test.wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="TestXslTransformArtifacts.wsdl"
+ namespace="http://ode/bpel/unit-test.wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+ <partnerLinks>
+ <partnerLink name="helloXslPartnerLink"
+ partnerLinkType="test:HelloXslPartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar" messageType="test:HelloXslMessage"/>
+ <variable name="otherVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloXslPartnerLink"
+ portType="test:HelloXslPortType"
+ operation="helloXsl"
+ variable="myVar"
+ createInstance="yes"/>
+ <assign name="assign1">
+ <copy>
+ <from variable="myVar" part="TestPart"/>
+ <to variable="otherVar"/>
+ </copy>
+ <copy>
+ <from>'Xsl'</from>
+ <to>$otherVar</to>
+ </copy>
+ <copy>
+ <from>
+ bpws:doXslTransform("HelloXslWorld.xsl", $myVar.TestPart,
'middle', $otherVar)
+ </from>
+ <to variable="myVar" part="TestPart"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloXslPartnerLink"
+ portType="test:HelloXslPortType"
+ operation="helloXsl"
+ variable="myVar"/>
+ </sequence>
+
+</process>
Added:
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpts
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpts?rev=960982&view=auto
==============================================================================
---
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpts
(added)
+++
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransform.bpts
Tue Jul 6 18:59:09 2010
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tes:testSuite xmlns:tes="http://www.bpelunit.org/schema/testSuite"
xmlns:unit="http://ode/bpel/unit-test.wsdl">
+ <tes:name>TestXslTransform.bpts</tes:name>
+ <tes:baseURL>http://localhost:7777/ws</tes:baseURL>
+ <tes:deployment>
+ <tes:put name="HelloXslWorld" type="ode">
+ <tes:property name="DeploymentArchive">.</tes:property>
+ <tes:property
name="ODEDeploymentServiceURL">http://localhost:8080/ode/processes/DeploymentService</tes:property>
+ <tes:wsdl>TestXslTransformArtifacts.wsdl</tes:wsdl>
+ </tes:put>
+ </tes:deployment>
+ <tes:testCases>
+ <tes:testCase name="case1" basedOn="" abstract="false" vary="false">
+ <tes:clientTrack>
+ <tes:sendReceive service="unit:HelloXslService"
port="HelloXslPort" operation="helloXsl">
+ <tes:send service="unit:HelloXslService"
port="HelloXslPort" operation="helloXsl" fault="false" delaySequence="">
+ <tes:data>
+ <TestPart>
+ <content>Hello</content>
+ <nillable xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
+ </TestPart>
+ </tes:data>
+ </tes:send>
+ <tes:receive service="unit:HelloXslService"
port="HelloXslPort" operation="helloXsl" fault="false">
+ <tes:condition>
+ <tes:expression>//TestPart/hello</tes:expression>
+ <tes:value>'HelloXslWorld'</tes:value>
+ </tes:condition>
+ </tes:receive>
+ </tes:sendReceive>
+ </tes:clientTrack>
+ </tes:testCase>
+ </tes:testCases>
+</tes:testSuite>
\ No newline at end of file
Added:
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransformArtifacts.wsdl
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransformArtifacts.wsdl?rev=960982&view=auto
==============================================================================
---
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransformArtifacts.wsdl
(added)
+++
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransformArtifacts.wsdl
Tue Jul 6 18:59:09 2010
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<wsdl:definitions
+ targetNamespace="http://ode/bpel/unit-test.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://ode/bpel/unit-test.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:types="http://ode/bpel/types"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://ode/bpel/types">
+ <xsd:complexType name="ContentCT">
+ <xsd:sequence>
+ <xsd:element name="content" type="xsd:string"/>
+ <xsd:element name="nillable" type="xsd:string"
nillable="true"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="HelloXslMessage">
+ <wsdl:part name="TestPart" type="types:ContentCT"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloXslPortType">
+ <wsdl:operation name="helloXsl">
+ <wsdl:input message="tns:HelloXslMessage" name="TestIn"/>
+ <wsdl:output message="tns:HelloXslMessage" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloXslSoapBinding" type="tns:HelloXslPortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="helloXsl">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://ode/bpel/unit-test.wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloXslService">
+ <wsdl:port name="HelloXslPort"
binding="tns:HelloXslSoapBinding">
+ <soap:address
location="http://localhost:8080/ode/processes/helloXslWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloXslPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloXslPortType"/>
+ <plnk:role name="you" portType="tns:HelloXslPortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Propchange:
ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/TestXslTransformArtifacts.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Added: ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/deploy.xml
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/deploy.xml?rev=960982&view=auto
==============================================================================
--- ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/deploy.xml (added)
+++ ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/deploy.xml Tue Jul
6 18:59:09 2010
@@ -0,0 +1,29 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:pns="http://ode/bpel/unit-test"
+ xmlns:wns="http://ode/bpel/unit-test.wsdl">
+
+ <process name="pns:HelloXslWorld">
+ <active>true</active>
+ <provide partnerLink="helloXslPartnerLink">
+ <service name="wns:HelloXslService" port="HelloXslPort"/>
+ </provide>
+ </process>
+</deploy>
Propchange: ode/trunk/bpel-itest/src/test/bpelunit/TestXslTransform/deploy.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: ode/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/ode/trunk/pom.xml?rev=960982&r1=960981&r2=960982&view=diff
==============================================================================
--- ode/trunk/pom.xml (original)
+++ ode/trunk/pom.xml Tue Jul 6 18:59:09 2010
@@ -990,50 +990,51 @@
</build>
</profile>
- <profile>
- <id>distro</id>
- <modules>
- <module>distro</module>
- </modules>
- </profile>
- <profile>
+ <profile>
+ <id>distro</id>
+ <modules>
+ <module>distro</module>
+ </modules>
+ </profile>
+ <profile>
<!-- To run this profile, you need to uncomment the apt plugin
in jacob and bpel-runtime module first.
- And then run this profile, those classes with @ChannelType
will be regenerated. -->
- <id>all</id>
- <modules>
- <module>agents</module>
- <module>utils</module>
- <module>jacob-ap</module>
- <module>jacob</module>
- <module>bpel-schemas</module>
- <module>bpel-scripts</module>
- <module>bpel-api</module>
- <module>bpel-api-jca</module>
- <module>bpel-dao</module>
- <module>bpel-obj</module>
- <module>dao-jpa</module>
- <module>jca-ra</module>
- <module>jca-server</module>
- <module>scheduler-simple</module>
- <module>bpel-compiler</module>
- <module>bpel-epr</module>
- <module>bpel-ql</module>
- <module>dao-hibernate</module>
- <module>tools</module>
- <module>bpel-store</module>
- <module>dao-jpa-ojpa-derby</module>
- <module>dao-hibernate-db</module>
- <module>bpel-runtime</module>
- <module>bpel-connector</module>
- <module>bpel-test</module>
- <module>axis2</module>
- <module>jbi</module>
- <module>jbi-bundle</module>
- <module>jbi-karaf</module>
- <module>distro/src/examples-jbi/maven2/ping-pong-osgi</module>
- <module>axis2-war</module>
- <module>distro</module>
- </modules>
- </profile>
+ And then run this profile, those classes with @ChannelType will be
regenerated. -->
+ <id>all</id>
+ <modules>
+ <module>agents</module>
+ <module>utils</module>
+ <module>jacob-ap</module>
+ <module>jacob</module>
+ <module>bpel-schemas</module>
+ <module>bpel-scripts</module>
+ <module>bpel-api</module>
+ <module>bpel-api-jca</module>
+ <module>bpel-dao</module>
+ <module>bpel-obj</module>
+ <module>dao-jpa</module>
+ <module>jca-ra</module>
+ <module>jca-server</module>
+ <module>scheduler-simple</module>
+ <module>bpel-compiler</module>
+ <module>bpel-epr</module>
+ <module>bpel-ql</module>
+ <module>dao-hibernate</module>
+ <module>tools</module>
+ <module>bpel-store</module>
+ <module>dao-jpa-ojpa-derby</module>
+ <module>dao-hibernate-db</module>
+ <module>bpel-runtime</module>
+ <module>bpel-connector</module>
+ <module>bpel-test</module>
+ <module>axis2</module>
+ <module>jbi</module>
+ <module>jbi-bundle</module>
+ <module>jbi-karaf</module>
+ <module>distro/src/examples-jbi/maven2/ping-pong-osgi</module>
+ <module>axis2-war</module>
+ <module>bpel-itests</module>
+ <module>distro</module>
+ </modules>
+ </profile>
</profiles>
</project>