<?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: REST in Spring 3: RestTemplate</title>
	<atom:link href="http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: It&#039;s my blog! &#187; Archive &#187; Query Alfresco Web script using REST</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-236312</link>
		<dc:creator>It&#039;s my blog! &#187; Archive &#187; Query Alfresco Web script using REST</dc:creator>
		<pubDate>Fri, 20 Jan 2012 09:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-236312</guid>
		<description>[...] RestTemplate was introduced in Spring 3 to give REST access the same support as JDBC, passing a Map of keywords [...]</description>
		<content:encoded><![CDATA[<p>[...] RestTemplate was introduced in Spring 3 to give REST access the same support as JDBC, passing a Map of keywords [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artifactory REST API with Spring 3 RestTemplate &#124; Goldin++</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-187723</link>
		<dc:creator>Artifactory REST API with Spring 3 RestTemplate &#124; Goldin++</dc:creator>
		<pubDate>Thu, 24 Feb 2011 19:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-187723</guid>
		<description>[...] I decided to stick to Spring since version 3 was already used throughout the project and one of its new features is exactly what I needed here &#8211; a RestTemplate. Why not give it a [...]</description>
		<content:encoded><![CDATA[<p>[...] I decided to stick to Spring since version 3 was already used throughout the project and one of its new features is exactly what I needed here &#8211; a RestTemplate. Why not give it a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lili</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-183442</link>
		<dc:creator>Lili</dc:creator>
		<pubDate>Wed, 26 Jan 2011 02:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-183442</guid>
		<description>Anyone got this working where the remote rest service uses self signed certificates?</description>
		<content:encoded><![CDATA[<p>Anyone got this working where the remote rest service uses self signed certificates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Whiteship&#039;s Epril &#187; Blog Archive &#187; 스프링으로 모바일 애플리케이션 개발하기</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-179597</link>
		<dc:creator>Whiteship&#039;s Epril &#187; Blog Archive &#187; 스프링으로 모바일 애플리케이션 개발하기</dc:creator>
		<pubDate>Tue, 30 Nov 2010 01:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-179597</guid>
		<description>[...] API는 RestTemplate을 사용하고 OAuth 클라이언트는 스프링 시큐리티를 [...]</description>
		<content:encoded><![CDATA[<p>[...] API는 RestTemplate을 사용하고 OAuth 클라이언트는 스프링 시큐리티를 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spring into Mobile Application Development &#124; SpringSource Team Blog</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-178989</link>
		<dc:creator>Spring into Mobile Application Development &#124; SpringSource Team Blog</dc:creator>
		<pubDate>Sat, 20 Nov 2010 00:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-178989</guid>
		<description>[...] modules of the Spring Framework working in an Android environment. Specifically, we aimed to use RestTemplate for the REST API calls, and Spring Security for the OAuth [...]</description>
		<content:encoded><![CDATA[<p>[...] modules of the Spring Framework working in an Android environment. Specifically, we aimed to use RestTemplate for the REST API calls, and Spring Security for the OAuth [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahyar SEPEHR &#187; Blog Archive &#187; REST with SpringMVC 3</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-177452</link>
		<dc:creator>Mahyar SEPEHR &#187; Blog Archive &#187; REST with SpringMVC 3</dc:creator>
		<pubDate>Wed, 20 Oct 2010 17:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-177452</guid>
		<description>[...] See also : rest-in-spring-3-mvc See also RestTemplate : rest-in-spring-3-resttemplate [...]</description>
		<content:encoded><![CDATA[<p>[...] See also : rest-in-spring-3-mvc See also RestTemplate : rest-in-spring-3-resttemplate [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paypal adaptive API and Spring 3 rest template &#8212; Part 1 &#171; mushiengine</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-175367</link>
		<dc:creator>Paypal adaptive API and Spring 3 rest template &#8212; Part 1 &#171; mushiengine</dc:creator>
		<pubDate>Tue, 24 Aug 2010 10:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-175367</guid>
		<description>[...] heard about it for some reason try this link). One of the new things available for spring 3 is rest templates, very useful bit of API. Allow you to use a range of binding API, I use JAXB2 and it comes working [...]</description>
		<content:encoded><![CDATA[<p>[...] heard about it for some reason try this link). One of the new things available for spring 3 is rest templates, very useful bit of API. Allow you to use a range of binding API, I use JAXB2 and it comes working [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-174577</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 27 Jul 2010 12:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-174577</guid>
		<description>Hello Arjen,
I need simple marshal, urmarshal example.
For example, i have a simple class &quot;MyClass&quot; and i want result in that type of object. Results coming are in XML, how it would be converted into &quot;MyClass&quot;. I am trying to create simple desktop application, with the help of Apache&#039;s RestClient, and spring&#039;s RestTemplate.

GET request is as follows
MyClass myResult = restTemplate.getForObject(&quot;http://localhost:8080/SpringRestMVC/perusahaan.xml&quot;, MyClass.class);</description>
		<content:encoded><![CDATA[<p>Hello Arjen,<br />
I need simple marshal, urmarshal example.<br />
For example, i have a simple class &#034;MyClass&#034; and i want result in that type of object. Results coming are in XML, how it would be converted into &#034;MyClass&#034;. I am trying to create simple desktop application, with the help of Apache&#039;s RestClient, and spring&#039;s RestTemplate.</p>
<p>GET request is as follows<br />
MyClass myResult = restTemplate.getForObject(&#034;http://localhost:8080/SpringRestMVC/perusahaan.xml&#034;, MyClass.class);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmart</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-173654</link>
		<dc:creator>jmart</dc:creator>
		<pubDate>Thu, 17 Jun 2010 02:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-173654</guid>
		<description>Hello,

So this is a good tutorial for doing Gets, but how do I do a simple Post?  I cannot seem to find a good explanation on it.  The best I&#039;ve seen finishes off with a Location instance, but what do you do with that?

I have an XML that I am trying to Post to a http URL, receive and process the XML response, and I want to do it in Spring since the rest of my application is in Spring.

ty</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>So this is a good tutorial for doing Gets, but how do I do a simple Post?  I cannot seem to find a good explanation on it.  The best I&#039;ve seen finishes off with a Location instance, but what do you do with that?</p>
<p>I have an XML that I am trying to Post to a http URL, receive and process the XML response, and I want to do it in Spring since the rest of my application is in Spring.</p>
<p>ty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Franky</title>
		<link>http://blog.springsource.org/2009/03/27/rest-in-spring-3-resttemplate/comment-page-1/#comment-173074</link>
		<dc:creator>Franky</dc:creator>
		<pubDate>Tue, 01 Jun 2010 07:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=1469#comment-173074</guid>
		<description>Got error when I use your sample. Any suggestion? Thanks.

       String photoSearchUrl =
                &quot;http://www.flickr.com/services/rest?method=flickr.photos.search&amp;api key={api-key}&amp;tags={tag}&amp;per_page=10&quot;;
        Source photos = restTemplate.getForObject(photoSearchUrl, Source.class, apiKey, searchTerm);


Exception in thread &quot;main&quot; org.springframework.web.client.ResourceAccessException: I/O error: Connection reset; nested exception is java.net.SocketException: Connection reset
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:359)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:307)
	at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:177)
	at com.springsource.samples.resttemplate.FlickrClient.searchPhotos(FlickrClient.java:58)
	at com.springsource.samples.resttemplate.FlickrClient.doIt(FlickrClient.java:50)
	at com.springsource.samples.resttemplate.Driver.main(Driver.java:35)
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:168)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1072)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
	at org.springframework.http.client.SimpleClientHttpResponse.getStatusCode(SimpleClientHttpResponse.java:47)
	at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:42)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:345)
	... 5 more</description>
		<content:encoded><![CDATA[<p>Got error when I use your sample. Any suggestion? Thanks.</p>
<p>       String photoSearchUrl =<br />
                &#034;http://www.flickr.com/services/rest?method=flickr.photos.search&amp;api key={api-key}&amp;tags={tag}&amp;per_page=10&#034;;<br />
        Source photos = restTemplate.getForObject(photoSearchUrl, Source.class, apiKey, searchTerm);</p>
<p>Exception in thread &#034;main&#034; org.springframework.web.client.ResourceAccessException: I/O error: Connection reset; nested exception is java.net.SocketException: Connection reset<br />
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:359)<br />
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:307)<br />
	at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:177)<br />
	at com.springsource.samples.resttemplate.FlickrClient.searchPhotos(FlickrClient.java:58)<br />
	at com.springsource.samples.resttemplate.FlickrClient.doIt(FlickrClient.java:50)<br />
	at com.springsource.samples.resttemplate.Driver.main(Driver.java:35)<br />
Caused by: java.net.SocketException: Connection reset<br />
	at java.net.SocketInputStream.read(SocketInputStream.java:168)<br />
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)<br />
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)<br />
	at java.io.BufferedInputStream.read(BufferedInputStream.java:317)<br />
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)<br />
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)<br />
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:652)<br />
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1072)<br />
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)<br />
	at org.springframework.http.client.SimpleClientHttpResponse.getStatusCode(SimpleClientHttpResponse.java:47)<br />
	at org.springframework.web.client.DefaultResponseErrorHandler.hasError(DefaultResponseErrorHandler.java:42)<br />
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:345)<br />
	&#8230; 5 more</p>
]]></content:encoded>
	</item>
</channel>
</rss>

