title: How to pass Calendar param as input to a rest service?
body: <p>Here is what I am trying to do:</p>
  
  <pre><code>@POST
  @Path("/MyPath")
  @Produces("text/xml")
  @RolesAllowed({"user"})
  public Output myMethod (@QueryParam("itemId") long ItemId, 
                                      @QueryParam("plannedstartdate") Calendar plannedStartDate, 
                                      @QueryParam("plannedreturndate") Calendar plannedReturnDate)
  </code></pre>
  
  <p>I am using JBoss AS7. As far as I understan, resteasy is integrated into JBoss AS7. I am able to run simple rest services.</p>
  
  <p>The only documentation I found about passing dates is at the link :
  <a href="http://docs.jboss.org/resteasy/2.0.0.GA/userguide/html/StringConverter.html#StringParamUnmarshaller" rel="nofollow">http://docs.jboss.org/resteasy/2.0.0.GA/userguide/html/StringConverter.html#StringParamUnmarshaller</a></p>
  
  <p>I am not able to follow this and fix the issue as the instructions are not clear.
  When I try to create an annotation DateFormat as given in the example, it does not recognize StringParamUnmarshaller. I don't know where to get it from. If resteasy is already integrated into JBoss AS7, is this not supposed to be recognized?</p>
  
  <p>My pom.xml has the following dependency:</p>
  
  <pre><code>  &lt;!-- Import the JAX-RS API, we use provided scope as the API is included 
       in JBoss AS 7 --&gt;
    &lt;dependency&gt;
       &lt;groupId&gt;org.jboss.spec.javax.ws.rs&lt;/groupId&gt;
       &lt;artifactId&gt;jboss-jaxrs-api_1.1_spec&lt;/artifactId&gt;
       &lt;scope&gt;provided&lt;/scope&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>The calls to this method fail as the String to Calendar conversion does not happen. I dont want to pass String instead of Calendar as there are other clients that make java call directly. Can anyone help with how I can pass dates to Rest Calls?</p>
  
  <p>Thanks
  Veer</p>