I would like to know if we can design a system which will communicate to other system via restful web service as well as via socket communication?
Actually my requirement is that some messages in the form of xml or json will come as input to the system and it will generate response accordingly after performing some business operations. Along with this, a socket communication can also happen with other system. That system may send message in bytearray or different format to this unit.
Now can such unit be developed where it can support both socket communication as well as xml/json?