in components/camel-cxf/camel-cxf-blueprint/src/main/java/org/apache/camel/component/cxf/blueprint/ws/policy/PolicyBPHandler.java [35:59]
public URL getSchemaLocation(String s) {
//Say yes to various schemas.
String location = null;
if ("http://cxf.apache.org/policy".equals(s)) {
location = "schemas/policy.xsd";
} else if ("http://www.w3.org/ns/ws-policy".equals(s)) {
location = "schemas/ws-policy-200702.xsd";
} else if ("http://www.w3.org/2006/07/ws-policy".equals(s)) {
location = "schemas/ws-policy-200607.xsd";
} else if ("http://schemas.xmlsoap.org/ws/2004/09/policy".equals(s)) {
location = "schemas/ws-policy-200409.xsd";
} else if ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd".equals(s)) {
location = "schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd";
} else if ("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd".equals(s)) {
location = "schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd";
} else if ("http://www.w3.org/2000/09/xmldsig#".equals(s)) {
location = "schemas/xmldsig-core-schema.xsd";
} else if ("http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702".equals(s)) {
location = "schemas/ws-securitypolicy-1.2.xsd";
}
if (location != null) {
return getClass().getClassLoader().getResource(location);
}
return super.findCoreSchemaLocation(s);
}