| <?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. |
| --> |
| <bpws:process exitOnStandardFault="yes" |
| expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" |
| name="HelloWorld2" |
| queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" |
| targetNamespace="http://ode/bpel/unit-test" |
| xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" |
| xmlns:test="http://ode/bpel/unit-test.wsdl" |
| xmlns:tns="http://ode/bpel/unit-test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" |
| xmlns:myns="myns"> |
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" |
| location="HelloWorld2.wsdl" namespace="http://ode/bpel/unit-test.wsdl"/> |
| <bpws:partnerLinks> |
| <bpws:partnerLink myRole="me" name="helloPartnerLink" partnerLinkType="test:HelloPartnerLinkType"/> |
| </bpws:partnerLinks> |
| <bpws:variables> |
| <bpws:variable messageType="test:helloRequest" name="inVar"/> |
| <bpws:variable type="myns:MagicPixie" name="tmpVar" /> |
| <bpws:variable messageType="test:helloResponse" name="outVar"/> |
| </bpws:variables> |
| <bpws:sequence> |
| <bpws:receive createInstance="yes" name="start" |
| operation="hello" partnerLink="helloPartnerLink" |
| portType="test:HelloPortType" variable="inVar"/> |
| <bpws:assign name="assign1" validate="yes"> |
| <bpws:copy> |
| <bpws:from variable="inVar" part="parameters"> |
| <bpws:query>myns:in</bpws:query> |
| </bpws:from> |
| <bpws:to variable="tmpVar"/> |
| </bpws:copy> |
| <bpws:copy> |
| <bpws:from> |
| <bpws:literal> |
| <myns:helloResponse> |
| <myns:out xmlns:foo="xsn:foo" myattr="foo:bar"/> |
| </myns:helloResponse> |
| </bpws:literal> |
| </bpws:from> |
| <bpws:to variable="outVar" part="parameters"/> |
| </bpws:copy> |
| <bpws:copy> |
| <bpws:from>$tmpVar</bpws:from> |
| <bpws:to variable="outVar" part="parameters"> |
| <bpws:query>myns:out</bpws:query> |
| </bpws:to> |
| </bpws:copy> |
| </bpws:assign> |
| <bpws:reply name="end" operation="hello" |
| partnerLink="helloPartnerLink" portType="test:HelloPortType" variable="outVar"/> |
| </bpws:sequence> |
| </bpws:process> |