in components/camel-cxf/camel-cxf-blueprint/src/main/java/org/apache/camel/component/cxf/blueprint/helpers/CXFAPINamespaceHandler.java [47:78]
public URL getSchemaLocation(String namespace) {
String location = null;
// when schema is being resolved for custom namespace elements, "namespace" is real namespace
// (from xmlns:prefix="<namespace>"
// but when namespace is <xsd:import>ed, aries/xerces uses systemID (schemaLocation)
if ("http://cxf.apache.org/configuration/beans".equals(namespace)
|| "http://cxf.apache.org/schemas/configuration/cxf-beans.xsd".equals(namespace)) {
location = "schemas/configuration/cxf-beans.xsd";
} else if ("http://cxf.apache.org/configuration/parameterized-types".equals(namespace)
|| "http://cxf.apache.org/schemas/configuration/parameterized-types.xsd".equals(namespace)) {
location = "schemas/configuration/parameterized-types.xsd";
} else if ("http://cxf.apache.org/configuration/security".equals(namespace)
|| "http://cxf.apache.org/schemas/configuration/security.xsd".equals(namespace)) {
location = "schemas/configuration/security.xsd";
} else if ("http://schemas.xmlsoap.org/wsdl/".equals(namespace)
|| "http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd".equals(namespace)) {
location = "schemas/wsdl/wsdl.xsd";
} else if ("http://www.w3.org/2005/08/addressing".equals(namespace)
|| "http://www.w3.org/2006/03/addressing/ws-addr.xsd".equals(namespace)) {
location = "schemas/wsdl/ws-addr.xsd";
} else if ("http://schemas.xmlsoap.org/ws/2004/08/addressing".equals(namespace)) {
location = "schemas/wsdl/addressing.xsd";
} else if ("http://cxf.apache.org/blueprint/core".equals(namespace)) {
location = "schemas/blueprint/cxf-core.xsd";
}
if (location != null) {
return getClass().getClassLoader().getResource(location);
}
return null;
}