axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Reif" <ben.r...@gmail.com>
Subject Re: [Axis2] Java2WSDL with JAX-WS and JAXB annotations
Date Fri, 21 Dec 2007 14:27:23 GMT
Thanks Dennis, I'll take a look at that as well, that may be our only
choice. I guess at the end of the day, I'm looking to see how I can exclude
certain types from being generated in the WSDL. Using @XmlTransient alone
doesn't do it. In Axis 1.4 I could take advantage of the
org.apache.axis.wsdl.fromJava.Types.getStopClasses() List, so I'm wondering
if there is similar functionality to utilize in the Axis2 infrastructure?

Ben


On 12/20/07, Dennis Sosnoski <dms@sosnoski.com> wrote:
>
> Hi Ben,
>
> You may have better luck using Jibx2Wsdl:
> http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/jibx2wsdl You can
> also see the article at
> http://www.infoq.com/articles/sosnoski-code-first discussing "code
> first" approaches in general, and Jibx2Wsdl in particular. Jibx2Wsdl
> handles a wider range of inputs than Java2WSDL, and also supports
> customizations to change the default generation process. You may find
> that using the generated JiBX data binding also gives you a way to
> easily use your existing data classes with Axis2.
>
> I'll see about adding some links on this to the download documentation
> for Axis2 1.4. There doesn't seem to be much point in recommending
> people use Java2WSDL when there are many known limitations, and
> Jibx2Wsdl does a better job all around. I'll also try to get the
> documentation finished and a formal release of Jibx2Wsdl soon.
>
> - Dennis
>
> --
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Axis2 Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Ben Reif wrote:
> > Duncan,
> >
> > Thanks for the input. We're trying to incorporate the WSDL generation
> > into another automated process, so manually generating it with the
> > NetBeans IDE probably won't work for us. I have however, tried using
> > the WsGen tool as well, and I noticed a different problem, the
> > generated WSDL didn't indicate that the operations threw any Faults at
> > all. They were missing from the WSDL completely. Does anyone else have
> > any other thoughts or ideas?
> >
> > Ben
> >
> > On 12/20/07, *Thomson, Duncan* <duncant@mitre.org
> > <mailto:duncant@mitre.org>> wrote:
> >
> >     >-----Original Message-----
> >     >From: Ben Reif [mailto:ben.reif@gmail.com
> >     <mailto:ben.reif@gmail.com>]
> >     >Sent: Tuesday, December 18, 2007 5:34 PM
> >     >To: axis-user@ws.apache.org <mailto:axis-user@ws.apache.org>
> >     >Subject: [Axis2] Java2WSDL with JAX-WS and JAXB annotations
> >     >
> >     >Hi,
> >     >
> >     >As I understand it, now the best way to re-use your existing
> >     >code is to use the JAX-WS and JAXB annotations and then run
> >     >your code through the Axis2 Java2WSDL utility passing in the
> >     >"-sg" argument with the value "
> >     >org.apache.axis2.jaxbri.JaxbSchemaGenerator". ....in theory should
> be
> >     >portable to other platforms and tools as well.
> >     >
> >
> >     FYI, Netbeans has very nice JAX-WS and JAXB support, and does a very
> >     nice job of annotation processing.  Note that if you use this you
> >     don't
> >     need Axis at all - instead of Java2WSDL the Netbeans IDE uses a
> >     different set of tools - wsgen and wsimport, if I remember
> correctly.
> >     You can also launch these tools directly yourself, and perhaps
> >     they are
> >     available within other IDEs, I'm not sure.
> >
> >     Anyway, the point is, as far as I can tell, with these tools,
> there's
> >     really no need for Axis2.  Perhaps someone else will explain why
> it's
> >     needed, but I don't see it.
> >
> >     Duncan
> >
> >
> ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <mailto:axis-user-unsubscribe@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <mailto:axis-user-help@ws.apache.org>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Mime
View raw message