[
https://issues.apache.org/jira/browse/AXIS2-5637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Janke updated AXIS2-5637:
--------------------------------
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.
was:
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.
> Non-compiling wsdl2java XMLBeans code - nonexistent
> org.apache.axiom.om.OMElement.Factory
> ------------------------------------------------------------------------------------------
>
> Key: AXIS2-5637
> URL: https://issues.apache.org/jira/browse/AXIS2-5637
> Project: Axis2
> Issue Type: Bug
> Components: databinding, wsdl
> Affects Versions: 1.6.2
> 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
> Reporter: Andrew Janke
> Attachments: bogus_OMElement_factory.zip
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]