EntryContext entryContext)
throws WSIException
{
// Getting wsdl:definition element
Definition def = (Definition) entryContext.getEntry().getEntryDetail();
Types types;
// Getting the namespace declaration xmlns:xml
String xmlNs = (String) def.getNamespaces().get("xml");
// If it exists and equals to "http://www.w3.org/XML/1998/namespace"
if (xmlNs != null && xmlNs.equals(WSIConstants.NS_URI_XML))
{
// setting assertion result to warning
result = AssertionResult.RESULT_WARNING;
}
// there is no namespace declaration xmlns:xml in the wsdl:definition
// element, checking whether the definition has wsdl:type element
else if ((types = def.getTypes()) != null)
{
// Getting the list of wsdl:schemaS
List extElems = types.getExtensibilityElements();
for (int i = 0; i < extElems.size(); i++)
{
// Getting wsdl:schema element
Schema schema =
(Schema) extElems.get(i);