Using more input ports and protocols

In this tutorial we will show how to add more input ports in a service. In such a way, it is possible to enable the service to receive messages with different formats and protocols by exploiting the same behaviour. In particular, we modify the service AdvancedCalculatorService of the tutorial Using more than one dependency as depicted in the following diagram:

Besides the existing port for protocol http, Input ports will be incrementally added for the following protocols:

All the examples may be consulted at this link