title: Objects as parameters in Apache CXF REST service method
body: <p>What Exactly i need to do is to have a web service method in a REST API written in Apache CXF to accept a request like the following (preferably specifying a custom object as a parameter type)</p>
  
  <p><code>
  {
     "action":"read",
     "resource:"new resource"
  }
  </code></p>
  
  <p>For now my method can do the same but it would expect a JSON string as the request body. But I need the service to describe the request parameters to the client. Meaning that in the wadl definition it should show the exact parameters that should be sent from the client. The ideal definition would be something similar to</p>
  
  <pre><code>&lt;resource path="by-attrib"&gt;
    &lt;method name="GET"&gt;
      &lt;request&gt;
       &lt;param name="Accept" style="header" type="xs:string"/&gt;
       &lt;param name="Auth_Type" style="header" type="xs:string"/&gt;
       &lt;param name="Authorization" style="header" type="xs:string"/&gt;
       &lt;representation mediaType="application/json"&gt;
          &lt;param name="action" style="plain" type="xs:string"/&gt;
          &lt;param name="resource" style="plain" type="xs:string"/&gt;            
       &lt;/representation&gt;
     &lt;/request&gt;
     &lt;response&gt;
      &lt;representation mediaType="application/json"&gt;
        &lt;param name="result" style="plain" type="xs:string"/&gt;
      &lt;/representation&gt;
     &lt;/response&gt;
  &lt;/method&gt;
  &lt;/resource&gt;
  </code></pre>
  
  <p>Is this possible with CXF? 
  Please note that using @FormParam is not what I need, if I use form params, I get issues in sending a request using XML to the same method</p>
  
  <p>Thank You</p>