On Monday, June 13, 2011 8:41:47 PM Sagara Gunathunga wrote:
> I'm planning to do some works on Axis2 code base to get JAX-WS support
> for WSDL2JAVA and JAVA2WSDL tools . Writing a own module for Axis2 is
> a not a wise thing , at least for this moment. Calling a some other
> tool set within Axis2 tools is a most feasible option right now. One
> approach is invoke JDK WSImport/WSGen internally , this should work
> well but possible downside is we don't have any control for
> modifications and bugs. Other option is invoke CXF tools internally ,
> again we can gain same results also we can get fixes quickly even we
> can contribute in code level too.
> 
> Personally I would love to use CXF tools but still I haven't
> investigate required dependencies and compatibly of this. Appreciate
> if CXF folks can give their opinion on this idea.

This is definitely a better question for the dev@cxf list  instead of the ws 
list.      You can post and follow through nabble if you don't want to 
subscribe:

http://cxf.547215.n5.nabble.com/cxf-dev-f569328.html

In anycase, if you checkout CXF, the "module" that would be starting point 
would be the tools/wsdlto/frontend/jaxws    for the wsdl2java stuff.  That's 
definitely the easier of the two tools to look at.    A "mvn copy-
dependencies" in there yields:

commons-collections-3.2.1.jar             jaxb-xjc-2.1.13.jar
commons-lang-2.6.jar                     
cxf-api-2.5.0-SNAPSHOT.jar                neethi-3.0.0.jar
cxf-common-utilities-2.5.0-SNAPSHOT.jar   oro-2.0.8.jar
cxf-rt-core-2.5.0-SNAPSHOT.jar            stax2-api-3.1.1.jar
cxf-tools-common-2.5.0-SNAPSHOT.jar       velocity-1.6.4.jar
cxf-tools-validator-2.5.0-SNAPSHOT.jar    woodstox-core-asl-4.1.1.jar
cxf-tools-wsdlto-core-2.5.0-SNAPSHOT.jar  wsdl4j-1.6.2.jar
geronimo-javamail_1.4_spec-1.7.1.jar      xml-resolver-1.2.jar
jaxb-impl-2.1.13.jar                      xmlschema-core-2.0.jar

which is a bunch, but you probably already have a bunch of those and the cxf-* 
stuff could be shaded together (and likely have a bunch of stuff excluded from 
them).    Some may be excluded to use the in-jdk stuff (woodstox, mail).    


The java2wsdl stuff is MUCH MUCH more involved.   If you want to look, it's in 
tools/javato/ws.  However, it does bring in a very large chunk of CXF.   The 
java2* stuff pretty much uses the runtime components to setup a semi internal 
endpoint to pull the wsdl from.   This was done to make sure the runtime and 
tools are completely in sync together by making sure the the code to produce 
the wsdl from the code is really in just one place.    I'm not sure it will be 
possible to pull in the java2wsdl stuff without pulling in most of the JAX-WS 
minimal runtime.   



-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to