From c9357e3d0eeff16477583c8bac400ece376797db Mon Sep 17 00:00:00 2001 From: nadeeshaan Date: Fri, 29 Jul 2016 12:10:37 +0530 Subject: [PATCH 1/3] Adding the response changes --- ESB-Artifacts/QuickStartGuide/artifacts/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From f7ecfce762aa7c2e98081d79da3b5d2f09dbd39d Mon Sep 17 00:00:00 2001 From: nadeeshaan Date: Fri, 29 Jul 2016 23:53:25 +0530 Subject: [PATCH 2/3] Adding the refined Car --- .../WSO2QucikStartGuideCapp_1.0.0.car | Bin 7415 -> 7425 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car b/ESB-Artifacts/QuickStartGuide/artifacts/WSO2QucikStartGuideCapp_1.0.0.car index 8cf9410d0abfc3c65181f7eb3015b14f40a2e940..5e820a23f4d36f71792c4f4a7cdc0e680f0bba80 100644 GIT binary patch delta 2027 zcmah~c{p478qQJ@8fimFNRW!HwpuD^M`{B ziEA#Up$u)6mdgwpTd7?s4fBkp2t}B4Oy@q=bN{&KJm2qq&ij4m{k`AsInQ@iE#i(~ zT$#u{co-UuhOz4JVQdlL>NW?yXIJo?sTePO((O|$Y)snRD*e=Y`I)K8BJjuo80M^kLb9wH>l53L&vx2 z&a9rQe-$1p@%F3Ya(;!s_lqYpsHV=6lWi)m#SHxKg4;R-${O5i-MsK3k@F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0s_4?z=|n&%6`QQXZG437ky$piQ#9JOY-MP>FAMNPXbPedI3t^ zY=}qa-jKZ^`5zdlbX(%$ni`28^Kf)ze0^sR;9F*^eqaQV zA9^*CBe*8U@^O>>hjuif&7)$v+m?*@)2*H^vN`D;#*2$R34jT3N&N#Gme7E?0b1A}ST|+nKptx@Cn0r9-iGEiEmH4MUMhrH^r9 z=WH>PprXTTADXDEyF1M;RAd&1=JYQ#-TWo&_p&Z)o0q5GMA`iifuL}0bbj;jOVji^ zLb_&b2JfIzsGs5uVU-^IbvyR>=#@*52_miFT%O58rbU1qrrEOTWJc}%TCY;Br6VbH zY*3QxXX`o_Rh-x*I14hZ>Nf@*(3Y`w+Q~F0g-By&QKtieie&HJ*Re!+@PhPl^MU8U zQy#i2v{e>TK4P+HUU}Ut(Z^==RMc>WOy&{PJ@9_hI?iHzYc#*X`GKj$fd+9-{m^G7x-;G={7Ysq_&7 znbIHxLnvnmsLEq<5Mj_?%~KDv6Ji4~{SfP@QV&_`J*?e|vpV2t5Sxbk&&u{LehSJJ z5L_UbAWTBRE+Tm)I7@PbSW~q<5S&r-g+QX_3W2`54`$3~iT2kJV7mGdDA1`%hTlPg zswg!Tx*H5m1il$PXre)ezh8-f#!Bkoj~ZwwpCf0dl;rvA!6TYzT}Ts}9{%SQX#9y^ zp&bRzptL|0&6QHJ{3xvQ3PV>$L*r~ Date: Tue, 6 Sep 2016 09:07:07 +0530 Subject: [PATCH 3/3] Adding the latest project --- .../projects/WSO2QuickStartGuide/artifact.xml | 6 + .../projects/WSO2QuickStartGuide/pom.xml | 22 ++- .../synapse-config/api/HospitalServiceApi.xml | 6 + .../endpoints/channellingFee.xml | 2 +- .../endpoints/discountEligibility.xml | 2 +- .../endpoints/getPaymentDetails.xml | 2 +- .../endpoints/reserveAppointmentEp.xml | 2 +- .../endpoints/settlePayment.xml | 2 +- .../ReserveAppointmentProxy.xml | 26 ++++ .../sequences/APIInSequence.xml | 142 ++++++++++++++++++ 10 files changed, 206 insertions(+), 6 deletions(-) create mode 100644 ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/api/HospitalServiceApi.xml create mode 100644 ESB-Artifacts/QuickStartGuide/projects/WSO2QuickStartGuide/src/main/synapse-config/sequences/APIInSequence.xml 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 +} + + + + + + + + +