Skip to content

spring-projects/spring-ws-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Web Services Samples

Spring Web Services is a product of the Spring community focused on creating document-driven, contract-first Web services. This repository contains sample projects illustrating usage of Spring Web Services.

Spring Boot 3.0 + Spring WS 4.0

This version of the samples focuses on Spring WS 4.0, the generation provided by Spring Boot 3.0. For Spring WS 3.1 (Spring Boot 2.7) samples, check out https://github.com/spring-projects/spring-ws-samples/tree/1.0.x.

Sample Applications

The following sample applications demonstrate the capabilities of Spring Web Services. See the README within each sample project for more information and additional instructions.

  • airline - a complete airline sample that shows both Web Service and O/X Mapping functionality in a complete application

  • echo - a simple sample that shows a bare-bones Echo service

  • mtom - shows how to use MTOM and JAXB2 marshalling

  • stockquote - shows how to use WS-Addressing and the Java 6 HTTP Server

  • tutorial - contains the code from the Spring-WS tutorial

  • weather - shows how to connect to a public SOAP service

Running the Server

Most of the sample apps can be built and run using the following commands from within the server folder.

$ ./mvnw spring-boot:run

Or alternatively, run the following to create runnable JAR file that will run anywhere there’s a JDK:

$ ./mvnw package

Running the Client(s)

Most of the sample apps have a separate client directory containing clients that connect to the server. You can run these clients by using the following command from within each of client subdirectories:

$ ./mvnw spring-boot:run

License

Spring Web Services is released under version 2.0 of the Apache License.