<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spring 3.0: REST services with Spring MVC</title>
	<atom:link href="http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/</link>
	<description>Oudmaijer IT</description>
	<lastBuildDate>Thu, 16 Feb 2012 15:35:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: soudmaijer</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-18307</link>
		<dc:creator>soudmaijer</dc:creator>
		<pubDate>Fri, 06 Jan 2012 07:21:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-18307</guid>
		<description>Good to hear my article helped you getting started!

Regards, Stephan</description>
		<content:encoded><![CDATA[<p>Good to hear my article helped you getting started!</p>
<p>Regards, Stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renata Roginsky</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-18304</link>
		<dc:creator>Renata Roginsky</dc:creator>
		<pubDate>Fri, 06 Jan 2012 06:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-18304</guid>
		<description>Thank you, thank you, thank you. And thank you again. I spent the whole day today trying to get it to work, and I&#039;ve no idea how much longer I would be banging my head on the wall if 
I didn&#039;t find your article.</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you. And thank you again. I spent the whole day today trying to get it to work, and I&#8217;ve no idea how much longer I would be banging my head on the wall if<br />
I didn&#8217;t find your article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soudmaijer</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-9522</link>
		<dc:creator>soudmaijer</dc:creator>
		<pubDate>Tue, 14 Jun 2011 11:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-9522</guid>
		<description>Looks like old files that are still referenced in your workspace. Are you using Eclipse? Try cleaning the project.</description>
		<content:encoded><![CDATA[<p>Looks like old files that are still referenced in your workspace. Are you using Eclipse? Try cleaning the project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-9519</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Tue, 14 Jun 2011 09:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-9519</guid>
		<description>Can you please send me the War file without the jars?

I have setup it but getting error like below for my url
description The requested resource (/ProjTmplWar/ocn/1/oppoId/2) is not available.</description>
		<content:encoded><![CDATA[<p>Can you please send me the War file without the jars?</p>
<p>I have setup it but getting error like below for my url<br />
description The requested resource (/ProjTmplWar/ocn/1/oppoId/2) is not available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soudmaijer</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-5630</link>
		<dc:creator>soudmaijer</dc:creator>
		<pubDate>Sun, 13 Mar 2011 11:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-5630</guid>
		<description>Hi Krishna,

the article you are refering to uses JAX-RS (Jersey) and not Spring MVC based RESTful services.</description>
		<content:encoded><![CDATA[<p>Hi Krishna,</p>
<p>the article you are refering to uses JAX-RS (Jersey) and not Spring MVC based RESTful services.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-5572</link>
		<dc:creator>Krishna</dc:creator>
		<pubDate>Sat, 12 Mar 2011 11:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-5572</guid>
		<description>Good basic article on spring rest services. &lt;a href=&quot;http://www.javabeat.net/articles/256-introduction-to-spring-rest-services-1.html&quot; rel=&quot;nofollow&quot;&gt;Spring REST services&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Good basic article on spring rest services. <a href="http://www.javabeat.net/articles/256-introduction-to-spring-rest-services-1.html" rel="nofollow">Spring REST services</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tin</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-5011</link>
		<dc:creator>Tin</dc:creator>
		<pubDate>Sat, 26 Feb 2011 02:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-5011</guid>
		<description>Thanks for your reply, That&#039;s really helpful for me to learn more. I also got the answer from spring forum and both of you make me clear about how to make REST and RESTFul in spring 3.</description>
		<content:encoded><![CDATA[<p>Thanks for your reply, That&#8217;s really helpful for me to learn more. I also got the answer from spring forum and both of you make me clear about how to make REST and RESTFul in spring 3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soudmaijer</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-4916</link>
		<dc:creator>soudmaijer</dc:creator>
		<pubDate>Wed, 23 Feb 2011 07:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-4916</guid>
		<description>Hi Tin,

suffixing the response return type is typically not the way to go with RESTful services. RESTful services typically return a specific format based on the Content Negotiation of the Client and the Server (http://en.wikipedia.org/wiki/Content_negotiation). You define what response type you expect by setting the HTTP Accept header to application/xml or application/json. Spring uses a ContentNegotiatingViewResolver for this. 

Also have a look at this article: http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/

&lt;strong&gt;Summary&lt;/strong&gt;

Basically, your service has 1 URL: http://localhost:8080/spring-3.0-rest/product/1 and based on the Accept header it returns either XML or JSON. You do not need 2 methods in your controller, just two Marshallers on for XML and one for JSON. This can be done based on JAXB annotations and Jackson.

If you still experience problems, let me know!</description>
		<content:encoded><![CDATA[<p>Hi Tin,</p>
<p>suffixing the response return type is typically not the way to go with RESTful services. RESTful services typically return a specific format based on the Content Negotiation of the Client and the Server (<a href="http://en.wikipedia.org/wiki/Content_negotiation" rel="nofollow">http://en.wikipedia.org/wiki/Content_negotiation</a>). You define what response type you expect by setting the HTTP Accept header to application/xml or application/json. Spring uses a ContentNegotiatingViewResolver for this. </p>
<p>Also have a look at this article: <a href="http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/" rel="nofollow">http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/</a></p>
<p><strong>Summary</strong></p>
<p>Basically, your service has 1 URL: <a href="http://localhost:8080/spring-3.0-rest/product/1" rel="nofollow">http://localhost:8080/spring-3.0-rest/product/1</a> and based on the Accept header it returns either XML or JSON. You do not need 2 methods in your controller, just two Marshallers on for XML and one for JSON. This can be done based on JAXB annotations and Jackson.</p>
<p>If you still experience problems, let me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tin</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-4915</link>
		<dc:creator>Tin</dc:creator>
		<pubDate>Wed, 23 Feb 2011 05:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-4915</guid>
		<description>Nice article, Question..?

If I want the method &quot;getProductById&quot; to return in the different format such as XML or JSON. For example:

I will call the method like below:

Returning in XML
http://localhost:8080/spring-3.0-rest/product/1.xml

Returning in JSON
http://localhost:8080/spring-3.0-rest/product/1.json

Could you please guide how to do in spring 3 and thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Nice article, Question..?</p>
<p>If I want the method &#8220;getProductById&#8221; to return in the different format such as XML or JSON. For example:</p>
<p>I will call the method like below:</p>
<p>Returning in XML<br />
<a href="http://localhost:8080/spring-3.0-rest/product/1.xml" rel="nofollow">http://localhost:8080/spring-3.0-rest/product/1.xml</a></p>
<p>Returning in JSON<br />
<a href="http://localhost:8080/spring-3.0-rest/product/1.json" rel="nofollow">http://localhost:8080/spring-3.0-rest/product/1.json</a></p>
<p>Could you please guide how to do in spring 3 and thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay</title>
		<link>http://www.oudmaijer.com/2010/01/16/spring-3-0-rest-services-with-spring-mvc/comment-page-1/#comment-3444</link>
		<dc:creator>Ajay</dc:creator>
		<pubDate>Mon, 03 Jan 2011 16:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.oudmaijer.com/blog/?p=15#comment-3444</guid>
		<description>Nice &amp; useful article</description>
		<content:encoded><![CDATA[<p>Nice &amp; useful article</p>
]]></content:encoded>
	</item>
</channel>
</rss>

