users@jersey.java.net

Re: [Jersey] [RFC/RFH] Generating WADL and using it with client

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Sun, 31 Aug 2008 14:21:59 +0200

Hi Imram,

On Thu, 2008-08-28 at 12:09 +0600, Imran M Yousuf wrote:
> On Wed, Aug 27, 2008 at 6:10 PM, Martin Grotzke
> <martin.grotzke_at_freiheit.com> wrote:
> > On Wed, 2008-08-27 at 08:45 +0600, Imran M Yousuf wrote:
> >> Hi Martin,
> >>
> >> On Wed, Aug 27, 2008 at 4:36 AM, Martin Grotzke
> >> <martin.grotzke_at_freiheit.com> wrote:
> >> > Hi Imran,
> >> >
> >> > On Mon, 2008-08-25 at 20:09 +0600, Imran M Yousuf wrote:
> >> [snip]
> >> >> >
> >> >> >> Additionally the schema file seemed to
> >> >> >> referred to from the wadl rather than including its content.
> >> >> >>
> >> >> >
> >> >> > Yes, we either need to include the XSD or make sure it can be referenced
> >> >> > relative to the base URI. BTW if you generate the application.html it does
> >> >> > have XSD embedded but it is making use of xsltproc.
> >> >>
> >> >> I am not making use of xsltproc instead I am using the
> >> >> xml-maven-plugin. I am using the following configuration for the
> >> >> transformation. Shouldn't the output be same?
> >> > With xsltproc the xsd files have to be in the same directory as the wadl
> >> > file so that xsd stuff is included in the output (if specified like you
> >> > did in the grammars element). Perhaps you can copy the xsd file to
> >> > appropriate location and add it to the includes...
> >>
> >> The XSD and WADL are both in ./target/classes/ folder thats how I
> >> generated the schema1.xsd. If the path is not correct the wadl
> >> generator usually throws an error :).
> > The xsd file should not be relevant for the wadl generator. What kind of
> > error do you get? Is this s.th. we should/can fix?
> >
> >> As mentioned by Paul I will try
> >> to generate using xsltproc once I get the qname properly set. and then
> >> check again :).
> > Can I help somehow? :)
>
> Sure, I would be grateful if you could attach the XSLT output from xsltproc :).
Here it is, based on the attachments of your email "[Jersey] [RFC/RFH]
Generating WADL and using it with client" (Mon, 25 Aug 2008 10:41:54
+0600) :)

Cheers,
Martin


>
> Best regards,
>
> Imran
>
> >
> > Cheers,
> > Martin
> >
> >>
> >> Thanks,
> >>
> >> Imran
> >>
> >> >
> >> > Cheers,
> >> > Martin
> >> >
> >>
> >
> >
>
>

-- 
Martin Grotzke
http://www.javakaffee.de/blog/

My Web Application

My Web Application

Resources

//book

Server side adapter.

Methods

//book//all

Methods

GET

available response representations:

//book//by-name?name

Methods

GET

request query parameters
parametervaluedescription

name

string

available response representations:

Representations

Status Code 200 - application/xml

Status Code 200 - application/xml