一种获取部署在 wildfly 上的 Web 服务列表的方法
A way to get a list of web services deployed on wildfly
我正在寻找一种方法来获取部署在 wildfly 上的所有 Web 服务的列表,我环顾四周但找不到任何符合要求的东西。
提前致谢。
在 CLI 中,您可以执行以下命令来显示所有 Web 服务。
/deployment=*/subsystem=webservices:read-resource(include-runtime=true, recursive=true)
示例 CLI 输出:
{
"outcome" => "success",
"result" => [{
"address" => [
("deployment" => "helloworld-ws.war"),
("subsystem" => "webservices")
],
"outcome" => "success",
"result" => {"endpoint" => {"helloworld-ws%3Aorg.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl" => {
"average-processing-time" => 0L,
"class" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
"context" => "helloworld-ws",
"fault-count" => 0L,
"max-processing-time" => 0L,
"min-processing-time" => 0L,
"name" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
"request-count" => 0L,
"response-count" => 0L,
"total-processing-time" => 0L,
"type" => "JAXWS_JSE",
"wsdl-url" => "http://localhost:8080/helloworld-ws/HelloWorldService?wsdl"
}}}
}]
}
您还可以使用 Web 控制台查看端点。如果转到“运行时”选项卡、“独立服务器”、“子系统”,然后单击“Web 服务”上的 "View"。
我正在寻找一种方法来获取部署在 wildfly 上的所有 Web 服务的列表,我环顾四周但找不到任何符合要求的东西。
提前致谢。
在 CLI 中,您可以执行以下命令来显示所有 Web 服务。
/deployment=*/subsystem=webservices:read-resource(include-runtime=true, recursive=true)
示例 CLI 输出:
{
"outcome" => "success",
"result" => [{
"address" => [
("deployment" => "helloworld-ws.war"),
("subsystem" => "webservices")
],
"outcome" => "success",
"result" => {"endpoint" => {"helloworld-ws%3Aorg.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl" => {
"average-processing-time" => 0L,
"class" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
"context" => "helloworld-ws",
"fault-count" => 0L,
"max-processing-time" => 0L,
"min-processing-time" => 0L,
"name" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
"request-count" => 0L,
"response-count" => 0L,
"total-processing-time" => 0L,
"type" => "JAXWS_JSE",
"wsdl-url" => "http://localhost:8080/helloworld-ws/HelloWorldService?wsdl"
}}}
}]
}
您还可以使用 Web 控制台查看端点。如果转到“运行时”选项卡、“独立服务器”、“子系统”,然后单击“Web 服务”上的 "View"。