Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.