[
http://issues.apache.org/jira/browse/AXIS-2113?page=comments#action_12316755 ]
Davanum Srinivas commented on AXIS-2113:
----------------------------------------
Glen:
I think SchemaUtils.getCollectionComponentQName() is skipping some
complex types from being added to Symbol table, and may be the root
cause of the series of WSDL2Java bugs that look like -
java.io.IOException: Type {.... }SomeType is referenced but not defined.
at o.a.a.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:663)
at o.a.a..wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at o.a.a.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
Also the above stacktrace is misleading while the root cause sits like
needle in haystack.
The code i'm referring to, which is added by the huge checkin for
wrapped array support, is the following:
SchemaUtils.java (lines 1380-1393)
NodeList children = sequence.getChildNodes();
Node element = null;
for (int i = 0; i < children.getLength(); i++) {
if (children.item(i).getNodeType() == Node.ELEMENT_NODE) {
if (element == null) {
element = children.item(i);
} else {
return null;
}
}
}
When the code above is commented out, all the complex types seem to be
added to symbol table, and the exception is not seen. For a test case,
please try the paypal WSDL mentioned in AXIS-2113 report. I'm not able
to add this as comment to the JIRA issue, since JIRA site seems to be
down at the moment.
any comments?
> WSDL Generation Does Not Work With Paypal
> -----------------------------------------
>
> Key: AXIS-2113
> URL: http://issues.apache.org/jira/browse/AXIS-2113
> Project: Apache Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2.1
> Environment: OSX 10.4 Java 1.4.2
> Reporter: Christian Gross
> Assignee: Venkat Reddy
> Priority: Blocker
>
> If I executed:
> java org.apache.axis.wsdl.WSDL2Java
> http://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl
> I get the error
> java.io.IOException: Type {urn:ebay:apis:eBLBaseComponents}Category is
> referenced but not defined.
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
> at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
> at java.lang.Thread.run(Thread.java:552)
> Executing the same command with Axis 1.2 RC3 I have no errors and the stubs
> are generated without any problems.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira