diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-21 13:31:55 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-21 13:31:55 +0000 |
commit | 7d9e691b83c7669f559337a5a2768b13ce176bd3 (patch) | |
tree | 5640631c7e1b148197fee46d2a9bc29e8ce718e9 /sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel | |
parent | 60f2f3cefcbd87824288bd555209f87bcb72456a (diff) |
Fix up the BPEL payment component to run in the wider application and take advantage of the BPEL resolved fix in 1.x
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@746503 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel')
-rw-r--r-- | sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel b/sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel index 25c10d43a7..8f11d76888 100644 --- a/sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel +++ b/sandbox/travelsample/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel @@ -17,29 +17,29 @@ ~ under the License. --> <process name="Payment" - targetNamespace="http://www.example.org/Payment" + targetNamespace="http://www.tuscanyscatours.com/Payment" xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/" xmlns:tns="http://tuscany.apache.org/Payment" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:pp="http://www.example.org/Payment/" - xmlns:ccp="http://www.example.org/CreditCardPayment/" - xmlns:eg="http://www.example.org/EmailGateway/" + xmlns:pp="http://www.tuscanyscatours.com/Payment/" + xmlns:ccp="http://www.tuscanyscatours.com/CreditCardPayment/" + xmlns:eg="http://www.tuscanyscatours.com/EmailGateway/" queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"> <import location="Payment.wsdl" importType="http://schemas.xmlsoap.org/wsdl/" - namespace="http://www.example.org/Payment/"/> + namespace="http://www.tuscanyscatours.com/Payment/"/> <import location="CreditCardPayment.wsdl" importType="http://schemas.xmlsoap.org/wsdl/" - namespace="http://www.example.org/CreditCardPayment/"/> + namespace="http://www.tuscanyscatours.com/CreditCardPayment/"/> <import location="EmailGateway.wsdl" importType="http://schemas.xmlsoap.org/wsdl/" - namespace="http://www.example.org/EmailGateway/"/> + namespace="http://www.tuscanyscatours.com/EmailGateway/"/> <partnerLinks> <partnerLink name="paymentPartnerLink" partnerLinkType="pp:PaymentLinkType" myRole="forward" /> @@ -48,8 +48,8 @@ </partnerLinks> <variables> - <variable name="makePaymentRequestMessage" messageType="pp:MakePaymentRequest"/> - <variable name="makePaymentResponseMessage" messageType="pp:MakePaymentResponse"/> + <variable name="makePaymentMemberRequestMessage" messageType="pp:MakePaymentMemberRequest"/> + <variable name="makePaymentMemberResponseMessage" messageType="pp:MakePaymentMemberResponse"/> <variable name="authorizeRequestMessage" messageType="ccp:AuthorizeRequest"/> <variable name="authorizeResponseMessage" messageType="ccp:AuthorizeResponse"/> <variable name="sendEmailRequestMessage" messageType="eg:SendEmailRequest"/> @@ -60,8 +60,8 @@ <receive name="start" partnerLink="paymentPartnerLink" portType="pp:Payment" - operation="makePayment" - variable="makePaymentRequestMessage" + operation="makePaymentMember" + variable="makePaymentMemberRequestMessage" createInstance="yes"/> <!-- set up call to payments service --> @@ -69,7 +69,7 @@ <copy> <from> <literal> - <authorize xmlns="http://www.example.org/CreditCardPayment/"> + <authorize xmlns="http://www.tuscanyscatours.com/CreditCardPayment/"> <CreditCard xmlns=""> <CreditCardType>Visa</CreditCardType> <CreditCardNumber>12345678</CreditCardNumber> @@ -93,11 +93,11 @@ <to>$authorizeRequestMessage.parameters</to> </copy> <copy> - <from>$makePaymentRequestMessage.parameters/CustomerId/text()</from> + <from>$makePaymentMemberRequestMessage.parameters/CustomerId/text()</from> <to>$authorizeRequestMessage.parameters/CreditCard/CardOwner/Name</to> </copy> <copy> - <from>$makePaymentRequestMessage.parameters/Amount/text()</from> + <from>$makePaymentMemberRequestMessage.parameters/Amount/text()</from> <to>$authorizeRequestMessage.parameters/Amount</to> </copy> </assign> @@ -114,7 +114,7 @@ <copy> <from> <literal> - <sendEmail xmlns="http://www.example.org/EmailGateway/"> + <sendEmail xmlns="http://www.tuscanyscatours.com/EmailGateway/"> <Email xmlns=""> <To>Default</To> <Title>Payment Confirmation</Title> @@ -126,7 +126,7 @@ <to>$sendEmailRequestMessage.parameters</to> </copy> <copy> - <from>$makePaymentRequestMessage.parameters/CustomerId/text()</from> + <from>$makePaymentMemberRequestMessage.parameters/CustomerId/text()</from> <to>$sendEmailRequestMessage.parameters/Email/To</to> </copy> </assign> @@ -144,12 +144,12 @@ <copy> <from> <literal> - <makePaymentResponse xmlns="http://www.example.org/Payment"> + <makePaymentMemberResponse xmlns="http://www.tuscanyscatours.com/Payment"> <Status xmlns="">OK</Status> - </makePaymentResponse> + </makePaymentMemberResponse> </literal> </from> - <to>$makePaymentResponseMessage.parameters</to> + <to>$makePaymentMemberResponseMessage.parameters</to> </copy> </assign> @@ -157,8 +157,8 @@ <reply name="end" partnerLink="paymentPartnerLink" portType="pp:Payment" - operation="makePayment" - variable="makePaymentResponseMessage"> + operation="makePaymentMember" + variable="makePaymentMemberResponseMessage"> </reply> </sequence> </process> |