Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.5
-
None
-
None
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).