• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Return a value from a RESTEASY JAX-RS Rest Service Call?

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a very long string 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 trying 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!

- mike
 
Time is mother nature's way of keeping everything from happening at once. And this is a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic