This project is a sample app used to experiment with Spring WS.
Before running the client, you’ll want to start up the server.
-
Checkout repo
-
cd learning-spring-ws-server -
mvn compileto generate XSD-driven classes -
mvn spring-boot:runor runServer.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.xmlto 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.xmlto send an UP message
Big differences:
-
This part uses spring-boot-starter-ws and wsdl4j.