Rest 2 « Web Service « Spring Q&A





1. REST support    forum.springsource.org

2. Spring 3.0 REST Support    forum.springsource.org

Spring 3.0 REST Support Spring 3.0 is introducing REST Support, including support for URL Templates which is great. One of the things you can do with REST is return alternate representations ...

3. REST = MVC...really?    forum.springsource.org

REST = MVC...really? Hi, This post is for both Spring MVC & Spring Web Services actually. I'm a little confused by many posts I found on the Spring Forums while trying ...

4. mvc 3.0 and REST    forum.springsource.org

mvc 3.0 and REST In spring-web 3.0 they allow for REST and urls like this for example /person/1223 .. So I'm assuming for the servlet mapping we can't do something like ...

5. Can the REST in 3.0 co-exist with the old approach?    forum.springsource.org

I am thinking of use the REST feature in a new add-on of an existing Spring (including MVC) application. Can I have the REST without any change of the old Servlet ...

6. POST and REST    forum.springsource.org

POST and REST Hello friends! I am trying to build a solution around REST support under Spring 3.0 M3. So far, I have had no problems using GET method, but I ...

7. Spring 3.0 REST implementation DispatcherServlet cannot find mapping    forum.springsource.org

Spring 3.0 REST implementation DispatcherServlet cannot find mapping Hi, I'm trying to get a simple REST service to work with Spring 3.0 but keep bumping into a blocking error: No mapping ...

8. REST, GET and HiddenHttpMethodFilter    forum.springsource.org

REST, GET and HiddenHttpMethodFilter Hi- I am evaluating implementing an upgrade to a large REST API under Spring Web MVC/REST and am seeing a major limitation, am wondering what others have ...

9. Binding model attribute for REST style PUT request    forum.springsource.org

Binding model attribute for REST style PUT request I'm starting to look at the rest stuff in spring 3 and am wondering if something is possible. Typically using the non rest ...





10. REST POST with MultiValueMap is always empty    forum.springsource.org

REST POST with MultiValueMap is always empty I've just started working with Spring 3.0 M3 to write a REST API for use instead of an existing SOAP API. I followed the ...

11. Rest and URI templates    forum.springsource.org

12. Exception Handling with REST and Content Negotiation, best practice?    forum.springsource.org

Exception Handling with REST and Content Negotiation, best practice? Hi In my application, I am making use of Spring's REST support and using a ContentNegotiatingViewResolver so that I can serve different ...

13. CSS, Javascript files can't get loaded with the REST approach    forum.springsource.org

CSS, Javascript files can't get loaded with the REST approach In a new Spring project, I use the REST approach. And none of those CSS and Javascrpit files can get loaded. ...

14. ContentNegotiatingViewResolver: Responding to Bad REST Calls    forum.springsource.org

ContentNegotiatingViewResolver: Responding to Bad REST Calls Using 3.0.0.RC1, I've jumped through the hoops involved in configuring the ContentNegotiatingViewResolver using a BeanFactory per ViewResolver, as described here: http://forum.springsource.org/showthread.php?p=249805 Now I have a ...

15. Getting error when submitting form using SpringMVC and REST    forum.springsource.org

Getting error when submitting form using SpringMVC and REST Hello there, Created an online form in JSP using SpringMVC tag libraries. The controller for my form is a RESTful web service. ...

16. posting to rest service    forum.springsource.org

Hi Sorry if this has been answered before but this is a simple question. I have a registration form and would like to post the values to a restful webservice as ...





17. REST Support?    forum.springsource.org

Hi, Are there plans to support REST endpoints (Spring 3.0 MVC style)? This would be to aggregate a variety of SOAP services into a RESTfull service. Thanks, Thomas

18. REST delete    forum.springsource.org

REST delete Hi, I'm trying to do some test app with REST support. I'm using spirng 3.0.0.RC1. GET and POST method works fine but problem is with DELETE method. Instead of ...

19. MVC 3.0 ReST stateless    forum.springsource.org

i'm building a web app with a ReST API. I got most of working. The only thing i don't know how to do is how to bind an instance of the ...

20. Spring Integration 2.x REST Service Call Question    forum.springsource.org

Spring Integration 2.x REST Service Call Question So, I'm working on learning Spring Integration, and I'm hacking on the "quote" example. What I'd like to do is create a new version ...

21. [REST] @RequestBody with an empty body    forum.springsource.org

[REST] @RequestBody with an empty body Hi, I'm developing a RESTful application with the REST Spring3 annotations (really cool btw). My method has a parameter mapped with @RequestBody, and all is ...

22. ClientCertificates, AJAX, and REST    forum.springsource.org

ClientCertificates, AJAX, and REST My web application currently has two dispatcher servlets. All normal browser requests for html pages use the dispatch servlet with mapping *.htm and all AJAX/Rest requests use ...

23. Call a REST web service from Spring Integration    forum.springsource.org

Call a REST web service from Spring Integration I am trying to call a REST web service through Spring Integration, i.e. Spring Integration will act as my client to the REST ...

24. Problem with forwarding in Spring 3.0/REST    forum.springsource.org

Problem with forwarding in Spring 3.0/REST Hi all, I have a slight problem with my navigational concept in a web application that I am developing. I am using the Spring 3.0 ...

25. Spring WS with REST - Understanding vision and their separation    forum.springsource.org

Spring WS with REST - Understanding vision and their separation I know this question has been asked many times and I hope I can get some clarifications. But just like the ...

26. REST: How to fill "Location:" header correctly    forum.springsource.org

Is there a preferred way to fill the Location: header? When I process a POST request for a resource, I want to return the URL of the newly created resource. Do ...

27. SOAP interface for REST @MVC Web Service?    forum.springsource.org

SOAP interface for REST @MVC Web Service? Hi all - After creating a RESTful webservice using Spring 3.0 @MVC, I feel I should also provide a SOAP interface for those "shops" ...

28. Rest mvc fails with param HttpServletRequest    forum.springsource.org

Rest mvc fails with param HttpServletRequest spring 3.0.0-release @Controller @RequestMapping("/file") public class ... { ... @RequestMapping(... public void getFile(..., HttpServletResponse response) { ... --- this works fine with Jetty. On putting ...

29. Spring REST Message Conversion    forum.springsource.org

Spring REST Message Conversion Hi all, I am trying to create a Spring REST service in which users can make PUT requests to update objects. However so far I'm not able ...

30. REST Client only accepts text/* but want to return XML    forum.springsource.org

REST Client only accepts text/* but want to return XML I have a RESTful webservice which returns XML and JSON but there is a case where a client sends an accept ...

31. Posting XML to REST service, Not marshalled to object    forum.springsource.org

Mar 25th, 2010, 05:41 PM #1 mcoventon View Profile View Forum Posts Private Message Junior Member Join Date Mar 2010 Posts 2 Posting XML to REST service, Not marshalled to object ...

32. Is the REST support in Spring 3's MVC Framework production quality yet?    forum.springsource.org

Is the REST support in Spring 3's MVC Framework production quality yet? Hi all, Since Spring 3 was released in December last year, I have been trying out the new REST ...

33. Spring 3 REST PathVariable issue    forum.springsource.org

Spring 3 REST PathVariable issue I have been using spring to build a restful webservice successfully for awhile, but I have just run into a snag. My Controller specifies the following ...

34. Soap and rest webservices question    forum.springsource.org

Hi , We have been using spring webservices in prod for a while. We would like to create restful web services. I know spring 3.0 supports rest. Whats the best frame ...

36. REST ResponseEntity and Custom HttpHeaders    forum.springsource.org

REST ResponseEntity and Custom HttpHeaders I am trying to send custom HttpHeaders to provide information to my REST client about checked exception in the provider application This is the RESTful controller ...

37. Example of calling rest service without RestTemplate?    forum.springsource.org

Here's a config snippet of calling Yammer's RESTful API with a custom request mapper and request executor Code:

38. Generating REST documentation    forum.springsource.org

Generating REST documentation Hi All, I am using Spring 3 and I am using the Spring MVC annotations to create a RESTful API. The problem I am facing is that I ...

39. Please add REST support to Spring-WS    forum.springsource.org

Please add REST support to Spring-WS Here is a common requirement: I have an existing Spring Web Service that I want to add REST support to Now looking at Spring 3 ...

40. Rest service composition?    forum.springsource.org

Rest service composition? All, I am fairly new to SI and would like to know if synchronous service composition is one of the patterns that SI supports. I have seen documentation ...

41. Spring 3.0 MVC and REST    forum.springsource.org

Spring 3.0 MVC and REST Hi, I have just started using all the new features of Spring 3.0 MVC and have built a quick application with annotations like @Controller etc... I ...

42. Nested REST    forum.springsource.org

In my domain I have an Event which has many Registrations. I have an Event controller and all is fine there but in terms of Registrations should I create a new ...

43. error handler for rest API    forum.springsource.org

error handler for rest API Hello! I have generated Roo app and all works great. I added a controller for handling my API with @RequestMapping("/api/*"). The app has Roo generated views ...

44. Rest Services    forum.springsource.org

We have some Rest services defined in annotated controllers. For testing, we've been asked to create html pages that: 1) list all the services available 2) provide description of a particular ...

45. Sending reserved characters in Rest Post...    forum.springsource.org

Sending reserved characters in Rest Post... Hi There. I'm pretty new to spring, and am using SpringSource and Roo to build a small web application. My Rest calls to my web ...

46. REST Support and Portlets?    forum.springsource.org

47. Building REST service for returning images to browser    forum.springsource.org

Building REST service for returning images to browser Hi, I'm having difficulty implementing a small REST controller for serving images. Spring 3 has the BufferedImageHttpMessageConverter which would seem to fit the ...

48. REST and POST with XStream    forum.springsource.org

REST and POST with XStream I'm using XStream instead of Jaxb to do the conversion. Everythings works fine with GET methods, but I receive a Code: org.springframework.web.client.HttpClientErrorException: 415 Unsupported Media Type ...

49. auto-generate spring rest api docs?    forum.springsource.org

I'm developing a spring 3 rest api (with possible future soap additions) and I'm looking for a way to auto-generate api documentation along with my builds such that changes to the ...

50. ACL'ing difficulty with REST/CRUD    forum.springsource.org

ACL'ing difficulty with REST/CRUD My question revolves around use of Spring Security 3's ACL'ing capabilities in the context of CRUD operations that have been implemented RESTfully. For the sake of example, ...

51. MVC - with and without REST    forum.springsource.org

MVC - with and without REST I am trying to use same controller method for moth MVC type and REST type implementation. That is, currently, I am having these 2 methods, ...

52. Streaming in Rest - Spring 3    forum.springsource.org

53. Broken Link in REST Request    forum.springsource.org

Broken Link in REST Request when I try to get values from URL with @MVC I get two types of problems: 1. Special symbols like , , are not right ...

54. Artifactory REST API with Spring 3 RestTemplate    forum.springsource.org

55. Spring 3.0 Rest Issue    forum.springsource.org

Spring 3.0 Rest Issue I have run into a issue where I am using a annotated controller using rest urls and a SessionAttribute for the entity. Here is my setup for ...

56. Use of @ResponseBody or new .toJson for REST apps    forum.springsource.org

Since sorting out some issues I was having in the past, I've been using @ResponseBody with Jackson Mapper on my classpath when creating a REST app that needed to output objects ...

57. Help please. Spring 3 Rest Test    forum.springsource.org

@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:resources-*.xml" }) public class ControllerResourcesTest { //@Autowired private MyController myController; @Test public void handleGetRequest() throws Exception{ assertTrue(true); } }

58. Spring MVC + REST    forum.springsource.org

Spring MVC + REST Hi, I am very new to the Spring framework (I'm more used to RESTEasy, JBoss, Apache Commons, JAXB, etc.) I am designing a system with the current ...

59. Connection being reset reading from REST service.    forum.springsource.org

Nov 3rd, 2010, 07:03 AM #1 redsnappa View Profile View Forum Posts Private Message Junior Member Join Date Jun 2010 Posts 13 Connection being reset reading from REST service. Hi, I ...

60. Post Multipartfile to Rest Service using rest template    forum.springsource.org

Post Multipartfile to Rest Service using rest template Hi guys, I am working with Spring 3 and RestTemplate. I have basically, two applications and one of them have to post values ...

61. HttpMediaTypeNotSupportedException REST Spring 3.0    forum.springsource.org

HttpMediaTypeNotSupportedException REST Spring 3.0 I am doing the following Sending a REST request via RestTemplate from Application A to Application B. But Application B does not seem to be processing the ...

62. REST client    forum.springsource.org

Hi, I'm trying to figure how to build a client that allows users to access and view some information from an API on the web. I've seen the netbeans tutorial on ...

63. @RequestBody and REST problem    forum.springsource.org

@RequestBody and REST problem I use 3.0.0.RELEASE, and I have this method: Code: @RequestMapping(method = RequestMethod.POST, value = "/u/{userId}", headers="content-type:application/xml") public String addCV( @PathVariable String userId, @RequestBody Cv cv ) { ...

64. REST call with Basic Auth, new configuration Spring 3.0.5    forum.springsource.org

REST call with Basic Auth, new configuration Spring 3.0.5 Hi ppl, I am trying to do a Basic Auth with my REST request using Spring 3.0.5. I have seen a bunch ...

65. MVC REST support: observations and maybe a bug    forum.springsource.org

MVC REST support: observations and maybe a bug In the apparently canonical tutorial Ajax Simplifications in Spring 3.0 the summary states: Spring 3 provides first-class Ajax support with JSON as part ...

66. Spring Rest WebService Exception Handling issue    forum.springsource.org

Spring Rest WebService Exception Handling issue Hi All, I am trying to figure out how to properly catching exception and throw it into xml representation if exception occur however i have ...

67. Spring Rest Exception Handling issue    forum.springsource.org

Spring Rest Exception Handling issue Hi All, I am trying to figure out how to properly catching exception and throw it into xml representation if exception occur however i have failed ...

68. Spring REST @PathVariable with JMeter    jmeter.512774.n5.nabble.com