@Override protected void addBundleNodeAttributes(Element bundleNode, RootDeploymentDescriptor descriptor) { String schemaLocation; // the latest connector schema still use j2ee namespace bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", WLDescriptorConstants.WL_WEBSERVICES_XML_NS); bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:j2ee", TagNames.J2EE_NAMESPACE); schemaLocation = WLDescriptorConstants.WL_WEBSERVICES_XML_NS + " " + getSchemaURL(); schemaLocation = schemaLocation+ " "+ TagNames.J2EE_NAMESPACE + " " + "http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE); // add all custom global namespaces addNamespaceDeclaration(bundleNode, descriptor); String clientSchemaLocation = descriptor.getSchemaLocation(); if (clientSchemaLocation != null) { schemaLocation = schemaLocation + " " + clientSchemaLocation; } bundleNode.setAttributeNS(W3C_XML_SCHEMA_INSTANCE, SCHEMA_LOCATION_TAG, schemaLocation); bundleNode.setAttribute(TagNames.VERSION, getSpecVersion()); }
@Override protected void addBundleNodeAttributes(Element bundleNode, RootDeploymentDescriptor descriptor) { String schemaLocation; // the latest connector schema still use j2ee namespace bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", WLDescriptorConstants.WL_WEBSERVICES_XML_NS); bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:j2ee", TagNames.J2EE_NAMESPACE); schemaLocation = WLDescriptorConstants.WL_WEBSERVICES_XML_NS + " " + getSchemaURL(); schemaLocation = schemaLocation+ " "+ TagNames.J2EE_NAMESPACE + " " + "http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; bundleNode.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xsi", W3C_XML_SCHEMA_INSTANCE); // add all custom global namespaces addNamespaceDeclaration(bundleNode, descriptor); String clientSchemaLocation = descriptor.getSchemaLocation(); if (clientSchemaLocation != null) { schemaLocation = schemaLocation + " " + clientSchemaLocation; } bundleNode.setAttributeNS(W3C_XML_SCHEMA_INSTANCE, SCHEMA_LOCATION_TAG, schemaLocation); bundleNode.setAttribute(TagNames.VERSION, getSpecVersion()); }