<?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: RestTemplate, the Spring way of accessing RESTful services</title>
	<atom:link href="http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/</link>
	<description>Technology++</description>
	<lastBuildDate>Fri, 28 Oct 2011 18:10:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Arul</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4044</link>
		<dc:creator>Arul</dc:creator>
		<pubDate>Fri, 22 Oct 2010 01:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4044</guid>
		<description>Hi Mack, Hari,

I believe you are not setting the correct Twitter credentials. The credentials are set in line numbers 19 and 20 in applicationContext.xml. I have highlighted them above. This should fix the 401 error you are seeing.

-Arul</description>
		<content:encoded><![CDATA[<p>Hi Mack, Hari,</p>
<p>I believe you are not setting the correct Twitter credentials. The credentials are set in line numbers 19 and 20 in applicationContext.xml. I have highlighted them above. This should fix the 401 error you are seeing.</p>
<p>-Arul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4042</link>
		<dc:creator>Hari</dc:creator>
		<pubDate>Thu, 21 Oct 2010 07:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4042</guid>
		<description>Hi,

Getting the below error while executing the above code. 

POST request for &quot;https://twitter.com/statuses/update.xml&quot; resulted in 401 (Unauthorized); invoking error handler
Exception in thread &quot;main&quot; org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

Please suggest how twitter credentials can be passed to the code?

Thanks in advance very much!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Getting the below error while executing the above code. </p>
<p>POST request for &#8220;https://twitter.com/statuses/update.xml&#8221; resulted in 401 (Unauthorized); invoking error handler<br />
Exception in thread &#8220;main&#8221; org.springframework.web.client.HttpClientErrorException: 401 Unauthorized</p>
<p>Please suggest how twitter credentials can be passed to the code?</p>
<p>Thanks in advance very much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mack</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4027</link>
		<dc:creator>mack</dc:creator>
		<pubDate>Thu, 14 Oct 2010 08:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-4027</guid>
		<description>i got this error

Exception in thread &quot;main&quot; org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
	at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:69)
	at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)
	at org.springframework.web.client.RestTemplate.postForLocation(RestTemplate.java:257)
	at twitter.TwitterClient.setStatus(TwitterClient.java:40)
	at twitter.Spring3RestClientTest.main(Spring3RestClientTest.java:13)</description>
		<content:encoded><![CDATA[<p>i got this error</p>
<p>Exception in thread &#8220;main&#8221; org.springframework.web.client.HttpClientErrorException: 401 Unauthorized<br />
	at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:69)<br />
	at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)<br />
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)<br />
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)<br />
	at org.springframework.web.client.RestTemplate.postForLocation(RestTemplate.java:257)<br />
	at twitter.TwitterClient.setStatus(TwitterClient.java:40)<br />
	at twitter.Spring3RestClientTest.main(Spring3RestClientTest.java:13)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fray</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3920</link>
		<dc:creator>Fray</dc:creator>
		<pubDate>Tue, 22 Sep 2009 19:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3920</guid>
		<description>Thanks...wow it is very helpful blog for SSL &amp; resttemplate stuff..

Very helpful info.</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;wow it is very helpful blog for SSL &amp; resttemplate stuff..</p>
<p>Very helpful info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arul</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3919</link>
		<dc:creator>Arul</dc:creator>
		<pubDate>Mon, 21 Sep 2009 20:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3919</guid>
		<description>Hi Fray,

Nice to see you got it working with SSL. 
Btw, I just blogged about accessing SSL configured resources using RestTemplate &lt;a href=&quot;http://aruld.info/accessing-restful-services-configured-with-ssl-using-resttemplate/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

You may want to look at the &lt;a href=&quot;http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/http/converter/json/MappingJacksonHttpMessageConverter.html&quot; rel=&quot;nofollow&quot;&gt;MappingJacksonHttpMessageConverter&lt;/a&gt; which supports &quot;application/json&quot;.

Cheers,
Arul</description>
		<content:encoded><![CDATA[<p>Hi Fray,</p>
<p>Nice to see you got it working with SSL.<br />
Btw, I just blogged about accessing SSL configured resources using RestTemplate <a href="http://aruld.info/accessing-restful-services-configured-with-ssl-using-resttemplate/" rel="nofollow">here</a>.</p>
<p>You may want to look at the <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/http/converter/json/MappingJacksonHttpMessageConverter.html" rel="nofollow">MappingJacksonHttpMessageConverter</a> which supports &#8220;application/json&#8221;.</p>
<p>Cheers,<br />
Arul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fray</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3918</link>
		<dc:creator>Fray</dc:creator>
		<pubDate>Mon, 21 Sep 2009 17:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3918</guid>
		<description>Arul
I got the SSL work, thanks to your links and direction.

Once more question: I format the return from Rest Servie as a json. In spring 3M4, there is no coverter for Json, I saw you using the FormHttpMessageConverter. How would you handle when stuff return are in JSON format

again greatly appreciated</description>
		<content:encoded><![CDATA[<p>Arul<br />
I got the SSL work, thanks to your links and direction.</p>
<p>Once more question: I format the return from Rest Servie as a json. In spring 3M4, there is no coverter for Json, I saw you using the FormHttpMessageConverter. How would you handle when stuff return are in JSON format</p>
<p>again greatly appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arul</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3916</link>
		<dc:creator>Arul</dc:creator>
		<pubDate>Fri, 18 Sep 2009 05:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3916</guid>
		<description>Hi Fray,

No problem.

You may want to look at the Jersey client &lt;a href=&quot;https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/samples/https-clientserver-grizzly/&quot; rel=&quot;nofollow&quot;&gt;sample&lt;/a&gt; used to access a secured resource. This would give you an idea on how to setup TrustManager and KeyManager on the client.

Cheers,
Arul</description>
		<content:encoded><![CDATA[<p>Hi Fray,</p>
<p>No problem.</p>
<p>You may want to look at the Jersey client <a href="https://jersey.dev.java.net/source/browse/jersey/trunk/jersey/samples/https-clientserver-grizzly/" rel="nofollow">sample</a> used to access a secured resource. This would give you an idea on how to setup TrustManager and KeyManager on the client.</p>
<p>Cheers,<br />
Arul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fray</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3915</link>
		<dc:creator>Fray</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3915</guid>
		<description>Thanks Arul, that helps. I am looking into it .
Greatly appreciated your direction and time to help out.</description>
		<content:encoded><![CDATA[<p>Thanks Arul, that helps. I am looking into it .<br />
Greatly appreciated your direction and time to help out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arul</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3914</link>
		<dc:creator>Arul</dc:creator>
		<pubDate>Thu, 17 Sep 2009 02:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3914</guid>
		<description>Hi Fray,

I did receive your email. I did not had a chance to respond to your email yet.

You may want to look at the &lt;a href=&quot;http://hc.apache.org/httpclient-3.x/sslguide.html&quot; rel=&quot;nofollow&quot;&gt;SSL Guide&lt;/a&gt; for Commons HTTP Client. You need to configure the HttpClient from RestTemplate with an SSLSocketFactory.

HTH,
Arul</description>
		<content:encoded><![CDATA[<p>Hi Fray,</p>
<p>I did receive your email. I did not had a chance to respond to your email yet.</p>
<p>You may want to look at the <a href="http://hc.apache.org/httpclient-3.x/sslguide.html" rel="nofollow">SSL Guide</a> for Commons HTTP Client. You need to configure the HttpClient from RestTemplate with an SSLSocketFactory.</p>
<p>HTH,<br />
Arul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fray</title>
		<link>http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3913</link>
		<dc:creator>Fray</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:39:27 +0000</pubDate>
		<guid isPermaLink="false">http://aruld.info/resttemplate-the-spring-way-of-accessing-restful-services/#comment-3913</guid>
		<description>Hi again,
Thnks for your help. I have email you via the Contact me, not sure if you got it.
I have following your blog sample, how would you handle like passing all the cert key information including password, truststore, keystore more likely doing the SSL info using RestTemplate.

If you got any ideas, please help.</description>
		<content:encoded><![CDATA[<p>Hi again,<br />
Thnks for your help. I have email you via the Contact me, not sure if you got it.<br />
I have following your blog sample, how would you handle like passing all the cert key information including password, truststore, keystore more likely doing the SSL info using RestTemplate.</p>
<p>If you got any ideas, please help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

