68
votes
14answers
71k views

Rest clients for Java?

With JSR 311 and it's implementations we have a powerful standard for exposing Java objects via Rest. However on the client side there seems to be something missing that is comparable to Apache Axis ...
27
votes
8answers
53k views

Using JAXB to unmarshal/marshal a List<String>

I'm trying to create a very simple REST server. I just have a test method that will return a List of Strings. Here's the code: @GET @Path("/test2") public List test2(){ List list=new ...
36
votes
6answers
24k views

Android REST client, Sample?

Even if this thread has accepted answer, feel free to propose other ideas, you do use or like I've met these articles: Restful API service Java REST client API for Android And that lead me to ...
29
votes
15answers
14k views

Is it feasible to create a REST client with Flex?

I'm starting a project using a Restful architecture implemented in Java (using the new JAX-RS standard) We are planning to develop the GUI with a Flex application. I have already found some problems ...
9
votes
4answers
29k views

how to call RESTful web service from android?

I have written a REST web service in netbean IDE using jersey framework and java. For every request the user needs to provide username and password, I know that this authentication is not good (using ...
30
votes
7answers
50k views

How do I encode URI parameter values?

I want to send a URI as the value of a query/matrix parameter. Before I can append it to an existing URI, I need to encode it according to RFC 2396. For example, given the input: ...
48
votes
6answers
25k views

RESTful on Play! framework

We are planning a project primarily serving content to mobile apps, but need to have a website. My question is whether is makes sense to use Jersey or Restlet to develop REST APIs for our mobile ...
49
votes
21answers
37k views

Testing REST webservices

My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. ...
32
votes
6answers
21k views

JAX-RS Frameworks

I've been doing some work with the JAX-RS reference implementation (Jersey). I know of at least two other frameworks (Restlet & Apache CXF). My question is: Has anyone did some comparison between ...
4
votes
4answers
6k views

How to serialize Java primitives using Jersey REST

In my application I use Jersey REST to serialize complex objects. This works quite fine. But there are a few method which simply return an int or boolean. Jersey can't handle primitive types (to my ...
15
votes
5answers
30k views

How do I use the Jersey JSON POJO support?

I have an object that I'd like to serve in JSON as a RESTful resource. I have Jersey's JSON POJO support turned on like so (in web.xml): <servlet> <servlet-name>Jersey Web ...
16
votes
5answers
11k views

Inject a EJB into JAX-RS (RESTfull service)

I'm trying to inject a Stateless EJB into my JAX-RS webservice via Annotations. Unfortunately the EJB is just null and I get a NullPointerException when I try to use it. @Path("book") public class ...
33
votes
7answers
13k views

Spring MVC @PathVariable getting truncated

I have a controller that provides RESTful access to information: @RequestMapping(method = RequestMethod.GET, value = Routes.BLAH_GET + "/{blahName}") public ModelAndView getBlah(@PathVariable String ...
5
votes
3answers
6k views

What is the best java webservice framework?

I currently use Apache Axis. But I am creating a new project in Intellij IDEA and I have the option to add one of the following: Apache Axis Glassfish /JAX-WS 2.x RI / Metro 1.x / JWSDP 2.0 Restful ...
0
votes
0answers
151 views

Getting error A message body writer for Java class java.util.ArrayList/List<java.lang.String> was not found

well this has been posted a lot of time here but no solution worked for me... i can avoid this error by making a wrapper class but it only returned </stringWrapper> what am i doing wrong ...

1 2 3 4 5 17
15 30 50 per page