/tutorial-soap-spring-boot-cxf

Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot and Apache CXF

Primary LanguageJavaMIT LicenseMIT

tutorial-soap-spring-boot-cxf

Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot, Apache CXF and JAX-WS - published accompanying the blog-posts: Spring Boot & Apache CXF – How to SOAP in 2016 (or german version: Spring Boot & Apache CXF – SOAP ohne XML? )

The Steps

step1_simple_springboot_app_with_cxf

Shows you, how to set up a simple Spring Boot Application and bootstrap a runnable CXF-Framework within the embedded Tomcat.

step2_wsdl_2_java_maven

Inherits a completely altered example WebService-Definition as WSDL inspired from the popular http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

Shows, how to generate JAXB-Classes from WSDL with JAX-WS Commons Maven plugin at build time - just run

mvn clean generate-sources

step3_jaxws-endpoint-cxf-spring-boot

First running SOAP-Endpoint with SpringBoot, CXF and JAX-WS. For testing use SoapUI (Testing our Service inside a Unittest will be part of a further Step).

step3_jaxws-endpoint-cxf-spring-boot-orig-wsdl

Full-Contract-First with using the generated JAX-WS Service-Class to not wrap WSDL and use original one - includes correct URL and TargetNamespace (recommended)