posted 12 years ago
Hi,
I want to add support to map incoming HTTP request to an XML object (XML or XSD here?), process the data and translate it back to XML (XML or XSD here?) for HTTP Response. This communication is with a mobile device but I want to display the HTTP request body (XML or XSD here?) on a web page as is when it comes in and the HTTP response body also on a web page before sending out as HTTP response.
These 2 web page can be displayed as just text.
I am using @RequestBody and @Reponsebody to do the O/X mapping. I have a POJO defined with all the fields within the Request and same with Reponse.
I am also using @XLMElement hoping that the POJO will transform itself to/from XML format.
In the Controller, I return NULL instead of Model and View hoping that the HTTP message will be sent out and not go to a view.
I am not sure if this is the way to do it and not entirely clear how this should be put together.
I'd like to run this by you folks to see if I am making sense. Also, help would be greatly appreciated to straighten me out and give me some much needed guidance.
Many Thanks in advance.