axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject Re: [jsr110-eg-disc] Code updates...
Date Tue, 04 Dec 2001 14:02:15 GMT
The 'offending' file is Import.xsd.  It is imported by ImportMessages.wsdl.
Import.xsd contains only XML schema types, no WSDL.  This follows an
example in the WSDL spec, section 2.1.2 Authoring Style.  If Import.xsd is
wrong, then the spec is wrong.

Import.xsd looks like:

<schema>
...
</schema>

If I change it to look like:

<definitions...>
  <types>
    <schema>
      ...
    </schema>
  </types>
</definitions>

then it works.  But I want to know whether we (and WSDL4J) should follow
the spec or whether we should follow WSDL4J before I commit this change.

Russell Butek
butek@us.ibm.com


Sam Ruby/Raleigh/IBM@IBMUS on 12/03/2001 08:40:26 PM

Please respond to axis-dev@xml.apache.org

To:   jsr110-eg-disc@yahoogroups.com
cc:   axis-dev@xml.apache.org
Subject:  Re: [jsr110-eg-disc] Code updates...



Axis has a wsdl definition that could be read by WSDL4J yesterday, but
fails now.  Can I get somebody to take a look at it to see if there is
something wrong with the WSDL or if WSD4J should in fact be able to process
it?

Simple test case is included in the zip.  To compile and run, simply:

   javac wsdl.java
   java wsdl test/import_/Import.wsdl

The output currently produced is:

WSDLException (at /definitions/import[1]): faultCode=INVALID_WSDL: Expected
element 'http://schemas.xmlsoap.org/wsdl/:definitions'.:
        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
        at wsdl.main(wsdl.java:10)
Exception in thread "main"

- Sam Ruby

(See attached file: wsdl4j-test.zip)




Mime
View raw message