[prev in list] [next in list] [prev in thread] [next in thread]
List: axis-dev
Subject: [jira] [Updated] (AXIS2-5173) JAXB-RI databinding. Parsing XJC
From: "Andrew Nastyn (Updated) (JIRA)" <jira () apache ! org>
Date: 2011-10-29 14:09:32
Message-ID: 305559567.36792.1319897372390.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AXIS2-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Andrew Nastyn updated AXIS2-5173:
---------------------------------
Description:
This is supported in Axis2 1.6.x version. Provide the same for Axis 2 1.5.x.
Example wsdl2code-maven-plugin configuration:
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.5.6</version>
<executions>
<execution>
<id>generate service skeleton</id>
<phase>generate-sources</phase>
<inherited>false</inherited>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<packageName>...</packageName>
<generateAllClasses>false</generateAllClasses>
<generateServerSide>true</generateServerSide>
<databindingName>jaxbri</databindingName>
\
<generateServerSideInterface>true</generateServerSideInterface>
<generateServicesXml>true</generateServicesXml>
<wsdlFile>SomeService.wsdl</wsdlFile>
<namespaceURIs>
<namespaceURI>
<uri>...</uri>
<packageName>...</packageName>
</namespaceURI>
</namespaceURIs>
<options>
<property>
<name>bindingFileName</name>
<value>binding.jxb</value>
</property>
<!-- generate toString methods -->
<property>
<name>XtoString</name>
<value>someString</value>
</property>
<!-- generate equals methods -->
<property>
<name>Xequals</name>
<value>someString</value>
</property>
<!-- generate hashCode methods -->
<property>
<name>XhashCode</name>
<value>someString</value>
</property>
</options>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-jaxbri</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-codegen</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>${jaxb2.basics.version}</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-annotate</artifactId>
<version>${jaxb2.basics.annotate.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>${jaxb.version}</version>
</dependency>
</dependencies>
</plugin>
Properties with "X" prefix are not recognized.
Please find the patch attached (the code from 1.6 version).
was:
This is supported in Axis2 1.6.x version. Provide tha same for Axis 2 1.5.x.
Example wsdl2code-maven-plugin configuration:
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.5.6</version>
<executions>
<execution>
<id>generate service skeleton</id>
<phase>generate-sources</phase>
<inherited>false</inherited>
<goals>
<goal>wsdl2code</goal>
</goals>
<configuration>
<packageName>...</packageName>
<generateAllClasses>false</generateAllClasses>
<generateServerSide>true</generateServerSide>
<databindingName>jaxbri</databindingName>
\
<generateServerSideInterface>true</generateServerSideInterface>
<generateServicesXml>true</generateServicesXml>
<wsdlFile>SomeService.wsdl</wsdlFile>
<namespaceURIs>
<namespaceURI>
<uri>...</uri>
<packageName>...</packageName>
</namespaceURI>
</namespaceURIs>
<options>
<property>
<name>bindingFileName</name>
<value>binding.jxb</value>
</property>
<!-- generate toString methods -->
<property>
<name>XtoString</name>
<value>someString</value>
</property>
<!-- generate equals methods -->
<property>
<name>Xequals</name>
<value>someString</value>
</property>
<!-- generate hashCode methods -->
<property>
<name>XhashCode</name>
<value>someString</value>
</property>
</options>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-jaxbri</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-codegen</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>${jaxb2.basics.version}</version>
</dependency>
<dependency>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics-annotate</artifactId>
<version>${jaxb2.basics.annotate.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>${jaxb.version}</version>
</dependency>
</dependencies>
</plugin>
Properties with "X" prefix are not recognized.
Please find the patch attached (the code from 1.6 version).
> JAXB-RI databinding. Parsing XJC compiler options
> -------------------------------------------------
>
> Key: AXIS2-5173
> URL: https://issues.apache.org/jira/browse/AXIS2-5173
> Project: Axis2
> Issue Type: Improvement
> Components: codegen, databinding, Tools
> Affects Versions: 1.5
> Reporter: Andrew Nastyn
> Attachments: xjc_compiler_properties_support.patch
>
>
> This is supported in Axis2 1.6.x version. Provide the same for Axis 2 1.5.x.
> Example wsdl2code-maven-plugin configuration:
> <plugin>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>1.5.6</version>
> <executions>
> <execution>
> <id>generate service skeleton</id>
> <phase>generate-sources</phase>
> <inherited>false</inherited>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> <configuration>
> <packageName>...</packageName>
> <generateAllClasses>false</generateAllClasses>
> <generateServerSide>true</generateServerSide>
> <databindingName>jaxbri</databindingName>
> <generateServerSideInterface>true</generateServerSideInterface>
> <generateServicesXml>true</generateServicesXml>
> <wsdlFile>SomeService.wsdl</wsdlFile>
> <namespaceURIs>
> <namespaceURI>
> <uri>...</uri>
> <packageName>...</packageName>
> </namespaceURI>
> </namespaceURIs>
> <options>
> <property>
> <name>bindingFileName</name>
> <value>binding.jxb</value>
> </property>
> <!-- generate toString methods -->
> <property>
> <name>XtoString</name>
> <value>someString</value>
> </property>
> <!-- generate equals methods -->
> <property>
> <name>Xequals</name>
> <value>someString</value>
> </property>
> <!-- generate hashCode methods -->
> <property>
> <name>XhashCode</name>
> <value>someString</value>
> </property>
> </options>
> </configuration>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-jaxbri</artifactId>
> <version>1.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-codegen</artifactId>
> <version>1.5.6</version>
> </dependency>
> <dependency>
> <groupId>org.jvnet.jaxb2_commons</groupId>
> <artifactId>jaxb2-basics</artifactId>
> <version>${jaxb2.basics.version}</version>
> </dependency>
> <dependency>
> <groupId>org.jvnet.jaxb2_commons</groupId>
> <artifactId>jaxb2-basics-annotate</artifactId>
> <version>${jaxb2.basics.annotate.version}</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>${jaxb.version}</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>${jaxb.version}</version>
> </dependency>
> </dependencies>
> </plugin>
> Properties with "X" prefix are not recognized.
> Please find the patch attached (the code from 1.6 version).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic