Design pattern to use when multiple calls to the webservices are done

Design pattern to use when multiple calls to the webservices are done

I am developing a microservice which calls 4 different soap webservices one after the other and response of each soap service is fed as the input request to the subsequent soap webservice. The scenario is explained as below:

I am developing a microservice which calls 4 different soap webservices one after the other and response of each soap service is fed as the input request to the subsequent soap webservice. The scenario is explained as below:

micrservice
|------------------> soap service 1
       if(soap_Service1_Response.indicator is 1)
        {
                 call soap webservice 2(responseOfsoapService1)
         }
        else if(soap_Service1_Response.indicator is 2)
        {
                call soap webservice 3(responseOfsoapService2)
        }
         ........and so on.

Which design pattern to use in this scenario so that multiple if and else need not to be written? Thanks in advance

java rest web-service design-pattern

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Web Design Service in USA

Looking for designers for your business website design? We at Data EximIT offer our best **[web designing services in the USA](https://www.dataeximit.com/services/ "web designing services in the USA")** with the aim of craft your website more...

Proxy Design Pattern in JAVA

In this blog, we will discuss Proxy Design Pattern, its example, and how it is different from the other design patterns. But, it’s important to have an understanding of the design patterns first. You can refer here.

Java Design Patterns for Beginners - Design Patterns in Java

"Java Design Patterns for Beginners - Design Patterns in Java - Design Patterns Tutorial" will provide you with detailed knowledge about Java Design Patterns and along with it. Why do we need Design Patterns? Structure of Design Patterns. Types of Design Patterns. Creational Design Patterns. Factory Design Pattern. Overview of Design Patterns

Design Patterns for Beginners with real-world Examples

Design Patterns for Beginners with real-world Examples. When do you use Design Patterns? How do you implement different Design Patterns in Java? What are Design Patterns? Why do you use Design Patterns? What are the different types of Design Patterns? When do you use Design Patterns? What are the real-world examples for Design Patterns.

Creating a REST Web Service With Java and Spring

In this article, you'll learn how to create a REST Web Service With Java and Spring