[261070] [Validation] Misleading error reporting in WSDL validator (3.0.x)
diff --git a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLDocument.java b/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLDocument.java
index 17a8105..af86a73 100644
--- a/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLDocument.java
+++ b/bundles/org.eclipse.wst.wsdl.validation/src/org/eclipse/wst/wsdl/validation/internal/wsdl11/WSDLDocument.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2007 IBM Corporation and others.
+ * Copyright (c) 2001, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -960,11 +960,6 @@
{
msg.addPart(parsePart(tempEl, def));
}
- else
- {
- // XML Validation will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}
@@ -1035,11 +1030,6 @@
{
part.setDocumentationElement(tempEl);
}
- else
- {
- // XML Validation will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}
@@ -1253,12 +1243,6 @@
{
faults.add(parseFault(tempEl, def));
}
- else
- {
- // invalid element in the operation
- // XML check will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}
@@ -1711,11 +1695,6 @@
{
input.setDocumentationElement(tempEl);
}
- else
- {
- // XML Validation will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}
@@ -1776,11 +1755,6 @@
{
output.setDocumentationElement(tempEl);
}
- else
- {
- // XML Validation will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}
@@ -1841,11 +1815,6 @@
{
fault.setDocumentationElement(tempEl);
}
- else
- {
- // XML Validation will catch this
- DOMUtils.throwWSDLException(tempEl);
- }
tempEl = DOMUtils.getNextSiblingElement(tempEl);
}