Hello All,
I wrote a RESTful webservice using JAX-RS API, that returns an XML string.
I am trying to write another RESTful webservice that takes in this XML string, does parsing of it using DOM and extract particular things I want. The 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 this 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 webservice should finally return an array with all those strings.
Could somebody please shed some light on how I should go about doing this.
Thanks in advance