Skip to content
Ranjithrajd edited this page Aug 14, 2015 · 5 revisions

Rest xml response has been implemented Need to create model with xml elements annotation to publish the xml. Taken xml model classes from XMLParser project. Refer below,

SimpleXMLToObject

Renamed the ObjectFactory class to OrderFactory.

@Autowire annotations were used to link the service class in the controller.

Order REST api url : http://localhost:8080/springfire/rest/order/

XMLParser has been written , to load xml file and parse it as collection of objects. XMLParser annotated as @component Spring bean defined to load xml file from class path as InputStream.

Clone this wiki locally