java.io.File MessageBodyReader for JAX-RS

2009-04-07 Thread adam.galloway
In reading the documentation for JAX-RS it says "By default, CXF supports String, byte[], InputStream, Reader, File ...". I'm trying to create a service that will accept a file upload using the following signature: @POST @Path("/upload/") @Consumes("application/octet-stream") public Response up

RE: JAX-RS response for POST and PUT no longer working

2009-02-24 Thread adam.galloway
back, with the same type involved. > > Can you please provide few more details. > What are ContentType and Accept values ? > > Thanks, Sergey > > -Original Message- > From: adam.galloway [mailto:adam.gallo...@scala.com] > Sent: 24 February 2009 19:04 > T

JAX-RS response for POST and PUT no longer working

2009-02-24 Thread adam.galloway
I have a JAX-RS service with create and update methods that return data objects rather than a JAX-RS Response object. I am using the 2.2-SNAPSHOT and as of recently I get an error from my POST and PUT methods @Path("my-service") public class MyService { @WebMethod @POST @Path("/detail/") @Consu

Another question about nillable=true and minOccurs=0

2009-02-18 Thread adam.galloway
I have a JAX-RS service that Consumes json which maps to a POJO with JAXB. I'm having a hard time finding out how to tell wether a particular field has been sent in with a null value or whether the value of the field was left out of the incoming json. The basic idea is that I have a pojo defined