Cannot pass @QueryParam parameters to @POST method in JAX-RS web service

Solution Verified - Updated -

Issue

  • I have a REST web service with this POST method:

    @POST
    @Path("/doSomething")
    public String doSomething(@QueryParam("param") String param) throws Exception;
    
  • I am able to call it from external applications but not able to pass the parameter (param). The parameter is always null.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.0.x
  • Red Hat JBoss Fuse (Fuse)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In