Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

O/X Mapping question

Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic