users@jersey.java.net

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

From: Imran M Yousuf <imran_at_smartitengineering.com>
Date: Thu, 28 Aug 2008 12:09:27 +0600

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 :).

Best regards,

Imran

>
> Cheers,
> Martin
>
>>
>> Thanks,
>>
>> Imran
>>
>> >
>> > Cheers,
>> > Martin
>> >
>>
>
>



-- 
Imran M Yousuf
Email: imran_at_smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557