diff options
author | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
---|---|---|
committer | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
commit | bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a (patch) | |
tree | 38a92061c0793434c4be189f1d70c3458b6bc41d /branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong |
Move Tuscany from Incubator to top level.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong')
5 files changed, 267 insertions, 0 deletions
diff --git a/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/deploy.xml b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/deploy.xml new file mode 100644 index 0000000000..1315ef47f0 --- /dev/null +++ b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/deploy.xml @@ -0,0 +1,31 @@ +<?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. + --> +<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03" + xmlns:process="http://tuscany.apache.org/implementation/bpel/example/pong.bpel" + xmlns:pong="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl"> + + <process name="process:Pong"> + <active>true</active> + <provide partnerLink="PongPartnerLink"> + <service name="pong:PongService" port="PongPort"/> + </provide> + </process> + +</deploy> diff --git a/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.bpel b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.bpel new file mode 100644 index 0000000000..b5d84898c7 --- /dev/null +++ b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.bpel @@ -0,0 +1,84 @@ +<?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. + --> +<process + name="Pong" + xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" + targetNamespace="http://tuscany.apache.org/implementation/bpel/example/pong.bpel" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/pong.bpel" + xmlns:pong="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl" + expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"> + + <import location="pong.wsdl" + namespace="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl" + importType="http://schemas.xmlsoap.org/wsdl/" /> + + + <partnerLinks> + <partnerLink name="PongPartnerLink" + partnerLinkType="pong:PongPartnerLinkType" + myRole="Provider" /> + </partnerLinks> + + <variables> + <variable messageType="pong:PongRequest" name="pongRequest"/> + <variable messageType="pong:PongResponse" name="pongResponse"/> + <variable type="xsd:string" name="text" /> + </variables> + + <sequence name="Main"> + <receive name="pongReceive" + createInstance="yes" + operation="Pong" + partnerLink="PongPartnerLink" + portType="pong:PongPortType" + variable="pongRequest"/> + + <assign name="assignPongRequest"> + <!-- add "ping" text to the input text --> + <copy> + <from>concat($pongRequest.body/pong:text, ' pong')</from> + <to>$text</to> + </copy> + <!-- initialize pongResponse --> + <copy> + <from> + <literal> + <pong:PongRequest> + <pong:text/> + </pong:PongRequest> + </literal> + </from> + <to>$pongResponse.body</to> + </copy> + <!-- copy new text into pongResponse --> + <copy> + <from>$text</from> + <to>$pongResponse.body/pong:text</to> + </copy> + </assign> + + <reply name="pongReply" + partnerLink="PongPartnerLink" + portType="pong:PongPortType" + operation="Pong" + variable="pongResponse"/> + </sequence> +</process> diff --git a/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.componentType b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.componentType new file mode 100644 index 0000000000..2f8fd5d3de --- /dev/null +++ b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.componentType @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- + * 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. +--> +<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <service name="PongService"> + <interface.wsdl interface="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl#wsdl.interface(PongPortType)" /> + </service> + +</componentType>
\ No newline at end of file diff --git a/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.composite b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.composite new file mode 100644 index 0000000000..e40ce7ee45 --- /dev/null +++ b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.composite @@ -0,0 +1,30 @@ +<?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. +--> + +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://bpel" + xmlns:pong="http://tuscany.apache.org/implementation/bpel/example/pong.bpel" + name="pong"> + + <component name="BPELPongComponent"> + <implementation.bpel process="pong:Pong"/> + </component> + +</composite>
\ No newline at end of file diff --git a/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.wsdl b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.wsdl new file mode 100644 index 0000000000..21ee8b82f6 --- /dev/null +++ b/branches/sca-java-1.2/itest/bpel/ping-pong/test/resources/pong/pong.wsdl @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<!-- + ~ 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. + --> +<definitions name="Pong" + targetNamespace="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl" + xmlns:tns="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" + xmlns="http://schemas.xmlsoap.org/wsdl/"> + + <types> + <schema targetNamespace="http://tuscany.apache.org/implementation/bpel/example/pong.wsdl" + xmlns="http://www.w3.org/2001/XMLSchema"> + <element name="PongRequest"> + <complexType> + <all> + <element name="text" type="string"/> + </all> + </complexType> + </element> + <element name="PongResponse"> + <complexType> + <all> + <element name="text" type="string"/> + </all> + </complexType> + </element> + </schema> + </types> + + <message name="PongRequest"> + <part name="body" element="tns:PongRequest"/> + </message> + + <message name="PongResponse"> + <part name="body" element="tns:PongResponse"/> + </message> + + <portType name="PongPortType"> + <operation name="Pong"> + <input message="tns:PongRequest"/> + <output message="tns:PongResponse"/> + </operation> + </portType> + + <binding name="PongSoapBinding" type="tns:PongPortType"> + <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <operation name="Pong"> + <soap:operation soapAction=""/> + <input name="PongRequest"> + <soap:body use="literal"/> + </input> + <output name="PongResponse"> + <soap:body use="literal"/> + </output> + </operation> + </binding> + + <service name="PongService"> + <port name="PongPort" binding="tns:PongSoapBinding"> + <soap:address location="http://localhost:8085/ode/processes/pong"/> + </port> + </service> + + <plnk:partnerLinkType name="PongPartnerLinkType"> + <plnk:role name="Provider" portType="tns:PongPortType"/> + </plnk:partnerLinkType> + + <!-- + + This is an abstract interface/portType definition. Note the lack of + binding and service. Since Pong is only exposed on the JBI bus, the + JBI endpoint is defined in Pong.dd. + + --> + +</definitions> |