Withdraw my -1 to -0...Am not convinced that adding namespace is the right fix.
Thanks,
dims
--- Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> James,
>
> -1...This is not the right fix. We need to use typemapping to map Document to
> anyType.
>
> -- dims
>
> --- [EMAIL PROTECTED] wrote:
> > jmsnell 2003/03/17 20:34:12
> >
> > Modified: java/src/org/apache/axis/wsdl/fromJava Emitter.java
> > Log:
> > Temporary fix to address a regression (from 1.0 to 1.1
> > in the way org.w3c.dom.Document objects are handled. Without
> > this namespace declaration, Java2WSDL throws a fit. We need to
> > find an appropriate mapping for Document objects (they should
> > be treated the same as Element objects) and rework the code
> > accordingly.
> >
> > Revision Changes Path
> > 1.84 +9 -0 xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
> >
> > Index: Emitter.java
> > ===================================================================
> > RCS file:
> > /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
> > retrieving revision 1.83
> > retrieving revision 1.84
> > diff -u -r1.83 -r1.84
> > --- Emitter.java 22 Feb 2003 16:49:15 -0000 1.83
> > +++ Emitter.java 18 Mar 2003 04:34:12 -0000 1.84
> > @@ -676,6 +676,15 @@
> > Constants.NS_URI_XMLSOAP);
> > namespaces.putPrefix(Constants.NS_URI_XMLSOAP,
> > Constants.NS_PREFIX_XMLSOAP);
> > +
> > + // This is a temporary fix to address a regression (from 1.0 to 1.1
> > + // in the way org.w3c.dom.Document objects are handled. Without
> > + // this namespace declaration, Java2WSDL throws a fit. We need to
> > + // find an appropriate mapping for Document objects (they should
> > + // be treated the same as Element objects) and rework the code
> > + // accordingly.
> > + def.addNamespace("w3c", "http://dom.w3c.org");
> > + namespaces.putPrefix("http://dom.w3c.org", "w3c");
> > }
> >
> > /**
> >
> >
> >
>
>
> =====
> Davanum Srinivas - http://webservices.apache.org/~dims/
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com