You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/02/18 20:00:48 UTC
DO NOT REPLY [Bug 17176] New: -
WSDL2Java throws a SAX exception when digesting complex .NET WSDL
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17176>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17176
WSDL2Java throws a SAX exception when digesting complex .NET WSDL
Summary: WSDL2Java throws a SAX exception when digesting complex
.NET WSDL
Product: Axis
Version: 1.1RC1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: WSDL processing
AssignedTo: axis-dev@ws.apache.org
ReportedBy: Mark.Richards@fmr.com
I have a .NET service that returns an array of widgets and the wsdl contains
the flowing definition of a complex type
<s:complexType name="ArrayOfWidget">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:attribute d7p1:arrayType="s0:widget[]" ref="soapenc:arrayType"
xmlns:d7p1="http://schemas.xmlsoap.org/wsdl/" />
</s:restriction>
</s:complexContent>
</s:complexType>
Although the d7p1 namespace definition follows the entry in the wsdl,
WSDL2JJava complains about the undeclared prefix.
I get the following exception
org.xml.sax.SAXException: Error: URI=file:/C:/AMR/junk/axistest/testNet.wsdl
Line=20: Undeclared prefix: "d7p1:arrayType".
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.error
(XMLUtils.java:619)
at org.apache.crimson.parser.Parser2.error(Parser2.java:3018)
at org.apache.crimson.parser.Parser2.processName(Parser2.java:1581)
at org.apache.crimson.parser.Parser2.processAttributeNS
(Parser2.java:1553)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1410)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse
(DocumentBuilderImpl.java:179)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate
(SymbolTable.java:384)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Thread.java:484)