users@jersey.java.net

RE: WADL to html...

From: Rabick, Mark A (IS) <"Rabick,>
Date: Mon, 18 May 2009 10:01:55 -0500

>> do you know how to fill the documentation ?
> where to write what to appear on the output ?

I'm not sure what you're asking here. The piece I haven't got to work yet are the references to the .xsd grammar file. If I run the xslt transform using the saxon command line with the application-grammars.xml populated with an xsd:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<grammars xmlns="http://research.sun.com/wadl/2006/10"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xi="http://www.w3.org/1999/XML/xinclude">
    <include href="cnodb-ws-v1.xsd" />
</grammars>

My ant task is:

        <target description="Generate a human readable html version of the application.wadl."
                name="build-wadl-html" depends="build-wadl">
                
                <property name="saxon.jar" value="build-support/saxon9.jar"/>
                <java dir="${build.dir}" jar="${saxon.jar}" fork="true">
                        <arg value="-t"/>
                        <arg value="-s:CDAL-application.wadl"/>
                        <arg value="-xsl:../wadl_doc/wadl_documentation.xsl"/>
                        <arg value="-o:CDAL-application-wadl.html"/>
                        <classpath>
                                <pathelement location="build/classes"/>
                        </classpath>
                </java>
        </target>

The generated html includes links under the 'representation' section(s) to the embedded xsd for my elements. The server generated version does not. It may not be finding the xsd in the classpath.

As far as Glassfish is concerned, I'm not sure.. I'm running Weblogic 10.1 on JDK 1.5.0_15 and Weblogic 10.3 on JDK 1.6.0_05.

--mark
_______________________________________________
Mark A. Rabick - Software Engineer
Em: mark.rabick_at_ngc.com

 

> -----Original Message-----
> From: Felipe Gaścho [mailto:fgaucho_at_gmail.com]
> Sent: Saturday, May 16, 2009 5:48 AM
> To: Rabick, Mark A (IS)
> Subject: Re: WADL to html...
>
> do you know how to fill the documentation ?
>
> where to write what to appear on the output ?
>
> 2009/5/16 Felipe Gaścho <fgaucho_at_gmail.com>:
> > it worked.. (but I couldn't include the xsl in my service :(
> >
> > here: http://fgaucho.dyndns.org:8080/footprint-service/wadl
> >
> > now I need to check how to document my service with this xsl.....
> >
> > thanks a lot.......
> >
> > 2009/5/16 Felipe Gaścho <fgaucho_at_gmail.com>:
> >> ok, I found the problem:
> >>
> >> <class-loader delegate="false" />
> >>
> >> it need to be false.. otherwise some old library in the
> Glassfish was
> >> causing problems....
> >>
> >> now I have a second problem since my XSL never get exposed on the
> >> web..  I am not sure why..
> >>
> >> I am deploying it in an EAR file, it is in the correct
> place in the
> >> war file (inside the ear).. but I cant access it.. I am
> reviewing my
> >> deployment now.....
> >>
> >
> >
> >
> > --
> >
> > Please help to test this application:
> > http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
> >
>
>
>
> --
>
> Please help to test this application:
> http://fgaucho.dyndns.org:8080/cejug-classifieds-richfaces
>