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

https://github.com/gregturn/learning-spring-ws

Tinker around with Spring WS
https://github.com/gregturn/learning-spring-ws

Last synced: 7 months ago
JSON representation

Tinker around with Spring WS

Awesome Lists containing this project

README

          

== Learning Spring WS

This project is a sample app used to experiment with Spring WS.

=== To run

==== Server

Before running the client, you'll want to start up the server.

. Checkout repo
. `cd learning-spring-ws-server`
. `mvn compile` to generate XSD-driven classes
. `mvn spring-boot:run` or run `Server.main()` directly from your IDE to launch the SOAP service
. `curl --header "content-type: text/xml" -d @down.xml http://localhost:8080/ws > output.xml && xmllint --format output.xml && rm output.xml` to send a DOWN message
. `curl --header "content-type: text/xml" -d @up.xml http://localhost:8080/ws > output.xml && xmllint --format output.xml && rm output.xml` to send an UP message

Big differences:

* This part uses *spring-boot-starter-ws* and *wsdl4j*.

==== Client

Assuming you have started up the server, you can run the client.

. In another shell, `cd learning-spring-ws-client`
. `mvn spring-boot:run`

Check out the output.

Big differences:

* This part uses *spring-ws-core*, NOT *spring-boot-starter-ws*.