title: Posting File and JSON data in apache CXF
body: <p>i am using Apache CXF RESTful webservice to upload a file at the same time sending JSON data to as shown:</p>
  
  <pre><code>@POST
      @Path( "/upload/doc" )
      @Consumes( { MediaType.MULTIPART_FORM_DATA, MediaType.APPLICATION_JSON })
      @Produces( MediaType.APPLICATION_JSON )
      public Response uploadRateSheet( @Multipart( value = "file" ) Attachment attachment, DocumentApiModel doc)
      {
          ...
  
  }
  </code></pre>
  
  <p>i am using REST client to send JSON data and file.
  when i send the request, i am getting foll error:</p>
  
  <pre><code>No message body reader has been found for class DocumentApiModel
  </code></pre>
  
  <p>please help...</p>
  
  <p>Thank you.</p>