diff options
author | jeffliu | 2006-08-18 19:45:52 +0000 |
---|---|---|
committer | jeffliu | 2006-08-18 19:45:52 +0000 |
commit | eb2bb990fccb8d23bd45da9b8b261b5004b49600 (patch) | |
tree | b2bbf89e74cba8aa44cb24fec77845477ddd080a /bundles/org.eclipse.wst.wsi/src/org | |
parent | d2f132dea08ccf34ec2de79988c743f85acbb1df (diff) | |
download | webtools.webservices-eb2bb990fccb8d23bd45da9b8b261b5004b49600.tar.gz webtools.webservices-eb2bb990fccb8d23bd45da9b8b261b5004b49600.tar.xz webtools.webservices-eb2bb990fccb8d23bd45da9b8b261b5004b49600.zip |
[154262] BP 2018 is reloading the WSDL document
Diffstat (limited to 'bundles/org.eclipse.wst.wsi/src/org')
-rw-r--r-- | bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java index dd467cd89..fea77bf9c 100644 --- a/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java +++ b/bundles/org.eclipse.wst.wsi/src/org/eclipse/wst/wsi/internal/core/profile/validator/impl/wsdl/BP2018.java @@ -78,14 +78,16 @@ public class BP2018 extends AssertionProcess implements WSITag { result = AssertionResult.RESULT_PASSED; - // Get the location of the WSDL document - Definition definition = - (Definition) entryContext.getEntry().getEntryDetail(); try { // Parse the WSDL document as an XML file - Document doc = - validator.parseXMLDocumentURL(definition.getDocumentBaseURI(), null); + Document doc = entryContext.getWSDLDocument().getDocument(); + if (doc == null) + { + // Get the location of the WSDL document + Definition definition = (Definition) entryContext.getEntry().getEntryDetail(); + doc = validator.parseXMLDocumentURL(definition.getDocumentBaseURI(), null); + } Element root = doc.getDocumentElement(); // get definition @@ -113,6 +115,7 @@ public class BP2018 extends AssertionProcess implements WSITag catch (Throwable t) { result = AssertionResult.RESULT_NOT_APPLICABLE; + Definition definition = (Definition) entryContext.getEntry().getEntryDetail(); failureDetail = this.validator.createFailureDetail( "An error occurred while processing the document at " |