How do I test a web service receiving multiple requests from its clients?
I have an axis开发者_开发技巧 web service deployed on JBOSS. My web service is synchronous. So, how does a web service handle multiple requests? And how do I simulate/test that my code can handle multiple requests well?
You can use Apache JMeter for this. Here's a webservice test plan guide.
That said, I agree with skaffman that Axis isn't the optimum choice for webservices. If you can, use Sun Metro or Apache CXF instead, both which are JAX-WS implementations.
Axis isn't the most modern or performant of the web service stacks (and that's putting it kindly), but it should have no problem with a decent load of simultaneous requests. If there's going to be a problem, it's more likely to be with your own code.
The best way to test this is to use Axis to write a web service client, and use it to fire a large number of requests at your server. If you've already used Axis to generate java artefacts, it should be fairly straightforward.
精彩评论