Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 85737 invoked from network); 26 Jul 2005 07:37:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2005 07:37:48 -0000 Received: (qmail 33273 invoked by uid 500); 26 Jul 2005 07:37:39 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 33223 invoked by uid 500); 26 Jul 2005 07:37:39 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 33198 invoked by uid 99); 26 Jul 2005 07:37:39 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2005 00:36:51 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id C58DAE1 for ; Tue, 26 Jul 2005 09:36:43 +0200 (CEST) Message-ID: <1812644836.1122363403807.JavaMail.jira@ajax.apache.org> Date: Tue, 26 Jul 2005 09:36:43 +0200 (CEST) From: "xiao-fei song (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-2132) WSDL document object generated by AxisServer can not be read successfully using WSDL4J API In-Reply-To: <1807771854.1121927625534.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-2132?page=3Dcomments#action= _12316724 ]=20 xiao-fei song commented on AXIS-2132: ------------------------------------- Some more investigations have been made which reveal that the issue is caus= ed by the combination between axis and xerces xml parser. As I made some co= de like below in QSWSDLHanderl.java: private void printElement(Document wsdlDoc) { Element element =3D wsdlDoc.getDocumentElement(); for(Element element1 =3D DOMUtils.getFirstChildElement(element); el= ement1 !=3D null; element1 =3D DOMUtils.getNextSiblingElement(element1)) { System.out.println("element1: " + element1.getNodeType() + " : = " + element1.getNodeName()); for(Element element2 =3D DOMUtils.getFirstChildElement(element1= ); element2 !=3D null; element2 =3D DOMUtils.getNextSiblingElement(element2= )) { System.out.println(" element2.class =3D " + element2.get= Class()); System.out.println(" getNamespaceURI =3D" + element2.get= NamespaceURI()); System.out.println(" getLocalName =3D" + element2.getLoc= alName()); } } } I found output in the log file: =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element1: 1 : wsdl:types =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.ElementImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.ElementImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: element2.class =3D class org= .apache.xerces.dom.DeferredElementNSImpl =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 14:26:02 2005: getLocalName =3Dpart ... Which means the "wsdl:types" parts of the document object is not org.apache= .xerces.dom.DeferredElementNSImpl but org.apache.xerces.dom.ElementImpl. Si= nce org.apache.xerces.dom.ElementImpl#getLocalName() always return NULL, th= us we get this QName error in WSDL4J code. So, the question is, why the wsd= l:types part is not org.apache.xerces.dom.DeferredElementNSImpl while all t= he other parts are? When it comes that axis is working with crimson parser, I get below output: =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element1: 1 : wsdl:types =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dschema =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dnull =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dschema =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element1: 1 : wsdl:message =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: element2.class =3D class org= .apache.crimson.tree.ElementNode2 =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getNamespaceURI =3Dhttp://sc= hemas.xmlsoap.org/wsdl/ =C3=86=C3=9F=C3=94=C3=82 26 15:01:48 2005: getLocalName =3Dpart .... So that is no problem. > WSDL document object generated by AxisServer can not be read successfully= using WSDL4J API > -------------------------------------------------------------------------= ----------------- > > Key: AXIS-2132 > URL: http://issues.apache.org/jira/browse/AXIS-2132 > Project: Apache Axis > Type: Bug > Components: WSDL processing > Versions: 1.2 Beta, 1.2RC1, 1.2RC2, 1.2RC3, 1.2 > Environment: Testing on windows 2000, tomcat 5.0.28 and 5.5.4, apache ax= is beta 2 and 1.2 GA > Reporter: xiao-fei song > Priority: Critical > > Our product relies on the feature that AxisServer can return WSDL documen= t which we can process. Basically we do like below: > AxisServer engine.generateWSDL(msgContext); > Document wsdlDoc =3D (Document) msgContext.getProperty("WSDL"= ); > And, the wsdlDoc is the org.w3c.dom.Document type which is what we want. = And we have a simple class which processes the wsdl document like below: > public class WSDLUtils { > private static WSDLReader _wsdlReader =3D null; > public WSDLUtils() > throws WSDLException { > if (_wsdlReader =3D=3D null) { > WSDLFactory factory =3D WSDLFactory.newInstance(); > _wsdlReader =3D factory.newWSDLReader(); > } > } > public WSDLReader getWSDLReader() { > return _wsdlReader; > } > public Definition getWSDLDefinition(Document wsdlDoc) > throws WSDLException { > WSDLReader reader =3D getWSDLReader(); > return reader.readWSDL(null, wsdlDoc); > } > } > And everytime we run this, we get the exception like this: > July21 11:42:45 2005: [Thread-18] java.lang.IllegalArgumentException: loc= al part cannot be "null" when creating a QName > July21 11:42:45 2005: [Thread-18] =09at javax.xml.namespace.QName.(= QName.java:123) > July21 11:42:45 2005: [Thread-18] =09at javax.xml.namespace.QName.(= QName.java:89) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.util.xml.QNameUtils.= newQName(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.xml.WSDLReaderImpl.p= arseTypes(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.xml.WSDLReaderImpl.p= arseDefinitions(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.xml.WSDLReaderImpl.r= eadWSDL(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.xml.WSDLReaderImpl.r= eadWSDL(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at com.ibm.wsdl.xml.WSDLReaderImpl.r= eadWSDL(Unknown Source) > July21 11:42:45 2005: [Thread-18] =09at org.apache.axis.transport.http.QS= WSDLHandler.invoke(QSWSDLHandler.java:83) > July21 11:42:45 2005: [Thread-18] =09at sun.reflect.NativeMethodAccessorI= mpl.invoke0(Native Method) > July21 11:42:45 2005: [Thread-18] =09at sun.reflect.NativeMethodAccessorI= mpl.invoke(NativeMethodAccessorImpl.java:39) > July21 11:42:45 2005: [Thread-18] =09at sun.reflect.DelegatingMethodAcces= sorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > July21 11:42:45 2005: [Thread-18] =09at java.lang.reflect.Method.invoke(M= ethod.java:324) > July21 11:42:45 2005: [Thread-18] =09at org.apache.axis.transport.http.Ax= isServlet.processQuery(AxisServlet.java:1310) > July21 11:42:45 2005: [Thread-18] =09at org.apache.axis.transport.http.Ax= isServlet.doGet(AxisServlet.java:261) > July21 11:42:45 2005: [Thread-18] =09at javax.servlet.http.HttpServlet.se= rvice(HttpServlet.java:740) > July21 11:42:45 2005: [Thread-18] =09at org.apache.axis.transport.http.Ax= isServletBase.service(AxisServletBase.java:373) > July21 11:42:45 2005: [Thread-18] =09at javax.servlet.http.HttpServlet.se= rvice(HttpServlet.java:853) > So I decided to test on axis itself and after modified org.apache.axis.tr= ansport.http.QSWSDLHandler#invoke() method add lines like below (line 74) > try { > //beginning of test > WSDLFactory wsdlFactory =3D WSDLFactory.newInstance(); > WSDLReader wsdlReader =3D wsdlFactory.newWSDLReader(); > wsdlReader.setFeature("javax.wsdl.verbose", true); > Definition definition =3D wsdlReader.readWSDL(null, wsdlD= oc); > System.out.println("definition =3D " + definition); > //end of test > } catch (Exception e) { > e.printStackTrace(); > } > And compile axis and test http://localhost:8080/axis/services/AdminServic= e?wsdl to invoke the method above, and I saw exactly the same exception in = the console, which means that the wsdl document object returned by AxisServ= er.generateWSDL() can not be processed by WSDL4J API. > Couple of others: > 1. the tests failed in 1.2 beta2 and 1.2GA, so it should not be a problem= of WSDL4J > 2. http://localhost:8080/axis/services/Version?wsdl works okay in beta an= d GA > 3. I wrote test case like below: > public static Definition testA() { > Definition definition =3D null; > try { > String filename =3D "d:/dl/UojDocumentService.xml"; > DocumentBuilderFactory dbf =3D DocumentBuilderFactory.newInst= ance(); > /*note*/ dbf.setNamespaceAware(true); > DocumentBuilder db =3D dbf.newDocumentBuilder(); > FileInputStream fis =3D new FileInputStream(new File(filename= )); > InputSource inp =3D new InputSource(fis); > =20 > Document doc =3D db.parse(inp); > System.out.println("doc =3D " + doc); > =20 > WSDLFactory wsdlFactory =3D WSDLFactory.newInstance(); > WSDLReader wsdlReader =3D wsdlFactory.newWSDLReader(); > definition =3D wsdlReader.readWSDL(null, doc); > System.out.println("definition =3D " + definition); > =20 > } catch (Exception e) { > e.printStackTrace(); > } > return definition; > } > After saving the wsdl as the xml file on disk, the code above runs okay. = But if I didn't run /*note*/ dbf.setNamespaceAware(true); I get similar exc= eption as above. > 3. running WSDL4J process the wsdl online runs okay so the problem has to= be in the docuemnt object rather than the xml document. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira