private JBossWebserviceDescriptionMetaData parseWebserviceDescription(XMLStreamReader reader, String nsUri) throws XMLStreamException { String webserviceDescriptionName = null; String wsdlPublishLocation = null; while (reader.hasNext()) { switch (reader.nextTag()) { case XMLStreamConstants.END_ELEMENT: { if (match(reader, nsUri, WEBSERVICE_DESCRIPTION)) { return new JBossWebserviceDescriptionMetaData(webserviceDescriptionName, wsdlPublishLocation); } else { throw MESSAGES.unexpectedEndTag(getDescriptorForLogs(), reader.getLocalName()); } } case XMLStreamConstants.START_ELEMENT: { if (match(reader, nsUri, WEBSERVICE_DESCRIPTION_NAME)) { webserviceDescriptionName = getElementText(reader); } else if (match(reader, nsUri, WSDL_PUBLISH_LOCATION)) { wsdlPublishLocation = getElementText(reader); } else { throw MESSAGES.unexpectedElement(getDescriptorForLogs(), reader.getLocalName()); } } } } throw MESSAGES.reachedEndOfXMLDocUnexpectedly(getDescriptorForLogs()); }
throw MESSAGES.couldNotGetPropertyName(getDescriptorForLogs()); throw MESSAGES.unexpectedEndTag(getDescriptorForLogs(), reader.getLocalName()); throw MESSAGES.unexpectedElement(getDescriptorForLogs(), reader.getLocalName()); throw MESSAGES.reachedEndOfXMLDocUnexpectedly(getDescriptorForLogs());
return new JBossWebservicesMetaData(contextRoot, configName, configFile, descriptorURL, props, jpcmds, jwsdmds); } else { throw MESSAGES.unexpectedEndTag(getDescriptorForLogs(), reader.getLocalName()); jwsdmds.add(parseWebserviceDescription(reader, nsUri)); } else { throw MESSAGES.unexpectedElement(getDescriptorForLogs(), reader.getLocalName()); throw MESSAGES.reachedEndOfXMLDocUnexpectedly(getDescriptorForLogs());
authMethod, realmName, transportGuarantee, secureWsdlAccess); } else { throw MESSAGES.unexpectedEndTag(getDescriptorForLogs(), reader.getLocalName()); secureWsdlAccess = elementAsBoolean(reader); } else { throw MESSAGES.unexpectedElement(getDescriptorForLogs(), reader.getLocalName()); throw MESSAGES.reachedEndOfXMLDocUnexpectedly(getDescriptorForLogs());