- Build the project: mvn clean install
- Replace your server's standalone.xml with src/main/resources/standalone.xml
- Start JBoss AS 7 in standalone mode (other modes are fine too): ${AS}/bin/standalone.sh
- Create database table using h2 console. To do that download h2console.
- Open browser page http://localhost:8080/h2console
- Put following data in connection parameters
- connection url: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
- username: sa
- password: sa
- Copy contents of src/main/resources/schema.sql file and execute query.
- Create some gas stations
- INSERT INTO GasStation (id, name) VALUES (1, 'Test1')
- INSERT INTO GasStation (id, name) VALUES (2, 'Test2')
- Deploy the project
- Open SoapUi
- Create SoapUi project
- Name: WebService
- URL: http://localhost:8080/switchyard-bp/WebService?wsdl
- Execute request, valid values for stationType are:
- STATIC
- DB
- Enjoy