From 3d78e7e023933818a502e19f066e08482caa67aa Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 24 Nov 2008 08:24:41 +0000 Subject: More updates the BPEL component in the payment process git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@720132 13f79535-47bb-0310-9956-ffa450edef68 --- .../scatours/paymentprocess/CreditCardPayment.wsdl | 116 +++++++++++++++++++++ .../src/scatours/paymentprocess/EmailGateway.wsdl | 89 ++++++++++++++++ .../scatours/paymentprocess/PaymentProcess.wsdl | 39 +++---- .../src/scatours/paymentprocess/deploy.xml | 6 ++ .../scatours/paymentprocess/paymentprocess.bpel | 93 +++++++++++++---- .../paymentprocess/paymentprocess.componentType | 4 +- 6 files changed, 306 insertions(+), 41 deletions(-) create mode 100644 sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/CreditCardPayment.wsdl create mode 100644 sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/EmailGateway.wsdl (limited to 'sandbox/travelsample/paymentprocess-contribution/src/scatours') diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/CreditCardPayment.wsdl b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/CreditCardPayment.wsdl new file mode 100644 index 0000000000..272d6aaf44 --- /dev/null +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/EmailGateway.wsdl b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/EmailGateway.wsdl new file mode 100644 index 0000000000..d9a5e36bc0 --- /dev/null +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/PaymentProcess.wsdl b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/PaymentProcess.wsdl index 5efd6251cd..9022763fda 100644 --- a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/PaymentProcess.wsdl +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/PaymentProcess.wsdl @@ -29,33 +29,34 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - + + diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/deploy.xml b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/deploy.xml index 007fede130..b3dc960034 100644 --- a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/deploy.xml +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/deploy.xml @@ -27,5 +27,11 @@ + + + + + + diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.bpel b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.bpel index 43986b1e2d..f1faf982aa 100644 --- a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.bpel +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.bpel @@ -17,7 +17,7 @@ ~ under the License. --> + namespace="http://www.example.org/PaymentProcess/"/> - + namespace="http://www.example.org/EmailGateway/"/> - - + + - - - + + + + + + + + @@ -59,29 +62,79 @@ partnerLink="paymentProcessPartnerLink" portType="pp:PaymentProcess" operation="makePayment" - variable="paymentProcessMessage" + variable="makePaymentRequestMessage" createInstance="yes"/> - + + + + + + + Visa + 12345678 + 2 + 2010 + + Empty + + 1 The Road + Winchester + Hampshire + AB1 2CD + 12345678 + + + + 0.0 + + + + $authorizeRequestMessage.parameters + - $paymentProcessMessage.parameters.CustomerId - $emailMessage.parameters.Email.To + $makePaymentRequestMessage.parameters/CustomerId/text() + $authorizeRequestMessage.parameters/ccp:CreditCard/ccp:CardOwner/ccp:Name - + + $makePaymentRequestMessage.parameters/Amount/text() + $authorizeRequestMessage.parameters/ccp:Amount + + - + + + + + + + + + - OK - $paymentProcessResponseMessage.parameters.Status + $authorizeResponseMessage.parameters + $makePaymentResponseMessage.parameters + + + variable="makePaymentResponseMessage"> + diff --git a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.componentType b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.componentType index a7f95a012c..3fc519d8ea 100644 --- a/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.componentType +++ b/sandbox/travelsample/paymentprocess-contribution/src/scatours/paymentprocess/paymentprocess.componentType @@ -26,13 +26,13 @@ - + \ No newline at end of file -- cgit v1.2.3