How to pass a very long string/file into RESTWebservice JAX-RS Jersey
Posted
by Sashikiran Challa
on Stack Overflow
See other posts from Stack Overflow
or by Sashikiran Challa
Published on 2010-03-14T01:03:59Z
Indexed on
2010/03/14
1:05 UTC
Read the original article
Hit count: 502
Hello All,
I am trying to write a webservice that takes in an XML string, does parsing of it using DOM and extract particular things I want. My XML string happens to be very long so I do not want to pass it as a @QueryParam or @PathParam.
Say If I write that XML string into a file, How do I go about writing a RESTful service that takes in this file, extracts whatever I want and return the results. I am actually trying to extract some number of strings, so my output should probably be an ArrayList having all these strings.
Could somebody please shed some light on how I should go about doing this.
Thanks in advance
© Stack Overflow or respective owner