Hello. Thanks for an answer. I found it easier to just use schema classes that wadl2java produces and to build REST client from scratch as described here http://harryjoy.com/2012/09/08/simple-rest-client-in-java/ . Just in case someone will need this.
Thanks. On Tue, Jan 7, 2014 at 11:41 AM, Andrei Shakirin <[email protected]>wrote: > Hi, > > Wadl generator produces schema classes (jaxb based) and annotated service > interface. > You can use them for server as well for client side code (proxy or > WebClient based) > > Please take a look into > https://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.javatestPostGeneratedBook() > as an example. > > Regards, > Andrei. > > > -----Original Message----- > > From: Alex K [mailto:[email protected]] > > Sent: Samstag, 4. Januar 2014 15:22 > > To: [email protected] > > Subject: How to generate rest client with wadl2java > > > > Hello. > > > > On page > > https://cxf.apache.org/docs/jaxrs-services- > > description.html#JAXRSServicesDescription-wadl2javacommandlinetool > > > > it is said > > > > "*CXF 2.4.1 introduces a wadl2java code generator and > cxf-wadl2java-plugin > > Maven plugin which can be used to generate server and client JAX-RS code > > and speed up the transition between modeling and implementation > > stages.*" > > > > So, if I am correct, we could use wadl2java to generate client stubs, > not only > > server's. Please explain, how could this be achieved? > > > > Great thanks. > > > > -- > > Best regards, Alexey. > > С уважением, Алексей. > -- Best regards, Alexey. С уважением, Алексей.
