Hi all,
I am fairly new to web services and I am looking into creating a service using jax-ws which allow a search of a database to create a list of results.
The setup I am OK with and have done a test to get the web-service working/talking to a test website.
What would be the best practice for handling the search results? Would it be best to create the search results on the initial web service call and send the whole resultset back as the response OR would it be best keep the web service open from the website and then use another web method to allow each individual search result to be returned individually?
I have managed to get the second process mentioned above working - but mainly because I did not know how to send back the Custom resultset object i.e. not Array or List - although I think I have found a way to do it using the JAXB annotations. If I was to go down this route would it be good practice to do it in this manner OR would creating an XML or JSON response be better?
Also, how does a web service process multiple calls, for example if 100 calls were made at the same time would it be one after the other OR would they run in parallel?
Thanks in advance
dazmaul