How Java Web Service returns data in JSON format

first contact with WebService does not quite understand
the result of the xml format of the response of the existing project interface, how to add the interface and return the result in json format without changing the existing project interface.

Jun.29,2021
The standard protocols adopted by

webservice are all in the form of xml wsdl.
returns json instead of webservice.


you can sit as an agent on the basis of webservice

there are two ways for agents
1. Create a new project
2. In the original project, separate departments

Menu