axis-ant.jar contains Ant tasks corresponding to WSDL2Java, Java2WSDL and a few other utilities.
Btw, (be warned) for some very strange reason I had very little success generating valid WSDL using Java2WSDL from Ant scripts -- both when using the Ant task Java2WsdlAntTask and when using the <java> command; I finally had to resort to calling a batch file using the Ant <exec> command -- the batch file makes the call to Java2WSDL utility. -----Original Message----- From: Nicholas To: [EMAIL PROTECTED] Sent: 3/5/2003 5:18 PM Subject: Re: wsdl and documentation > i never thought it'd be simple :(. And like I said > before: xdoclet. Though I > still think you should write the WSDL and generate > the server and client > code from it, as if it was just another IDL syntax. Anyone know about any Ant tasks to do exactly this ? //Nicholas --- Steve Loughran <[EMAIL PROTECTED]> wrote: > > > ----- Original Message ----- > From: "Pascale, Peter H." > <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 26, 2003 06:33 > Subject: RE: wsdl and documentation > > > > Why does java2wsdl run against the .class files? > Is that to ensure the > WSDL > > is generated from a compile-able version of the > interface? Or because > > reflection is the main approach to capturing the > necessary info? > > reflection is the main approach to getting the info, > though debugging info > is used to get at things like parameter names. The > alternative would be to > parse the source, and there is no need to do that > when reflection does it > for you. > > > > > I guess this kills my thinking that this might be > simple. > > > > i never thought it'd be simple :(. And like I said > before: xdoclet. Though I > still think you should write the WSDL and generate > the server and client > code from it, as if it was just another IDL syntax. > > > Peter > > > > -----Original Message----- > > From: Steve Loughran [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 10:37 AM > > To: [EMAIL PROTECTED] > > Subject: Re: wsdl and documentation > > > > > > ----- Original Message ----- > > From: "Pascale, Peter H." > <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, February 25, 2003 07:49 > > Subject: RE: wsdl and documentation > > > > > > > This is an interesting thought - it doesn't seem > like it would be that > > hard. > > > Is anyone doing this, or interested in pairing > up on it? I'd be game. > How > > > can you find out if someone else is already > working it out? > > > > > > Peter > > > > java2wsdl runs against .class files. To get the > javadocs you need to get > at > > the .java source, then somehow preserve the > results for the existing > > java2wsdl file *or* completely generate the WSDL > at compile time. Why not > > just write the WSDL and create the server-side > code and the client-side > > code? > > > > if you must do it, use xdoclet as the foundation. > > > > > ************************************************************************ **** > > This email may contain confidential material. > > If you were not an intended recipient, > > Please notify the sender and delete all copies. > > We may monitor email to and from our network. > > > ************************************************************************ **** > > > ===== Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/
