获取部署在wildfly上的Web服务列表的方法

时间:2018-01-26 03:28:19

标签: wildfly

我正在寻找一种方法,我可以获得部署在wildfly上的所有Web服务的列表,我环顾四周但是找不到符合条件的任何东西。

提前致谢。

1 个答案:

答案 0 :(得分:3)

在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服务”上的“查看”。