Code example for QName

Methods: getLocalPart, getNamespaceURI

0
		SOAPEnvelope env = outboundMessage.getEnvelope();
		OMFactory factory = env.getOMFactory();
 
		SOAPHeader headers = env.getHeader();
 
		OMNamespace namespace = factory.createOMNamespace(unitTestHeader.getNamespaceURI(), "sec");
		OMElement header = headers.addHeaderBlock(unitTestHeader.getLocalPart(), namespace);
		header.setText(key);
 
		log.debug("Exit: UnitTestSecurityManager::applySecurityToken");
	} 
 
}