|
From: William A. S. <wil...@gm...> - 2015-01-16 14:36:37
|
Hello TOm, have you seems resteasy multipart test classes? https://github.com/resteasy/Resteasy/tree/RESTEASY_JAXRS_1_2_GA_CP03/providers/multipart/src/test/java/org/jboss/resteasy/test/providers/multipart I think it could help you when creating your own client -- *William Antônio Siqueira* *Java Support Analyst* *http://fxapps.blogspot.com <http://fxapps.blogspot.com>* *http://www.williamantonio.wordpress.com <http://www.williamantonio.wordpress.com>* *http://williamprogrammer.com <http://williamprogrammer.com>* 2015-01-16 12:25 GMT-02:00 Tom Butt <tb...@re...>: > We use the ProxyFactory to create clients in resteasy and typically define > interfaces as: > > @GET > @Path("/{id}") > @Produces("application/xml") > ClientResponse<String> getDataByTitle(@PathParam("id") String id, > @QueryParam(value = "title") String name); > > or similar. > > I need to consume a multipart/form-data resource that would be curl'd like: > > curl -kvLX POST -u $USERNAME:$PASSWORD -H "Content-Type: > multipart/form-data" --form "name=logo" --form "files[files]=@cloud.png" > --form "force=1" "<someurl>/attach_file" > > I've tried a number of things that have me spinning my wheels with various > errors and I feel like I'm on multiple misguided paths. Any point in the > right direction would be GREATLY appreciated. > > -Tom > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Resteasy-users mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/resteasy-users > |