Tutorial how to create, test, deploy, monitor SOAP-Webservices using Spring Boot and Apache CXF
Java
Latest commit 2e5c2bb Nov 10, 2016 @jonashackt dispatcherServlet named cxfServlet in the remaining projects to not s…
…truggle with Boot´s actuator
Permalink
Failed to load latest commit information.
step10_simple_app_with_cxf-spring-boot-starter Added Custom-Error-Ids, that CustomFaultBuilder implementing Class us… Oct 11, 2016
step1_simple_springboot_app_with_cxf Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step2_wsdl_2_java_maven Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step3_jaxws-endpoint-cxf-spring-boot-orig-wsdl Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step3_jaxws-endpoint-cxf-spring-boot Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step4_test Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step5_custom-soap-fault Merge pull request #1 from bijukunjummen/dispatcherServletToCxfServlet Nov 3, 2016
step6_soap_message_logging dispatcherServlet named cxfServlet in the remaining projects to not s… Nov 10, 2016
step7_soap_message_logging_payload_only dispatcherServlet named cxfServlet in the remaining projects to not s… Nov 10, 2016
step8_logging_into_elasticstack dispatcherServlet named cxfServlet in the remaining projects to not s… Nov 10, 2016
step9_soap_message_logging_into_custom_elasticsearch_field dispatcherServlet named cxfServlet in the remaining projects to not s… Nov 10, 2016
.gitignore Even simpler Jan 15, 2016
LICENSE Initial commit Jan 15, 2016
README.md README blog post Links updated Oct 12, 2016
pom.xml Initial step10 for next blog post Sep 30, 2016

README.md

tutorial-soap-spring-boot-cxf

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

Every following step builds upon the preceding one. So if you start e.g. with step 3, you´ll have all of step 1 & 2 covered in the code.

The Steps 1-3: published accompanying the blog-posts: Spring Boot & Apache CXF – How to SOAP in 2016 (or german version: Spring Boot & Apache CXF – SOAP ohne XML? )

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)

The Steps 4: published accompanying the blog-posts: Spring Boot & Apache CXF – Testing SOAP Web Services (or german version: Spring Boot & Apache CXF – SOAP-Webservices testen )

step4_test

Unit-, Integration- and Single-System-Integration-Tests with Spring (Boot) and Apache CXF

The Steps 5: published accompanying the blog-posts: Spring Boot & Apache CXF – XML validation and custom SOAP faults (or german version: Spring Boot & Apache CXF – XML-Validierung und Custom SOAP Faults )

step5_custom-soap-fault

Custom SOAP faults after XML schema validation, that are valid against an XSD itself and will be fired, regardles what will enter your endpoint :)

The Steps 6-9: published accompanying the blog-posts: Spring Boot & Apache CXF – Logging & Monitoring with Logback, Elasticsearch, Logstash & Kibana (or german version: Spring Boot & Apache CXF – Logging & Monitoring mit Logback, Elasticsearch, Logstash & Kibana )

step6_soap_message_logging

How to configure SOAP message logging on Apache CXF endpoints

step7_soap_message_logging_payload_only

Tailor Apache CXF´s SOAP message log statements<

step8_logging_into_elasticstack

Elasticsearch, Logstash, Kibana - How to log SOAP messages in 2016, including:

  • Configuring the logstash-logback-encoder

step9_soap_message_logging_into_custom_elasticsearch_field

  • Logging SOAP messages into their own Elasticsearch fields
  • Correlating all Log-Events concerning a specific SOAP request

The Steps 10: published accompanying the blog-posts: Spring Boot & Apache CXF – SOAP on steroids fueled by cxf-spring-boot-starter (or german version: Spring Boot & Apache CXF – Von 0 auf SOAP mit dem cxf-spring-boot-starter )

step10_simple_app_with_cxf-spring-boot-starter