Hi,
I am trying to write a client application to do authentication with Twitter
using CXF. I have read through
http://cxf.apache.org/docs/jax-rs-oauth.html#JAX-RSOAuth-Client-sidesupport
and started with following code snippet.
WebClient client =
WebClient.create("https://api.twitter.com/oauth/request_token");
OAuthClientUtils.Consumer consumer = new
OAuthClientUtils.Consumer(consumerKey,consumerSecret);
OAuthClientUtils.Token requestToken =
OAuthClientUtils.getRequestToken(client, consumer, new URI("oob"), null);
System.out.println("Request Token" + requestToken.getToken());
How this is ending up in "No message body reader has been found for class :
class org.apache.cxf.jaxrs.ext.form.Form, ContentType :
text/html;charset=utf-8."
Can some please guide me how I can overcome this issue? Or is there any
example you can point me to?
Thanks
Ramesh..
I am trying to write a client application to do authentication with Twitter
using CXF. I have read through
http://cxf.apache.org/docs/jax-rs-oauth.html#JAX-RSOAuth-Client-sidesupport
and started with following code snippet.
WebClient client =
WebClient.create("https://api.twitter.com/oauth/request_token");
OAuthClientUtils.Consumer consumer = new
OAuthClientUtils.Consumer(consumerKey,consumerSecret);
OAuthClientUtils.Token requestToken =
OAuthClientUtils.getRequestToken(client, consumer, new URI("oob"), null);
System.out.println("Request Token" + requestToken.getToken());
How this is ending up in "No message body reader has been found for class :
class org.apache.cxf.jaxrs.ext.form.Form, ContentType :
text/html;charset=utf-8."
Can some please guide me how I can overcome this issue? Or is there any
example you can point me to?
Thanks
Ramesh..