How to pass a very long string/file into RESTWebservice JAX-RS Jersey
- by Sashikiran Challa
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