Issue Details (XML | Word | Printable)

Key: AXIS2-660
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Kenneth Tam
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Axis 2.0 (Axis2)

Support JAX-B RI databinding for WSDL2Java

Created: 04/May/06 12:57 AM   Updated: 05/May/06 11:37 AM
Return to search
Component/s: databinding
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Java Archive File Licensed for inclusion in ASF works jaxb_ri.jar 2006-05-04 02:19 AM Kenneth Tam 9 kB
Text File Licensed for inclusion in ASF works jaxb_ri.patch 2006-05-04 02:13 AM Kenneth Tam 7 kB

Resolution Date: 05/May/06 11:37 AM


 Description  « Hide
I've added support for using the JAX-B RI with WSDL2Java. This patch just includes the initial support to get the appropriate databinding extension registered, and calling the RI's XJC compiler. Code gen is working for basic cases -- I have not yet started on runtime support.

I've followed the reflection-based pattern for loading the RI, per the recent changes in the XMLBeans and JiBX binding extensions. Compile-time deps on the RI are limited to the new jaxbri module, and at runtime if the JAX-B RI JARs are not available on the classpath, WSDL2Java will throw an appropriate exception & msg.

A sample command line:

wsdl2java -uri foo.wsdl -d jaxbri



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #399957 Fri May 05 04:37:28 UTC 2006 dims Fix for AXIS2-660

HACK ALERT!
- the java.net repo mentioned in Kohsuke's blog is not usable from maven1 as it is "https:"
- The ibiblio has the EA3 jars but the layout is again maven2 (http://ibiblio.org/maven2/com/sun/xml/)

So,
I hacked the groupId, artifactId and maven.repo.remote to carefully construct the url for the jars. See project.xml in jaxbri maven module and you will understand :)
Files Changed
ADD /webservices/axis2/trunk/java/modules/jaxbri/src/org
ADD /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/extension/JAXBRIExtension.java
ADD /webservices/axis2/trunk/java/modules/jaxbri
ADD /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/jaxbriAntBuildTemplate.xsl
ADD /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri
ADD /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache
MODIFY /webservices/axis2/trunk/java/etc/project.properties
ADD /webservices/axis2/trunk/java/modules/jaxbri/project.xml
MODIFY /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/codegen-config.properties
MODIFY /webservices/axis2/trunk/java/maven.xml
ADD /webservices/axis2/trunk/java/modules/jaxbri/maven.xml
ADD /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2
ADD /webservices/axis2/trunk/java/modules/jaxbri/src
ADD /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
ADD /webservices/axis2/trunk/java/modules/jaxbri/project.properties