[英]Test web service on GlassFish or Tomcat
I need to do some performance tests of my web service, in fact it is a simple servlet. 我需要对Web服务进行一些性能测试,实际上这是一个简单的servlet。 I'm using GlassFish 3.1 but i can switch to Tomcat.
我正在使用GlassFish 3.1,但可以切换到Tomcat。 Could you give some advices and tools names which i can use to do these tests?
您能给我一些建议和工具名称,以进行这些测试吗?
We use the open source jmeter tool quite a lot. 我们使用开源jmeter工具很多。 Here is the project page: http://jmeter.apache.org/
这是项目页面: http : //jmeter.apache.org/
I would recommend SOAP UI as the best tool for testing SOAP web services. 我建议将SOAP UI作为测试SOAP Web服务的最佳工具。
If it's a REST service, you can use any client that can make an HTTP request to a URL. 如果是REST服务,则可以使用任何可以对URL发出HTTP请求的客户端。 You can use java.net.URLConnection to do that.
您可以使用java.net.URLConnection做到这一点。
I don't see how GLASSFISH or Tomcat matter here. 我在这里看不到GLASSFISH或Tomcat的重要性。 Both have compliant servlet engines.
两者都有兼容的servlet引擎。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.