In this case study we dive into the technology and continue this story about how a large Dutch insurer took over another insurer. Legally, the takeover was all wrapped up, but they were at the start of a complex systems integration. Besides integrating systems, the insurer also chose to focus on simplification and migrated some of its integrations from SOAP to REST APIs. In this technical case study we discuss the options we see for this and which ones we applied.
When we talk about simplification through REST, the flip side is that you sometimes lose functionality. SOAP comes with all kinds of bells and whistles, but they are there for a reason. Reliable messaging, which means a message is processed exactly once to prevent duplicates, is part of SOAP, for example. But it is not part of REST.
A second point to watch is the granularity of your data. In SOAP, a customer is returned together with their address details, for example, whereas with a REST API you often split these up and treat a customer and an address as two separate objects. So when converting from SOAP to REST, you need to take mitigating measures for this. In this insurer's case, we use an integration framework, such as a SOAP to REST proxy.
Are you struggling with a specific integration challenge? Or do you have a question about certain systems, applications or Integration as a Service?
We started with greenfield development: what should a REST API look like? What are the right collections, which objects do we need to access, and how do we get the applications to talk to each other? With the insurer's wishes and needs in mind, we described a migration path for converting SOAP to REST, with the integration framework as the enabler of the migration.
For REST, the standard data format is usually JSON, and for SOAP it is XML. In the integration framework we placed REST alongside SOAP, as a kind of second entry point to the service, with the same code and granularity. What matters most here is that the functional data stays the same in substance. A mapper then translates XML to JSON or the other way around, and makes sure the functional data of the message reaches the service.
In the integration framework we validate the JSON messages against the same schema that is used for the SOAP validation. That means we look at which data comes in from a functional point of view, and it matters less how the data comes in. We also add a duplicate check: the header gets a message ID, so a message is only processed once via REST.
Another use case for this Dutch insurer was implementing a SOAP to REST proxy. The insurer wanted to use a REST endpoint, but the provider had not set one up. So we added an adapter that translates the message from SOAP to REST and also performs a duplicate check.
We placed that adapter in front of the application, so REST is easily converted to SOAP and the other way around. The big advantage of a SOAP to REST proxy is that it creates room for a migration scenario in which it is not known who all the consumers are. With a proxy, you can then migrate consumers one by one.
We did not have to change anything in the insurer's IT landscape, and yet we made the step to a REST architecture. In addition, the integration framework has given the insurer more insight into its components. The management console shows errors and exactly what went wrong, so you can fix them quickly and structurally.
The insurer's entire environment has not yet moved to REST, but all future steps are easy to facilitate with the integration framework. Because it decouples the technical layer from the functional layer, you have much more flexibility in retrieving and sharing data from different sources. That means you can easily connect new applications to the old environment. With the integration framework and the first REST APIs in place, the insurer is ready to move fully from SOAP to REST.
We (and our customers) are big fans of our Frank!Framework, the foundation for integrating business systems and applications. Not familiar with our integration framework yet? Watch this video and find out how easily you can generate APIs with the Frank!Framework. Want to get started yourself? Request a Proof of Concept at an attractive discount, no strings attached.
Take the step to advanced systems integration with the Frank!Framework