Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
Return a value from a RESTEASY JAX-RS Rest Service Call?
posted 1 year ago
I have a very long
of comma-separated data I need to send to our RESTEasy (JAX-RS) web service.
I'm thinking that due to the length of the string (potentially hundreds of values), I need to use the post.Entity syntax.
However, it appears that the service only will return a Response object with a status code (200, 404, or whatever).
Instead, however, what I'm
to do is call the service with a POST and get the result of the calculation done in the service back as the "response" data or return value.
Is it possible to treat a JAX-RS @Post WS method like a "function" and return some single (calculated in the web service, in my case) value back to the caller?
Also, I'm assuming I can't send a complex type like a class instance to a JAX-RS class like I can with JAX-WS, correct?
Thanks in advance for all replies and suggestions!
ClientAbortException throw at the end of REST request
JAX-RS : A Way to Serialize String to XML as a Response?
Wsgen usage with javaSE
capture request and response to/from webservice
Tomcat 7 JAX-WS without sun-jaxws