Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17664

Web Service Tester: Response to invoking not allowed method on WildFly doesn't contain header [HTTP/1.1 405 Method Not Allowed]

    Details

    • Steps to Reproduce:
      Hide

      STEP: Create Dynamic Web Project with JAX-RS Support
      STEP: Create Application and JAX-RS Resource

      @ApplicationPath("/rest")
      public class MyApplication extends javax.ws.rs.core.Application {
      
      }
      
      @Path("/")
      public class RestService {
      	@GET
      	@Path("/get")
      	public String getMethod() {
      		return "GET method";
      	}
      }
      

      STEP: Run GET URI Path Template on the WildFly server
      ASSERT: Web Service Tester view is opened
      STEP: Change type of the request from GET to POST
      STEP: Invoke the request
      ASSERT: Response's headers contains message [HTTP/1.1 405 Method Not Allowed]
      FAIL: There is no response header (Response body is "Successful JAX-RS Web Service Execution")

      Show
      STEP: Create Dynamic Web Project with JAX-RS Support STEP: Create Application and JAX-RS Resource @ApplicationPath( "/ rest " ) public class MyApplication extends javax.ws.rs.core.Application { } @Path( "/" ) public class RestService { @GET @Path( "/get" ) public String getMethod() { return "GET method" ; } } STEP: Run GET URI Path Template on the WildFly server ASSERT: Web Service Tester view is opened STEP: Change type of the request from GET to POST STEP: Invoke the request ASSERT: Response's headers contains message [HTTP/1.1 405 Method Not Allowed] FAIL: There is no response header (Response body is "Successful JAX-RS Web Service Execution")

      Gliffy Diagrams

        Attachments

          Activity

            People

            • Assignee:
              bfitzpat Brian Fitzpatrick
              Reporter:
              rrabara Radoslav RĂ¡bara
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: