Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-208

Provide simple error message if user tries to parse WSDL 1.1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • M8
    • M9
    • Parser
    • None

    Description

      Heinz Drews made a good suggestion on the Woden dev list [1] that I've captured in this Jira.

      We've already seen several users try to use Woden to parse WSDL 1.1 documents. In this case users are presented with a cryptic error message (see below) produced by the schema validator and a stack trace.

      [Error] SGAdministration.wsdl:2:1087: cvc-elt.1: Cannot find the declaration of element 'wsdl:definitions'.
      Woden[Fatal Error],0:0,WSDL501,Expected a "

      {http://www.w3.org/ns/wsdl}

      description" element, but found a "

      {http://schemas.xmlsoap.org/wsdl/}

      definitions" element instead.

      Woden should help out these users by producing a simple error message such as:

      "It appears as though you are trying to parse a WSDL 1.1 document but Woden is a WSDL 2.0 parser. You need a WSDL 1.1 parser to parse WSDL 1.1 documents."

      [1] http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200805.mbox/%3c4369f0ce0805191347s339cc6d7h524a882541357a40@mail.gmail.com%3e

      Attachments

        1. Messages.properties.txt
          0.8 kB
          Sagara Gunathunga
        2. Constants.java.txt
          1 kB
          Sagara Gunathunga
        3. BaseWSDLReader.java.txt
          1 kB
          Sagara Gunathunga

        Activity

          People

            sagara Sagara Gunathunga
            lmandel Lawrence Mandel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: