Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeffliu2006-08-18 21:00:21 +0000
committerjeffliu2006-08-18 21:00:21 +0000
commitbaec62a151d6ff38f8a6995d79d263864388c4f0 (patch)
tree0a478f6d6d343c8384523fc7b528b0d4fdee58a4 /bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile
parent194881f2eda8fd693ed7a5056d906841fbe0ccfa (diff)
downloadwebtools.webservices-baec62a151d6ff38f8a6995d79d263864388c4f0.tar.gz
webtools.webservices-baec62a151d6ff38f8a6995d79d263864388c4f0.tar.xz
webtools.webservices-baec62a151d6ff38f8a6995d79d263864388c4f0.zip
[154404] Improve the performance of AP2908
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile')
-rw-r--r--bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java
index 62cef8444..0545d6325 100644
--- a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java
+++ b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/AP2908.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.wst.wsi.internal.core.profile.validator.impl.wsdl;
-import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@@ -21,7 +20,6 @@ import org.eclipse.wst.wsi.internal.core.WSIConstants;
import org.eclipse.wst.wsi.internal.core.WSIException;
import org.eclipse.wst.wsi.internal.core.WSITag;
import org.eclipse.wst.wsi.internal.core.analyzer.AssertionFailException;
-import org.eclipse.wst.wsi.internal.core.analyzer.AssertionNotApplicableException;
import org.eclipse.wst.wsi.internal.core.profile.TestAssertion;
import org.eclipse.wst.wsi.internal.core.profile.validator.EntryContext;
import org.eclipse.wst.wsi.internal.core.profile.validator.impl.AssertionProcess;
@@ -63,7 +61,11 @@ public class AP2908 extends AssertionProcess implements WSITag
Binding wsdlBinding = (Binding) entryContext.getEntry().getEntryDetail();
// Since WSDL4J 1.4 ignores any attributes of mime:part, use Xerces 2.6.2 instead
- Document doc = validator.parseXMLDocumentURL(validator.wsdlURL, null);
+ Document doc = entryContext.getWSDLDocument().getDocument();
+ if (doc == null)
+ {
+ doc = validator.parseXMLDocumentURL(validator.wsdlURL, null);
+ }
// Finding the wsdl:binding element being processed
Element binding = getBindingElement(
@@ -123,11 +125,7 @@ public class AP2908 extends AssertionProcess implements WSITag
// If the binding contains no one mime:multipartRelated element,
// the assertion is not applicable
if (!multipartsFound)
- throw new AssertionNotApplicableException();
- }
- catch (AssertionNotApplicableException anae)
- {
- result = AssertionResult.RESULT_NOT_APPLICABLE;
+ result = AssertionResult.RESULT_NOT_APPLICABLE;
}
catch (AssertionFailException afe)
{

Back to the top