Hi,
I realized today that there are "import"s to XSDs on the web from OASIS SCA
schemas. For example,
/tuscany-assembly-xsd/src/main/resources/sca-binding-ws-1.1-cd02.xsd has the
following:
<import namespace="http://www.w3.org/ns/wsdl-instance"
schemaLocation="http://www.w3.org/2007/05/wsdl/wsdl20-instance.xsd"/>
<import namespace="http://www.w3.org/2005/08/addressing"
schemaLocation="http://www.w3.org/2006/03/addressing/ws-addr.xsd"/>
As a side effect, when we try to load the schemas for validation against the
composite files, it takes some time to retrieve the external XSDs from the
web. Sometimes, it even hangs if the HTTP connection is very slow.
I think the users should have control if the schema validation should be
enabled when the Tuscany node is started. I add a flag to the
ValidationSchemaExtensionPoint and the OSGi node will set it to a flag
depending on if the log level if FINE or higher. Ideally, this flag can be
passed in from the launcher by the users or from a configuration file for
the node. With this change, the bootstrap of an SCA node is much faster!
Maybe we should even consider porting this change to the 1.x stream.
Thanks,
Raymond