如何测试从客户端接收多个请求的 Web 服务?

发布于 2024-08-21 09:12:41 字数 85 浏览 6 评论 0原文

我在 JBOSS 上部署了一个轴 Web 服务。我的网络服务是同步的。 那么,Web 服务如何处理多个请求呢?如何模拟/测试我的代码可以很好地处理多个请求?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌伤浅笑 2024-08-28 09:12:41

您可以使用 Apache JMeter 来实现此目的。这是Web 服务测试计划指南

也就是说,我同意 skaffman 的观点,即 Axis 并不是 Web 服务的最佳选择。如果可以,请使用 Sun MetroApache CXF 相反,两者都是 JAX- WS 实现。

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.

以歌曲疗慰 2024-08-28 09:12:41

Axis 并不是最现代或最高性能的 Web 服务堆栈(这是善意的说法),但它在处理大量并发请求时应该没有问题。如果出现问题,则更有可能是您自己的代码出现问题。

测试此功能的最佳方法是使用 Axis 编写 Web 服务客户端,并使用它在服务器上触发大量请求。如果您已经使用 Axis 生成 java 工件,那么它应该相当简单。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文