Skip to content

gregturn/learning-spring-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  1. Checkout repo

  2. cd learning-spring-ws-server

  3. mvn compile to generate XSD-driven classes

  4. mvn spring-boot:run or run Server.main() directly from your IDE to launch the SOAP service

  5. curl --header "content-type: text/xml" -d @down.xml https://localhost:8080/ws > output.xml && xmllint --format output.xml && rm output.xml to send a DOWN message

  6. curl --header "content-type: text/xml" -d @up.xml https://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.

  1. In another shell, cd learning-spring-ws-client

  2. mvn spring-boot:run

Check out the output.

Big differences:

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

About

Tinker around with Spring WS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages