Quick revision
The short answer
Not as a blanket project. We decide service by service, rewriting only where there is business value: new features, a costly or insecure old stack, or partners asking for REST; SOAP services that work and rarely change can stay. New clients get REST through a facade while partners keep SOAP until their contracts end, the old runtimes (javax stacks, JAX-WS from the old JDK, old application servers) are migrated regardless of protocol, deprecations are negotiated with partners, and progress is measured by traffic moved and cost removed rather than services rewritten.
What to remember
In this answer, we saw that rewriting 70 SOAP services as REST is a portfolio decision, not a protocol decision. We inventory the services, retire the unused ones, keep the stable ones while upgrading their runtime, put REST facades in front of the ones new clients need, and rewrite only where there is business value. JAX-WS leaving the JDK, the move from javax to jakarta and unsupported application servers force runtime work regardless of protocol, partner deprecations are negotiated with dual support, and progress is measured by traffic moved and cost removed.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Not as a blanket project. We decide service by service, rewriting only where there is business value: new features, a costly or insecure old stack, or partners asking for REST; SOAP services that work and rarely change can stay. New clients get REST through a facade while partners keep SOAP until their contracts end, the old runtimes (javax stacks, JAX-WS from the old JDK, old application servers) are migrated regardless of protocol, deprecations are negotiated with partners, and progress is measured by traffic moved and cost removed rather than services rewritten.
Why this question is asked
A portfolio of 70 fifteen-year-old SOAP services is a common inheritance in banks, insurers, logistics and public-sector suppliers. The question tempts a simple answer, either 'rewrite it all in REST' or 'never touch what works', and both are expensive mistakes. Interviewers ask it at this level to see how we turn a technology question into a portfolio decision with a multi-year plan. In this answer, we will separate the protocol from the real problems, sort the services by value, use a facade to serve new clients, deal with the runtime that must move anyway, plan partner deprecations, and decide how to measure progress.
1Separating the Protocol From the Real Problem
SOAP itself is rarely the problem. A SOAP service that has served the same partners reliably for years, with a stable WSDL, is cheap to keep. The real problems are usually around it: the service runs on an old application server that is out of support, it uses javax.xml.ws APIs that came from a JDK we can no longer run, nobody understands the code, or every small change takes a month because the build is fragile.
So the first step is to ask, for each service, what is actually hurting. Rewriting to REST fixes only one of those problems, the interface style, and it creates a new one: every consumer must migrate. A rewrite that does not address the real pain spends years and leaves the company in the same place.
2Sorting the 70 Services by Value
We start with an inventory: for each service its traffic, consumers (partners or internal), how often it changes, the runtime it depends on, known security issues, operating cost and planned features. That takes a few weeks and is worth it, because the 70 services are not one problem but several groups of different problems.
Then we place each service in one of four groups. Keep: it works, changes rarely and its runtime can be updated in place. Facade: consumers want REST, but the SOAP implementation is fine for now. Rewrite: there is real business value, such as major new features, high cost or security problems the old code cannot fix. Retire: traffic is near zero or a newer system already covers it. In a typical portfolio the retire group is surprisingly large, and it gives the cheapest wins.
| Group | Signal | Action | Example count |
|---|---|---|---|
| Retire | Little or no traffic, duplicated elsewhere | Confirm with logs, switch off | 15 |
| Keep | Stable, rarely changes, runtime can be updated | Upgrade runtime, leave protocol | 25 |
| Facade | New clients want REST, logic is fine | REST facade in front, SOAP stays | 20 |
| Rewrite | New features, high cost or security debt | Rebuild with REST, migrate consumers | 10 |
3A Facade for New Clients
For the facade group, we put a thin REST service in front of the SOAP one. New internal clients and new partners call the REST API, and the facade translates each call into the existing SOAP operation. Partners that already integrate via SOAP keep calling the old endpoint, so nobody is forced to change.
The facade buys time and options. Once all new traffic goes through it, we can later replace the SOAP implementation behind it, piece by piece, without any client noticing. This is the strangler fig approach: the new system grows around the old one until the old one can be removed. It also gives us one place to add modern authentication, rate limits and observability for the REST side.
6 messages in order. Play them, or step through them one at a time.
New clients use REST, existing partners keep SOAP, and the implementation can later move behind the facade.
4The Runtime Has to Move Anyway
Regardless of protocol, fifteen-year-old services carry a runtime that is ending. JAX-WS and JAXB were removed from the JDK in Java 11, so services that relied on the built-in versions cannot simply move to a supported Java release without adding the libraries. The javax namespace has been replaced by jakarta, so frameworks such as Spring 6 and later, current CXF and current application servers no longer accept javax-based code. And old application server versions are out of support and miss security fixes.
This work is mandatory for every service we keep or put behind a facade, and it is often the bigger part of the budget. The good news is that it is mechanical: tools such as OpenRewrite automate much of the javax to jakarta change, and Jakarta XML Web Services implementations like CXF or Metro keep the SOAP interface identical, so partners see no difference.
5Negotiating Deprecation With Partners
For services we rewrite or retire, partners must move, and partners have their own budgets and release cycles, sometimes yearly. So we treat deprecation as a negotiation, not an announcement. We give each partner a timeline that fits its contract, for example a twelve-month dual-support period where both the SOAP and the REST interface work, a sandbox for the new API on day one, and a named contact. We track each partner's traffic on both interfaces.
Some partners will not move before their contract renewal, and that is acceptable: the SOAP endpoint, or a SOAP facade in front of the new service, stays until then. Contracts signed from now on should include API lifecycle terms, such as a minimum notice period, so the next migration is easier.
6Planning Over Several Years and Measuring Progress
A realistic plan runs over three or four years. In the first year we build the inventory, retire the unused services, put the platform for facades and runtime upgrades in place, and start with the services whose old runtime is the biggest risk. In the second and third years we upgrade the keep group, build facades, and rewrite the few services with real business value. The last phase removes old endpoints as partner contracts end.
The measure of success matters, because it steers behaviour. If we count services rewritten, teams will rewrite easy services nobody needed changed. Instead we measure the share of traffic served through modern interfaces, the operating and licence cost removed, the number of services on unsupported runtimes, and incidents. A year in which 15 services were retired and the riskiest application server was switched off is a better year than one in which ten easy services were rewritten.
7Follow-up questions
When is a full rewrite the right choice?
When the service is about to need significant new features, when its code is so hard to change that every feature is slow and risky, or when it has security problems that cannot be fixed in the old stack. Then the rewrite pays for itself through the features. Even then, we rewrite behind the facade so consumers move on their own schedule.
How do you convince the business to fund the runtime upgrades?
By showing the risk in business terms: out-of-support servers with no security patches, audit findings, and the cost of an incident. Runtime upgrades have no visible feature, so tying them to risk and to cost removed, such as licences for old application servers, is what gets them funded.
8Conclusion
In this answer, we saw that rewriting 70 SOAP services as REST is a portfolio decision, not a protocol decision. We inventory the services, retire the unused ones, keep the stable ones while upgrading their runtime, put REST facades in front of the ones new clients need, and rewrite only where there is business value. JAX-WS leaving the JDK, the move from javax to jakarta and unsupported application servers force runtime work regardless of protocol, partner deprecations are negotiated with dual support, and progress is measured by traffic moved and cost removed.
Open with
I would not rewrite them as a blanket programme. SOAP that works and rarely changes is cheap to keep, so I would decide per service based on business value.
Then, if they want more
I would start with an inventory: traffic, consumers, change frequency, runtime, security issues and cost.
That usually sorts the 70 into four groups: services to retire because traffic is near zero, services to keep with a runtime upgrade, services to put behind a REST facade because new clients want REST, and a small group to rewrite because they need new features or the old code is too costly or insecure.
The facade lets new clients use REST while partners keep SOAP until their contracts end, and later I can replace the implementation behind it without anyone noticing.
Separately, the runtime has to move anyway: JAX-WS left the JDK in Java 11, current frameworks need jakarta instead of javax, and old application servers are out of support, so I would fund that work for every service we keep, with tools like OpenRewrite.
For partners, I negotiate timelines with dual support and sandboxes, and add lifecycle terms to new contracts. And I measure progress by traffic moved to modern interfaces, cost removed and unsupported runtimes eliminated, not by the number of services rewritten.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Java 11
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Framework reference, Spring Web MVC
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Your company still runs 70 SOAP services built 15 years ago, used by partners and...": https://scrivio-interview-library.netlify.app/spring-boot/rest-api-design/9049a56e80/