* @param element the xml element
* @param value it's associated value
*/
public void setElementValue(XMLElement element, String value) {
String qname = element.getQName();
WebServiceHandler handler = (WebServiceHandler) getDescriptor();
if (WebServicesTagNames.INIT_PARAM_NAME.equals(qname)) {
initParam = new NameValuePairDescriptor();
initParam.setName(value);
} else if (WebServicesTagNames.INIT_PARAM_VALUE.equals(qname)) {
initParam.setValue(value);
handler.addInitParam(initParam);
} else if (TagNames.DESCRIPTION.equals(qname)) {
if( initParam != null ) {
// description for the init-param
initParam.setDescription(value);
initParam = null;
} else {
// must be the description element of the handler itself.
super.setElementValue(element, value);
}
} else if (WebServicesTagNames.SOAP_HEADER.equals(qname) ) {
String prefix = getPrefixFromQName(value);
String localPart = getLocalPartFromQName(value);
String namespaceUri = resolvePrefix(element, prefix);
if( namespaceUri == null) {
DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.invalidDescriptorMappingFailure",
new Object[] {prefix , handler.getHandlerName()});
} else {
QName soapHeader = new QName(namespaceUri, localPart);
handler.addSoapHeader(soapHeader);
}
} else super.setElementValue(element, value);
}