Hi, I am wondering if the following is possible since I am having some
problems getting it to work. Lets say you have a service method:

void store(String user, int score);

and you run the following command:

curl -i -v -H "Content-Type: application/json" -X PUT -d '{"user": "me",
"score": 10}' http://localhost:8080/store

I was expecting that the json content is unmarshalled and mapped to the 2
primitive arguments, which isn't happening. The immediate problem might
however be unrelated. The first Provider that is being used is
called StringTextStar which reads everything from the InputStream, then
when the ResteasyJacksonProvider is ran, there is no more to read and I
receive java.io.EOFException: No content to map to Object due to end of
input, which might be another problem.

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Resteasy-users mailing list

Reply via email to