我正在运行 Tomcat。当我右键单击 Web
时,我看到 Test Web Service
被禁用。但是当我将服务器更改为 Glassfish
时,Test Web 服务
已启用。这可能是什么原因?我被困在这里有一段时间了,我一直无法理解原因。
最佳答案
这是不可能的,因为 NetBeans 不包含用于 Tomcat 的 WebService 测试客户端。
来自 NetBeans - Getting Started with JAX-WS Web Services - Deploying and Testing the Web Service :
If you are using the Tomcat Web Server, there is no test client. You can only run the project and see if the Tomcat Web Services page opens.
也许你可以使用 SoapUI NetBeans IDE Plugin用于测试,但它可能不适用于较新的 NetBeans 版本。
关于java - 使用 Tomcat 时禁用测试 Web 服务。可能是什么原因呢?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27907759/