wood burning stoves 2.0*
The moose likes Web Services and the fly likes Marshalling plumbing - off base Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Marshalling plumbing - off base" Watch "Marshalling plumbing - off base" New topic
Author

Marshalling plumbing - off base

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Hi,

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.
 
wood burning stoves
 
subject: Marshalling plumbing - off base
 
Similar Threads
Controller redirect to another Controller?
Within the infrastruture - How to and Where - to intercept HTTP request and to send HTTP response?
@Responsebody for HTTP msg and a View to show the HTTP response msg
Respond to 3rd party requests
RestTemplate - How can I?