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

Parser shouldn't parse schema for schema to create schema type objects in the model

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Parser
    • None

    Description

      The DOMWSDLReader currently contains the following code:

      try

      { Document schemaDoc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Element schemaElem = schemaDoc.createElementNS("http://www.w3.org/2001/XMLSchema", "import"); schemaElem.setAttribute("namespace", "http://www.w3.org/2001/XMLSchema"); schemaElem.setAttribute("schemaLocation", resolveURI("http://www.w3.org/2001/XMLSchema.xsd")); XMLElement xmlEl = createXMLElement(schemaElem); desc.getTypesElement().addSchema(parseSchemaImport(xmlEl, desc)); }

      catch(Exception e)

      { System.out.println("A problem was encountered while creating the build in XML schema types: " + e); }

      This code was put in temporarily to create the XML schema types, which are implicitly available in all WSDL 2.0 models, in Woden's model. It should not be necessary to parse the schema every time a Woden model is built. This code should be replaced by a method that simply creates the schema simple type objects in the Woden model.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lmandel Lawrence Mandel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: