Example application of SOAP Web Service with Spring Boot
Based on the tutorial: https://spring.io/guides/gs/producing-web-service
- For unit test phase, you can run:
mvn test
- Testing via cURL:
cd src/test/resources
curl --header "content-type: text/xml" -d @request.xml http://localhost:9090/sbwsExample/ws/calculatorDemo
In order to run the API, run the jar simply as following:
mvn package
java -jar spring-boot-ws-example-1.0.0-SNAPSHOT.jar
or
mvn spring-boot:run
By default, the API will be available at http://localhost:9090/sbwsExample/ws/calculatorDemo