FYI, If others see this problem. It appears to be a crimson issue. When I used Xerces it worked fine.
-----Original Message----- From: Richards, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 4:33 PM To: [EMAIL PROTECTED] Subject: WSDL2Java exception with complex .NET WSDL 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. Again this is something that I can easily fix, by manually moving the definition from the offending line to the top of the file with the other definitions. So I am curious if this is considered a bug in axis, or whether Microsoft is interpreting the spec incorrectly? >java org.apache.axis.wsdl.WSDL2Java dotnet2.wsdl org.xml.sax.SAXException: Error: URI=file:/dotnet2.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:1 79) 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). Regards Mark