Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes RestTemplate - How can I? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "RestTemplate - How can I?" Watch "RestTemplate - How can I?" New topic
Author

RestTemplate - How can I?

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

My RestTemplate client needs to "bring up" a HTTP Request Form (for input) created by the Web Service, enters data and hit the SEND button via the browser. The Web Service will process Form data, create an HTTP Response message in XML and send back to the RestTemplate client.

Two questions:

1. How can the RestTemplate client "bring up" this Form (*.jspx in the WS) created by the Web Service to the browser?
2. From the Web Service's HttpRequest controller at POST (after input data), how can I trigger the GET, POST handlers from the Web Service's HttpResponse controller?


My Client App:

My demo client POJO:

HTTP Request Controller in the Web Service:




Any help will be greatly appreciated.








 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RestTemplate - How can I?