R
R
Roger Martino2017-11-02 16:57:41
Java
Roger Martino, 2017-11-02 16:57:41

How to do client-server communication?

Hello!
What is the best way to organize interaction between the client and the server if the client does not have information about the server modules, but only has data in the form of text:
1. The name of the user who sends the request
2. The user's secret token
3. The module to which the request goes
4. Command name
5. Parameters
And the server must connect the request from the client with the code on the server and send a response already from the text data by reflection or other mechanisms.
I'm interested in what the server should be. soap? And how to submit a request. XML?
What do you advise?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-11-02
@rojermartino

I advise you to start with the basics - networking programming on sockets. A sign of the full completion of the first stage can be considered the ability to write a simple http-server. After that, you should get acquainted with the methods of web development in Java. Then read about REST and practice with it. You can also play around with SOAP to broaden your horizons and get acquainted with history. And after a month / six months / a year of such practice, re-read your question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question