Re: wadl2java returning JAXB and headers

2014-04-17 Thread Graham Leggett
On 17 Apr 2014, at 5:50 PM, Sergey Beryozkin wrote: > It is not possible to return Response. > If you only had > > > > then you'd get Response, but I agree having a schema element reference may be > useful for the 3rd party consumers of WADL. > > We will need to introduce an option to return

Re: wadl2java returning JAXB and headers

2014-04-17 Thread Graham Leggett
On 17 Apr 2014, at 5:50 PM, Sergey Beryozkin wrote: > It is not possible to return Response. > If you only had > > > > then you'd get Response, but I agree having a schema element reference may be > useful for the 3rd party consumers of WADL. > > We will need to introduce an option to return

wadl2java returning JAXB and headers

2014-04-17 Thread Graham Leggett
Hi all, When I run wadl2java on the following fragment of wadl, I get the API interface defined below: The SHA1 hash of the sum of DN and modifiedTimestamp of the matching users. The Cache-Control header as

wadl2java returns void instead of Response

2014-03-17 Thread Graham Leggett
Hi all, I am having a strange case of where despite the response being defined, the code generated by wadl2java returns void instead. The generated code looks like this: @POST @Consumes("application/x-www-form-urlencoded") @Path("/password/{mail}") void changePassword(@PathParam

wadl2java and generated interfaces, how to use with jersey?

2014-03-14 Thread Graham Leggett
Hi all, I have wadl2java generating an interface as below, and I have an implementation in the same package that implements that interface, but jersey cannot find it: @GET @Produces("application/json") @Path("/browse/{mail}") Response retrieveUser(@PathParam("mail") String mail,

Re: wadl2java and the generation of documentation

2014-03-12 Thread Graham Leggett
On 12 Mar 2014, at 11:28 PM, Graham Leggett wrote: > A quick patch for that one: git left off the added test cases: diff --git a/core/src/test/java/org/apache/cxf/helpers/JavaUtilsTest.java b/core/src/test/java/org/apache/cxf/helpers/JavaUtilsTest.java new file mode 100644 index

Re: wadl2java and the generation of documentation

2014-03-12 Thread Graham Leggett
On 12 Mar 2014, at 3:55 PM, Sergey Beryozkin wrote: >> I've opened an enhancement request: >> https://issues.apache.org/jira/browse/CXF-5606 >> >> I can also seed a minor issue on the generated signature above, >> 'java.util.Date' should be just 'Date' with 'java.util.Date' going into >> the imp

Re: cxf-wadl2java-plugin and generating grammers from XSD

2014-03-12 Thread Graham Leggett
On 12 Mar 2014, at 7:17 PM, Sergey Beryozkin wrote: >> WADL can define a grammar to use for request and response formats, is >> wadl2java able to include these grammars into the generated code? > Yes Are there any working examples of how this is done? I find I'm struggling with a lot of docume

cxf-wadl2java-plugin and generating grammers from XSD

2014-03-12 Thread Graham Leggett
Hi all, WADL can define a grammar to use for request and response formats, is wadl2java able to include these grammars into the generated code? Regards, Graham --

wadl2java and the generation of documentation

2014-03-12 Thread Graham Leggett
Hi all, I have managed to get the maven cxf-wadl2java-plugin working and generating some interfaces from wadl, and this is working well. One missing piece is documentation - our wadl file contains doc elements, but these doc elements aren't ending up in the code, either as code comments (for t