You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "Lawrence Mandel (JIRA)" <ji...@apache.org> on 2007/01/26 20:24:49 UTC

[jira] Created: (WODEN-131) Parser shouldn't parse schema for schema to create schema type objects in the model

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

                 Key: WODEN-131
                 URL: https://issues.apache.org/jira/browse/WODEN-131
             Project: Woden
          Issue Type: Bug
          Components: Parser
            Reporter: Lawrence Mandel


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org