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

Non-compiling wsdl2java XMLBeans code - nonexistent org.apache.axiom.om.OMElement.Factory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: databinding, wsdl
    • Labels:
      None
    • Environment:
      Windows 7 Pro x64 SP1 with all Windows Updates applied as of 2014-03-13.
      Running on MacBook Pro under Boot Camp.
      Oracle Java JDK 1.7.0_51
      Rampart 1.6.2 installed in to my AXIS2_HOME installation

      Description

      The wsdl2java tool is generating non-compiling Java code for me when I use it on the WSDL file from https://misapi.ercot.com/2007-08/Nodal/eEDS/EWS/?WSDL. The "ant" call errors out complaining about missing identifiers.

      This WSDL is a bit odd in that it uses generic XML documents as payloads for most of its calls, and includes and embedded (at least partial) schema for them.

      To reproduce:

      Download the WSDL file from https://misapi.ercot.com/2007-08/Nodal/eEDS/EWS/?WSD and save as ERCOT-nodal-ews_downloaded.wsdl.
      mkdir artifacts
      cd artifacts
      wsdl2java -uri ..\ERCOT-nodal-ews_downloaded.wsdl -p com.example.ercotnodal -d xmlbeans -s
      mkdir resources
      ant > build-output.txt

      I get an error output that looks like the following.

      [javac] C:\temp\artifacts\src\com\example\ercotnodal\NodalServiceStub.java:659: error: cannot find symbol
      [javac] return org.apache.axiom.om.OMElement.Factory.parse(
      [javac] ^
      [javac] symbol: variable Factory
      [javac] location: interface OMElement

      BUILD FAILED
      C:\temp\artifacts\build.xml:50: Compile failed; see the compiler error output for details.

      This error only happens with the "-d xmlbeans" databinding. The "-d adb" and "-d jaxbri" generate code that compiles for the same WSDL.

      The files to reproduce, and the exact non-compiling code I got are attached in bogus_OMElement_factory.zip.

        Attachments

        1. bogus_OMElement_factory.zip
          18 kB
          Andrew Janke

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              apjanke Andrew Janke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: