SOAP Web Services with Apache CXF and Spring Boot

This post is based on one I wrote a few years ago about building contract first web services with Apache CXF and Spring. The previous post didnt use Spring Boot and most of the Spring and CXF configuration was via XML. This post moves things forward a bit by using the latest version of CXF and Spring Boot. Sample App We're going to build a simple Spring Boot app that exposes SOAP web service using Apache CXF.  The service will have a single operation that takes an account number and returns bank account details. If you're impatient and want to jump ahead you can grab [...]

By |2019-10-02T08:14:28+01:00June 19th, 2019|Spring, Spring Boot, Web Services|0 Comments

Handling Binary Data in SOAP with MTOM

SOAP Services With MTOM SOAP is an XML based protocol which means that all data inside the SOAP envelope must be text based. If you want to include binary data in a SOAP message, it too must be text based. To achieve this you can convert binary data to a base64 encoded string and simply embed the string inside the SOAP message. The diagram below shows a sample SOAP message with binary data embedded as a base64 string. Sending Binary Data with SOAP Without MTOM While this is a simple approach for dealing with binary data with SOAP, there are a few things [...]

By |2019-09-05T07:24:05+01:00June 19th, 2017|Web Services|0 Comments

Apache CXF – Contract First Web Services

Apache CXF - Contract First Web Services I wrote a post a few years ago detailing a step by step guide to building a contract first web service using Spring.  I recently started working with Apache CXF and thought it would be worth putting together a more up to date post, this time using CXF. We'll create a fictitious Account Service that takes a single account number parameter and returns associated account information. Although the sample service will be very simple, the approach taken should provide you with a solid foundation upon which to build real world services. Source Code The full source code for this post [...]

By |2019-02-12T07:29:21+00:00October 5th, 2016|Spring Boot, Web Services|0 Comments
Go to Top