When the consumer makes a Rest Call to Provider, Provider Should return the response depends on consumer Request.How to construct REST API to Support both XML and JSON.
Discussion posts and replies are publicly visible
you should use spring boot to develop rest api and add dependency
<dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-xml</artifactId> </dependency>
Now spring boot will support for both format xml and json .
www.javavogue.com/.../