/**
* Parse WSDL element.
*/
private WSDLElement parseWsdlElement(Element element) throws WSIException
{
WSDLElement wsdlElement = new WSDLElementImpl();
// Set type, namespace, parent element name and name
wsdlElement.setType(
XMLUtils.getAttributeValue(element, WSIConstants.ATTR_TYPE));
wsdlElement.setNamespace(
XMLUtils.getAttributeValue(element, WSIConstants.ATTR_NAMESPACE));
wsdlElement.setParentElementName(
XMLUtils.getAttributeValue(
element,
WSIConstants.ATTR_PARENT_ELEMENT_NAME));
String wsdlElementName = XMLUtils.getText(element);
if (wsdlElementName.equals(""))
{
// Throw exception
throw new IllegalArgumentException(
getMessage("config19", "The WSDL element name must be specified."));
}
wsdlElement.setName(wsdlElementName);
return wsdlElement;
}