title: Invoke RESTful webservice with parameter
body: <p>I have a simple RESTful web service that print "Hello World !"
  I'm using NetBeans and the code looks like:</p>
  
  <pre><code>package resource;
  
  import javax.ws.rs.core.Context;
  import javax.ws.rs.core.UriInfo;
  import javax.ws.rs.Consumes;
  import javax.ws.rs.PUT;
  import javax.ws.rs.Path;
  import javax.ws.rs.GET;
  import javax.ws.rs.Produces;
  
  
  @Path("simple")
  public class SimpleResource {
  
      @Context
      private UriInfo context;
  
      /** Creates a new instance of SimpleResource */
      public SimpleResource() {
      }
  
      @GET
      @Produces("application/xml")
      public String getXml() {
          //TODO return proper representation object
          return "&lt;greeting&gt;Hello World !&lt;/greeting&gt;";
      }
  
      @PUT
      @Consumes("application/xml")
      public void putXml(String content) {
      }
  }
  </code></pre>
  
  <p>I call this web service from this URL : <code>http://localhost:8080/WebService/resources/simple</code>.
  Now,  I want to send a parameter to this web service, then print this parameter after the "Hello world" message.</p>
  
  <p>How can we do that?</p>
  
  <p>Thanks!</p>