Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-5541

Webservice subsystem abuses attribute values for error handling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.0.CR4
    • None
    • Web Services
    • None

      See for instance attribute request-count. It's of type integer but reports an error message (when statistics not enabled). Please use the DMR headers to indicate failed operations. This is a bad hack.

      [standalone@localhost:9990 /] /deployment=jboss-helloworld-ws.war/subsystem=webservices/endpoint=*:read-resource(include-runtime=true)
      {
          "outcome" => "success",
          "result" => [{
              "address" => [
                  ("deployment" => "jboss-helloworld-ws.war"),
                  ("subsystem" => "webservices"),
                  ("endpoint" => "jboss-helloworld-ws%3Aorg.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl")
              ],
              "outcome" => "success",
              "result" => {
                  "average-processing-time" => "WFLYWS0037: No metrics available",
                  "class" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
                  "context" => "jboss-helloworld-ws",
                  "fault-count" => "WFLYWS0037: No metrics available",
                  "max-processing-time" => "WFLYWS0037: No metrics available",
                  "min-processing-time" => "WFLYWS0037: No metrics available",
                  "name" => "org.jboss.as.quickstarts.wshelloworld.HelloWorldServiceImpl",
                  "request-count" => "WFLYWS0037: No metrics available",
                  "response-count" => "WFLYWS0037: No metrics available",
                  "total-processing-time" => "WFLYWS0037: No metrics available",
                  "type" => "JAXWS_JSE",
                  "wsdl-url" => "http://localhost:8080/jboss-helloworld-ws/HelloWorldService?wsdl"
              }
          }],
          "response-headers" => {"process-state" => "reload-required"}
      }
      
      

              rhn-support-asoldano Alessio Soldano
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: