# # Copyright (c) 2014-2016 Linagora # # This program/library is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 2.1 of the License, or (at your # option) any later version. # # This program/library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License # for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program/library; If not, see http://www.gnu.org/licenses/ # for the GNU Lesser General Public License version 2.1. # The Demo "WOA <-> SOA convergence requires: - a demo of the ECR: The Enterprise Resource Cache is available here: https://github.com/petalslink/woa-frontend. See its README to: - configure it with the right Petals ESB entry point (ie, the BC Rest): module.exports = { port: 3000, token: '123', mongo: { url: 'mongodb://127.0.0.1:27017/woa' }, routes: [ { method: 'GET', resource: { id: 'uuid', name: 'cafqf' }, in: '/api/qf/:uuid', out: 'http://localhost:8086/intg-woa/contribuable/:uuid/quotientfamilial' } ] }; - and start it with mongodb - a Petals ESB container with: - sa-woa-soa-backend, a SOAP proxy towards the Mock service and optionnaly, sa-woa-soa-backend2 towards the second Mock, for demonstration purpose. - sa-woa-soa-rest, a REST proxy exposing the service outside, and optionally, sa-woa-soa-soap exposing it with SOAP, for demonstration purpose. - If needed, the random strategy for selecting endpoints in the server configuration - an external webservice mocked with SoapUI. The SoapUI project is available here: src/main/soapui/WOA-SOA-soapui-project.xml There is SA's for each of the endpoints: - backend and backend 2 corresponds to the two mocked webservice (only one is needed, but it can be useful for demonstration purpose). - rest is for the BC Rest (contacted by the ERC or directly) - soap is for the BC Soap (not really needed but it can be useful for demonstration purpose) Request samples to send to the BC Rest: 1/ curl http://localhost:8086/intg-woa/contribuable/no-wait/quotientfamilial 2/ curl http://localhost:8086/intg-woa/contribuable/julia/quotientfamilial (will take 5 seconds to execute) Request samples to send to the ERC: 1/ curl http://localhost:3000/api/qf/julia?token=123