axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <>
Subject Axis 1.0 ==> Axis 1.1 Regression
Date Tue, 18 Mar 2003 01:51:43 GMT
I'm running up against a regression problem from 1.0 to 1.1.

Given the following class:

  package test.hello;
  import org.w3c.dom.Document;
  import org.w3c.dom.Element;
  public class Test {
    public Element getDocument() {
      return null;
    public Document getElement() {
      return null;

Axis 1.0 Java2WSDL would properly emit a WSDL document that mapped the 
Document object to an anyType element.  In Axis 1.1 an exception [1] is 
thrown by the WSDL4J code because of a missing namespace declaration. 
Looking at the Java2WSDL output from Axis 1.0 [2], and the namespace 
declaration is present. 

I've looked through the code and because of the disturbingly high number 
of changes that have been made to the 
org.apache.axis.wsdl.fromJava.Emitter class, I cannot isolate the specific 
change that is causing the regression. 

Can someone who understands this code a lot more than I do take a look. As 
this is a regression from 1.0 that could potentially impact existing 
applications a good deal, this needs to be resolved before we release 1.1.

WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 
''. Namespace prefixes must be set on the Definition 
object using the  addNamespace(...) method.:
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(
        at org.apache.axis.wsdl.fromJava.Emitter.emit(
        at org.apache.axis.wsdl.Java2WSDL.main(


- James Snell
     IBM Emerging Technologies
     (877) 511-5082 (voice/fax)   ** NEW NUMBER **
     (700) 930-1979 (t/l)                ** NEW NUMBER **
     Programming Web Services With SOAP
         O'Reilly & Associates, ISBN 0596000952

     Have I not commanded you? Be strong and courageous. 
     Do not be terrified, do not be discouraged, for the Lord your 
     God will be with you whereever you go.    - Joshua 1:9
View raw message