There is an object with a number of text fields and an associated file. You need to implement the transfer of this data from the client to the server. The server modifies part of the fields, and possibly the file, and sends the data back to the client. Sending data must be implemented via the HTTP POST method. If I understand correctly, you can pack it all into an xml file (can you add an associated file to the xml file in addition to text fields?). What library is relevant to use now to work with xml in Java? How to send this xml file to the server and get the modified xml file in response? The implementation must be in Java, and the client, and the server. I would be very grateful for the names of libraries that can be used to solve this problem.

    2 answers 2

    You can send http Post-message using Java SE.

    C XML can also be run using Java SE tools (The Java API for XML Processing (JAXP)): SAX, DOM, StAX. The choice of technology is very dependent on the objectives and plans for the future development of the application.

      If you want to send via xml, then you need to use the RESTful architecture. This architecture is a set of solutions related to the transfer of information about the resource from the client to the server, and vice versa. REST resources can be represented in almost any form, for example: XML, JSON, and even HTML. The architecture provides for the organization of the transfer of a resource from one application to another. I advise you to contact Spring MVC. It uses a very flexible model for creating controller classes.