[
https://issues.apache.org/jira/browse/AXIS2-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pascal Knüppel updated AXIS2-5754:
----------------------------------
Attachment: pom.xml
thats really not the case. I use version 1.7.1
I attach my pom.xml to prove that I am not mistaken in this case.
it works though if I try to build it with version 1.5.1.
> axis2-wsdl2code-maven-plugin creates invalid sources
> ----------------------------------------------------
>
> Key: AXIS2-5754
> URL: https://issues.apache.org/jira/browse/AXIS2-5754
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.7.1
> Reporter: Pascal Knüppel
> Priority: Blocker
> Attachments: onlineService.zip, pom.xml
>
>
> I configured my axis2-wsdl2code-maven-plugin like so
> {code:title=pom.xml|borderStyle=solid}
> <plugin>
> <groupId>org.apache.axis2</groupId>
> <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
> <version>${axis2-version}</version>
> <executions>
> <execution>
> <phase>generate-sources</phase>
> <goals>
> <goal>wsdl2code</goal>
> </goals>
> <configuration>
>
> <packageName>de.fiverx.steuerberater.ws.v1</packageName>
>
> <wsdlFile>etc/XML/WSDL/v1/SteuerberaterOnline.wsdl</wsdlFile>
> <databindingName>adb</databindingName>
> <generateServerSide>true</generateServerSide>
>
> <generateServerSideInterface>true</generateServerSideInterface>
> <generateServicesXml>true</generateServicesXml>
> <generateAllClasses>true</generateAllClasses>
> <namespaceToPackages>
>
> http://ws.gfi-bremen.de/SteuerberaterOnline/v1=de.fiverx.steuerberater.gfi_bremen.v1,http://ws.gfi-bremen.de/online/services/SteuerberaterOnline/v1=de.fiverx.steuerberater.gfi_bremen.v1,http://ws.gfi-bremen.de/types/v1=de.fiverx.steuerberater.gfi_bremen,http://fiverx.de/spec/abrechnungsservice=de.fiverx.steuerberater.spec.abrechnungsservice
> </namespaceToPackages>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> the result is, that the plugin is generating sources that do not compile. For
> example:
> {code:title= Pw_type1.java|borderStyle=solid}
> {color:red}public class Pw_type1 implements
> org.apache.axis2.databinding.ADBBean {color}{
> ...
> /**
> *
> * @param parentQName
> * @param factory
> * @return org.apache.axiom.om.OMElement
> */
> public org.apache.axiom.om.OMElement getOMElement(
> final javax.xml.namespace.QName parentQName,
> final org.apache.axiom.om.OMFactory factory)
> throws org.apache.axis2.databinding.ADBException {
> return {color:red}factory.createOMElement(new
> org.apache.axis2.databinding.ADBDataSource(
> this, MY_QNAME));{color}
> }
> ...
> }
> {code}
> the lines "that I unfortunately could not get red" are invalid since
> org.apache.axis2.databinding.ADBDataSource is an abstract class and the
> generated class *Pw_type1* does not implement the abstract methods. Also is
> it trying to directly instantiate the abstract class.
> Or am I doing something really stupid here that is causing this problem?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]