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=8191>. 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=8191 WSDLException when using Emitter twice and java.lang namespace Summary: WSDLException when using Emitter twice and java.lang namespace Product: Axis Version: beta-1 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Basic Architecture AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If I have a WSDL with java.lang namespace and I use the same Emitter twice to emit the same WSDL (I emit it to string and to file), then I get a WSDLException (see stacktrace below). 2 additional things about this: 1. The class WSDLException is not in the Beta1 JavaDoc 2. Why include java.lang namespace in the WSDL anyway? The Emitter does this because one of our methods throws one of our own Exception classes and so the Emitter includes the whole inheritence tree of this Exception class up to Throwable. If it would throw java.lang.Exception, then the Emitter would not do this. WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://lang.java'. Namespace prefixes must be set on the Definition object using the addNamespace(. ..) method.: at com.ibm.wsdl.util.xml.DOMUtils.getPrefix(DOMUtils.java:352) at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedValue(DOMUtils.java:336) at com.ibm.wsdl.util.xml.DOMUtils.printQualifiedAttribute(DOMUtils.java: 320) at com.ibm.wsdl.xml.WSDLWriterImpl.printParts(WSDLWriterImpl.java:706) at com.ibm.wsdl.xml.WSDLWriterImpl.printMessages(WSDLWriterImpl.java:676 ) at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(WSDLWriterImpl.java:1 11) at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(WSDLWriterImpl.java:923) at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(WSDLWriterImpl.java:902) at org.apache.axis.wsdl.fromJava.Emitter.emit(Unknown Source) at org.apache.axis.wsdl.fromJava.Emitter.emit(Unknown Source)