Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5754

axis2-wsdl2code-maven-plugin creates invalid sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Not A Problem
    • 1.7.1
    • None
    • adb
    • None

    Description

      I configured my axis2-wsdl2code-maven-plugin like so

      pom.xml
      <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>
      

      the result is, that the plugin is generating sources that do not compile. For example:

      Pw_type1.java
      {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}
          }
      
          ...
      }
      

      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?

      Attachments

        1. pom.xml
          12 kB
          Pascal Knüppel
        2. onlineService.zip
          8 kB
          Pascal Knüppel
        3. effective-pom.xml
          36 kB
          Pascal Knüppel
        4. dependencies.tree.txt
          9 kB
          Pascal Knüppel

        Activity

          People

            Unassigned Unassigned
            CaptGoldfish Pascal Knüppel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: