This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

Marshalling plumbing - off base

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 am using Marshaller/UnMarshaller and @RequestBody and @ResponseBody to render HTTP messages. Both request and response bodies have an XML string.

After the request body has been retrieved using @RequestBody to a POJO class object, I need to process the XML data and create an HTTPResponse with an XML string to send back to the originating URL.

Then, subsequently display the XML response data on a web page.

My question is:

In my controller using MVC processing an HTTPRequest POST method, what should I return? I have no View. I just want to return the HTTPResponse message with a new XML string send back to the Requester and then "render"/display the HTTPResponse message on a web page.

My web service sends requests and receives responses, hence need to handle both.

I am new to this, please help.

In my controller:

In my webmvc_config.xml:

How off-base am I on the plumbing above? Please point out problems or the right way to do it.

I'd greatly appreciate your help.
No more fooling around. Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic