From 3facd14020c31532b7684d3d6e493f16964de499 Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 26 Jul 2009 10:14:11 +0000 Subject: Add an example of using implementation bpel to build a component for taking payments git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@797900 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/resources/CreditCardPayment.wsdl | 117 +++++++++++++++ .../src/main/resources/EmailGateway.wsdl | 89 +++++++++++ .../main/resources/META-INF/sca-contribution.xml | 23 +++ .../src/main/resources/Payment.wsdl | 83 +++++++++++ .../src/main/resources/payment.bpel | 164 +++++++++++++++++++++ 5 files changed, 476 insertions(+) create mode 100644 sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl create mode 100644 sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel (limited to 'sandbox/travelsample/contributions/payment-bpel-contribution/src/main') diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl new file mode 100644 index 0000000000..22ef6de317 --- /dev/null +++ b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl new file mode 100644 index 0000000000..a097d9b7e4 --- /dev/null +++ b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..725c95a2bd --- /dev/null +++ b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl new file mode 100644 index 0000000000..e2c4062f2e --- /dev/null +++ b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/Payment.wsdl @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel new file mode 100644 index 0000000000..8f11d76888 --- /dev/null +++ b/sandbox/travelsample/contributions/payment-bpel-contribution/src/main/resources/payment.bpel @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Visa + 12345678 + 2 + 2010 + + Empty +
+ 1 The Road + Winchester + Hampshire + AB1 2CD + 12345678 +
+
+
+ 0.0 +
+
+
+ $authorizeRequestMessage.parameters +
+ + $makePaymentMemberRequestMessage.parameters/CustomerId/text() + $authorizeRequestMessage.parameters/CreditCard/CardOwner/Name + + + $makePaymentMemberRequestMessage.parameters/Amount/text() + $authorizeRequestMessage.parameters/Amount + +
+ + + + + + + + + + + Default + Payment Confirmation + Your payment has been confirmed + + + + + $sendEmailRequestMessage.parameters + + + $makePaymentMemberRequestMessage.parameters/CustomerId/text() + $sendEmailRequestMessage.parameters/Email/To + + + + + + + + + + + + + OK + + + + $makePaymentMemberResponseMessage.parameters + + + + + + +
+
-- cgit v1.2.3