glassfish
  1. glassfish
  2. GLASSFISH-18801

Web Services tester fails accessibility requirements

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2_b23
    • Fix Version/s: 4.0_b48
    • Component/s: web_services
    • Labels:
      None

      Description

      When you open the Web Service Tester at, for example, http://localhost:8080/HelloServiceBeanService/HelloServiceBean?Tester (for the HelloServiceBean application in the Java EE 6 Tutorial, http://docs.oracle.com/javaee/6/tutorial/doc/bnbor.html#bnbox), you get an HTML page whose source looks like this:

      <HTML><HEAD><TITLE>HelloServiceBeanService Web Service Tester</TITLE></HEAD><BODY><H1>HelloServiceBeanService Web Service Tester</H1><br>This form will allow you to test your web service implementation (<A HREF="http://stella:8080/HelloServiceBeanService/HelloServiceBean?WSDL">WSDL File</A>)<hr>To invoke an operation, fill the method parameter(s) input boxes and click on the button labeled with the method name.<H3>Methods :</H3><FORM METHOD="POST">public abstract java.lang.String com.sun.tutorial.javaee.ejb.helloservice.HelloServiceBean.sayHello(java.lang.String)<BR><INPUT TYPE=SUBMIT NAME=action value=sayHello> (<INPUT TYPE=TEXT NAME=PARAMsayHello0>)<BR><HR></FORM></BODY></HTML><FORM METHOD="POST">public abstract void com.sun.tutorial.javaee.ejb.helloservice.HelloServiceBean.helloServiceBean()<BR><INPUT TYPE=SUBMIT NAME=action value=helloServiceBean> ()<BR><HR></FORM></BODY></HTML>

      In order to make this page accessible, only a few changes are needed:

      1) Change <HTML> to <HTML LANG="en">. The LANG attribute is required for each HTML page. If the page varies depending on the locale, the correct locale should be used.

      2) Each of the three <INPUT> tags requires a label, which is normally provided by the TITLE attribute. So the changed tags would look something like this, where sayHello is the method name.

      <INPUT TYPE=SUBMIT NAME=action title="sayHello" value=sayHello>

      <INPUT TYPE=TEXT NAME=PARAMsayHello0 title="sayHello parameter">

      <INPUT TYPE=SUBMIT NAME=action title="helloServiceBean" value=helloServiceBean>

      The requirement comes from http://www.access-board.gov/sec508/guide/1194.22.htm#%28n%29.

        Activity

        Show
        Lukas Jungmann added a comment - http://java.net/projects/glassfish/sources/svn/revision/55235

          People

          • Assignee:
            Lukas Jungmann
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: