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]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.2.0.Beta3
    • 4.2.0.Beta2
    • webservices
    • None
    • 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")

    Attachments

      Activity

        People

          bfitzpat_rh Brian Fitzpatrick (Inactive)
          rrabara Radoslav RĂ¡bara (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved: