diff --git a/ESB-Artifacts/QuickStartGuide/artifacts/README.txt b/ESB-Artifacts/QuickStartGuide/artifacts/README.txt index f9267d0..ed55290 100644 --- a/ESB-Artifacts/QuickStartGuide/artifacts/README.txt +++ b/ESB-Artifacts/QuickStartGuide/artifacts/README.txt @@ -50,7 +50,7 @@ curl -v -X POST "http://localhost:8280/services/ReserveAppointmentProxy" --heade "category": "surgery" }, "Payment": { - "patient": "Nadeeshaan Gunasinghe", + "patient": "Mark Smith", "actualFee": 7000, "discount": 20, "discounted": 5600, diff --git a/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car b/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car index 8cf9410..5e820a2 100644 Binary files a/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car and b/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car differ diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/artifact.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/artifact.xml index 144dedd..b11b5cc 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/artifact.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/artifact.xml @@ -20,4 +20,10 @@ src/main/synapse-config/sequences/faultSequence.xml + + src/main/synapse-config/api/HospitalServiceApi.xml + + + src/main/synapse-config/sequences/APIInSequence.xml + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/pom.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/pom.xml index 60105fe..7168b4a 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/pom.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/pom.xml @@ -9,8 +9,8 @@ WSO2QuickStartGuide WSO2QuickStartGuide - false bpel/workflow=zip,lib/registry/filter=jar,webapp/jaxws=war,lib/library/bundle=jar,service/dataservice=dbs,synapse/local-entry=xml,synapse/proxy-service=xml,carbon/application=car,registry/resource=zip,lib/dataservice/validator=jar,synapse/endpoint=xml,web/application=war,lib/carbon/ui=jar,service/axis2=aar,synapse/sequence=xml,synapse/configuration=xml,wso2/gadget=dar,lib/registry/handlers=jar,lib/synapse/mediator=jar,synapse/task=xml,synapse/api=xml,synapse/template=xml,synapse/message-store=xml,synapse/message-processors=xml,synapse/inbound-endpoint=xml + false @@ -163,6 +163,26 @@ + + org.wso2.maven + wso2-esb-api-plugin + 2.1.0 + true + + + api + process-resources + + pom-gen + + + . + ${artifact.types} + + + + + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/api/HospitalServiceApi.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/api/HospitalServiceApi.xml new file mode 100644 index 0000000..6f42cb5 --- /dev/null +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/api/HospitalServiceApi.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/channellingFee.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/channellingFee.xml index a3f9e74..a72d424 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/channellingFee.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/channellingFee.xml @@ -1,4 +1,4 @@ - + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/discountEligibility.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/discountEligibility.xml index ceb1b6a..49f8b60 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/discountEligibility.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/discountEligibility.xml @@ -1,4 +1,4 @@ - + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/getPaymentDetails.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/getPaymentDetails.xml index 171157e..e2ebe91 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/getPaymentDetails.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/getPaymentDetails.xml @@ -1,4 +1,4 @@ - + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/reserveAppointmentEp.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/reserveAppointmentEp.xml index 2e20c23..ff7fd09 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/reserveAppointmentEp.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/reserveAppointmentEp.xml @@ -1,4 +1,4 @@ - + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/settlePayment.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/settlePayment.xml index e38d0f8..db580a7 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/settlePayment.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/endpoints/settlePayment.xml @@ -1,4 +1,4 @@ - + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/proxy-services/ReserveAppointmentProxy.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/proxy-services/ReserveAppointmentProxy.xml index e266f8a..f7082b7 100644 --- a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/proxy-services/ReserveAppointmentProxy.xml +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/proxy-services/ReserveAppointmentProxy.xml @@ -2,12 +2,15 @@ + + + { "patient":{ @@ -32,6 +35,29 @@ + + + + + + + + + + + + + + + + { + "Status":"Invalid Hospital Name" +} + + + + + diff --git a/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/sequences/APIInSequence.xml b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/sequences/APIInSequence.xml new file mode 100644 index 0000000..2c23026 --- /dev/null +++ b/ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/sequences/APIInSequence.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + { + "patient":{ + "name": "$1", + "dob":"$2", + "ssn": "$3", + "address": "$4", + "phone":"$5", + "email": "$6" + }, + "doctor": "$7", + "hospital": "$8" +} + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "Status":"Invalid Hospital Name" +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "appointmentNumber":$1, + "doctor":$2, + "patient":$3, + "fee":$4, + "confirmed":"false", + "card_number":"$5" +} + + + + + + + + + + + + + + + + + + { + "appointmentNumber":$1, + "Doctor":$2, + "Payment":$3 +} + + + + + + + + +