Sounds like a bug.... Bug reports are good, bug reports with PATCHES get fixed. :-)
-- Tom Jordahl Macromedia Server Development -----Original Message----- From: Martin Kal�n [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 12:17 PM To: [EMAIL PROTECTED] Subject: Java2WSDL generates incorrect WSDL when using extraclasses Hello all, could anyone please help me out with this one. Is it a know bug and is there a simple work-around? When generating a WSDL file with Java2WSDL using the "extra classes" to include additional classes in the output, the WSDL file has some problems with namespaces. It seems that the emitter writes the namespace declarations before generating namespaces for extraclasses. I have a correct WSDL with 3 namespaces tns1-tns3, when adding two extra classes (A and "B extends A") the following XML is added to the WSDL for B: <complexType name="B"> <complexContent> <extension base="tns4:A"> <sequence> <element name="stringValue" nillable="true" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType> </schema> This is all good, but there is no namespace declaration for "tns4" in the header and WSDL2Java will bail out with the following error: java.io.IOException: Type A is referenced but not defined. Any comments on this one? -- Regards, Martin Kalen Curalia AB
