• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Bartender
Posts: 1973
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
 
What are you doing? You are supposed to be reading this tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic