An open API service indexing awesome lists of open source software.

https://github.com/mariazevedo88/spring-boot-ws-example

An example application of SOAP Web Service with Spring Boot
https://github.com/mariazevedo88/spring-boot-ws-example

java java-11 java11 spring-boot spring-mvc spring-ws springboot

Last synced: 7 months ago
JSON representation

An example application of SOAP Web Service with Spring Boot

Awesome Lists containing this project

README

          

# spring-boot-ws-example

## About the application
Example application of SOAP Web Service with Spring Boot

**Based on the tutorial:** [https://spring.io/guides/gs/producing-web-service](https://spring.io/guides/gs/producing-web-service)

### Test

* For unit test phase, you can run:

```bash
mvn test
```

* Testing via cURL:

```bash
cd src/test/resources

curl --header "content-type: text/xml" -d @request.xml http://localhost:9090/sbwsExample/ws/calculatorDemo
```

### Run

In order to run the API, run the jar simply as following:

```bash
mvn package

java -jar spring-boot-ws-example-1.0.0-SNAPSHOT.jar
```

or

```bash
mvn spring-boot:run
```

By default, the API will be available at [http://localhost:9090/sbwsExample/ws/calculatorDemo](http://localhost:9090/sbwsExample/ws/calculatorDemo)