How to get XML response?

Add below in Transaction class:


In controller:


URL: http://localhost:8080/transaction/getTransDoneBy


Likewise there will be many flavors you can see below is complete snap of controller.