From d9b0b7e43ca9b1969d9048ea3016f9b1b5731526 Mon Sep 17 00:00:00 2001
From: lauzond
Date: Thu, 24 Mar 2005 00:07:43 +0000
Subject: [Bug 88955] Check in initial WSI contribution
---
.../eclipse/wst/wsi/internal/ToolEnvironment.java | 254 ++
.../org/eclipse/wst/wsi/internal/ToolInfo.java | 465 +++
.../org/eclipse/wst/wsi/internal/URIEncoder.java | 204 ++
.../org/eclipse/wst/wsi/internal/WSIConstants.java | 485 +++
.../org/eclipse/wst/wsi/internal/WSIException.java | 145 +
.../wst/wsi/internal/WSIFileNotFoundException.java | 51 +
.../eclipse/wst/wsi/internal/WSIPreferences.java | 73 +
.../wst/wsi/internal/WSIRuntimeException.java | 50 +
.../org/eclipse/wst/wsi/internal/WSITag.java | 114 +
.../wst/wsi/internal/WSITestToolsPlugin.java | 74 +
.../wst/wsi/internal/WSITestToolsProperties.java | 207 ++
.../wst/wsi/internal/analyzer/Analyzer.java | 313 ++
.../wst/wsi/internal/analyzer/Analyzer.properties | 44 +
.../wst/wsi/internal/analyzer/AnalyzerContext.java | 113 +
.../internal/analyzer/AssertionFailException.java | 43 +
.../analyzer/AssertionNotApplicableException.java | 43 +
.../internal/analyzer/AssertionPassException.java | 43 +
.../analyzer/AssertionResultException.java | 65 +
.../internal/analyzer/BasicProfileAnalyzer.java | 655 ++++
.../wst/wsi/internal/analyzer/CandidateInfo.java | 921 ++++++
.../wst/wsi/internal/analyzer/EnvironmentInfo.java | 82 +
.../wst/wsi/internal/analyzer/MessageAnalyzer.java | 325 ++
.../wsi/internal/analyzer/ServiceReference.java | 109 +
.../wst/wsi/internal/analyzer/WSDLAnalyzer.java | 382 +++
.../internal/analyzer/WSIAnalyzerException.java | 82 +
.../internal/analyzer/WSIBasicProfileAnalyzer.java | 87 +
.../internal/analyzer/config/AnalyzerConfig.java | 256 ++
.../analyzer/config/AnalyzerConfigReader.java | 51 +
.../analyzer/config/AssertionResultType.java | 160 +
.../analyzer/config/AssertionResultsOption.java | 100 +
.../internal/analyzer/config/UDDIReference.java | 116 +
.../wsi/internal/analyzer/config/WSDLElement.java | 135 +
.../internal/analyzer/config/WSDLReference.java | 78 +
.../analyzer/config/impl/AnalyzerConfigImpl.java | 1060 +++++++
.../config/impl/AnalyzerConfigReaderImpl.java | 570 ++++
.../config/impl/AssertionResultsOptionImpl.java | 199 ++
.../analyzer/config/impl/UDDIReferenceImpl.java | 197 ++
.../analyzer/config/impl/WSDLElementImpl.java | 201 ++
.../analyzer/config/impl/WSDLReferenceImpl.java | 162 +
.../wst/wsi/internal/common/AddStyleSheet.java | 124 +
.../internal/common/impl/AddStyleSheetImpl.java | 219 ++
.../wst/wsi/internal/document/DocumentElement.java | 28 +
.../wst/wsi/internal/document/DocumentFactory.java | 175 ++
.../wst/wsi/internal/document/DocumentReader.java | 34 +
.../wst/wsi/internal/document/DocumentWriter.java | 67 +
.../wst/wsi/internal/document/WSIDocument.java | 34 +
.../document/impl/DocumentFactoryImpl.java | 157 +
.../internal/document/impl/DocumentWriterImpl.java | 125 +
.../document/impl/WSIDocumentFactoryImpl.java | 54 +
.../org/eclipse/wst/wsi/internal/log/Log.java | 98 +
.../eclipse/wst/wsi/internal/log/LogReader.java | 48 +
.../eclipse/wst/wsi/internal/log/LogWriter.java | 47 +
.../eclipse/wst/wsi/internal/log/MessageEntry.java | 217 ++
.../wst/wsi/internal/log/MessageEntryHandler.java | 41 +
.../org/eclipse/wst/wsi/internal/log/MimePart.java | 75 +
.../eclipse/wst/wsi/internal/log/MimeParts.java | 60 +
.../eclipse/wst/wsi/internal/log/impl/LogImpl.java | 219 ++
.../wst/wsi/internal/log/impl/LogReaderImpl.java | 782 +++++
.../wst/wsi/internal/log/impl/LogWriterImpl.java | 51 +
.../wsi/internal/log/impl/MessageEntryImpl.java | 374 +++
.../wst/wsi/internal/log/impl/MimePartImpl.java | 135 +
.../wst/wsi/internal/log/impl/MimePartsImpl.java | 75 +
.../wst/wsi/internal/monitor/ChunkedData.java | 225 ++
.../wsi/internal/monitor/ConnectionListener.java | 26 +
.../wsi/internal/monitor/MessageEntryQueue.java | 220 ++
.../eclipse/wst/wsi/internal/monitor/Monitor.java | 501 +++
.../wst/wsi/internal/monitor/Monitor.properties | 38 +
.../wsi/internal/monitor/ServerSocketListener.java | 140 +
.../wst/wsi/internal/monitor/SocketConnection.java | 305 ++
.../wst/wsi/internal/monitor/SocketHandler.java | 966 ++++++
.../wst/wsi/internal/monitor/config/Comment.java | 50 +
.../internal/monitor/config/ManInTheMiddle.java | 72 +
.../wsi/internal/monitor/config/MonitorConfig.java | 165 +
.../monitor/config/MonitorConfigReader.java | 49 +
.../wst/wsi/internal/monitor/config/Redirect.java | 124 +
.../internal/monitor/config/impl/CommentImpl.java | 75 +
.../monitor/config/impl/ManInTheMiddleImpl.java | 142 +
.../monitor/config/impl/MonitorConfigImpl.java | 556 ++++
.../config/impl/MonitorConfigReaderImpl.java | 474 +++
.../internal/monitor/config/impl/RedirectImpl.java | 297 ++
.../wst/wsi/internal/profile/EntryTypeList.java | 82 +
.../eclipse/wst/wsi/internal/profile/Profile.java | 24 +
.../wst/wsi/internal/profile/ProfileArtifact.java | 86 +
.../wsi/internal/profile/ProfileAssertions.java | 123 +
.../internal/profile/ProfileAssertionsReader.java | 44 +
.../wst/wsi/internal/profile/TestAssertion.java | 176 ++
.../internal/profile/impl/EntryTypeListImpl.java | 94 +
.../internal/profile/impl/ProfileArtifactImpl.java | 123 +
.../profile/impl/ProfileAssertionsImpl.java | 194 ++
.../profile/impl/ProfileAssertionsReaderImpl.java | 515 +++
.../internal/profile/impl/TestAssertionImpl.java | 256 ++
.../internal/profile/validator/BaseValidator.java | 51 +
.../internal/profile/validator/EntryContext.java | 223 ++
.../profile/validator/EnvelopeValidator.java | 52 +
.../profile/validator/MessageValidator.java | 68 +
.../profile/validator/ProfileValidatorFactory.java | 96 +
.../internal/profile/validator/UDDIValidator.java | 54 +
.../internal/profile/validator/WSDLValidator.java | 55 +
.../profile/validator/impl/AssertionProcess.java | 66 +
.../validator/impl/AssertionProcessVisitor.java | 157 +
.../validator/impl/BaseMessageValidator.java | 1839 +++++++++++
.../profile/validator/impl/BaseValidatorImpl.java | 714 +++++
.../impl/ProfileValidatorFactoryImpl.java | 75 +
.../profile/validator/impl/envelope/AP1920.java | 118 +
.../profile/validator/impl/envelope/AP1928.java | 426 +++
.../profile/validator/impl/envelope/BP1005.java | 167 +
.../profile/validator/impl/envelope/BP1007.java | 64 +
.../profile/validator/impl/envelope/BP1008.java | 277 ++
.../profile/validator/impl/envelope/BP1009.java | 315 ++
.../profile/validator/impl/envelope/BP1011.java | 203 ++
.../profile/validator/impl/envelope/BP1012.java | 102 +
.../profile/validator/impl/envelope/BP1013.java | 29 +
.../profile/validator/impl/envelope/BP1031.java | 108 +
.../profile/validator/impl/envelope/BP1032.java | 152 +
.../profile/validator/impl/envelope/BP1033.java | 126 +
.../profile/validator/impl/envelope/BP1100.java | 103 +
.../profile/validator/impl/envelope/BP1107.java | 277 ++
.../profile/validator/impl/envelope/BP1201.java | 77 +
.../profile/validator/impl/envelope/BP1202.java | 104 +
.../profile/validator/impl/envelope/BP1203.java | 147 +
.../profile/validator/impl/envelope/BP1204.java | 302 ++
.../profile/validator/impl/envelope/BP1208.java | 88 +
.../profile/validator/impl/envelope/BP1211.java | 147 +
.../profile/validator/impl/envelope/BP1212.java | 165 +
.../profile/validator/impl/envelope/BP1213.java | 141 +
.../profile/validator/impl/envelope/BP1214.java | 142 +
.../profile/validator/impl/envelope/BP1301.java | 198 ++
.../profile/validator/impl/envelope/BP1302.java | 181 ++
.../profile/validator/impl/envelope/BP1305.java | 132 +
.../profile/validator/impl/envelope/BP1306.java | 114 +
.../profile/validator/impl/envelope/BP1307.java | 98 +
.../profile/validator/impl/envelope/BP1308.java | 97 +
.../profile/validator/impl/envelope/BP1309.java | 124 +
.../profile/validator/impl/envelope/BP1316.java | 113 +
.../profile/validator/impl/envelope/BP1318.java | 183 ++
.../profile/validator/impl/envelope/BP1600.java | 267 ++
.../profile/validator/impl/envelope/BP1601.java | 73 +
.../profile/validator/impl/envelope/BP1701.java | 111 +
.../profile/validator/impl/envelope/BP1755.java | 167 +
.../profile/validator/impl/envelope/BP4100.java | 226 ++
.../profile/validator/impl/envelope/BP4101.java | 132 +
.../profile/validator/impl/envelope/BP4102.java | 114 +
.../profile/validator/impl/envelope/BP4109.java | 107 +
.../impl/envelope/EnvelopeValidatorImpl.java | 56 +
.../profile/validator/impl/envelope/SSBP1601.java | 28 +
.../profile/validator/impl/envelope/SSBP9704.java | 126 +
.../profile/validator/impl/message/AP1003.java | 59 +
.../profile/validator/impl/message/AP1902.java | 124 +
.../profile/validator/impl/message/AP1915.java | 136 +
.../profile/validator/impl/message/AP1917.java | 153 +
.../profile/validator/impl/message/AP1925.java | 136 +
.../profile/validator/impl/message/AP1926.java | 210 ++
.../profile/validator/impl/message/AP1931.java | 91 +
.../profile/validator/impl/message/AP1932.java | 80 +
.../profile/validator/impl/message/AP1933.java | 257 ++
.../profile/validator/impl/message/AP1934.java | 103 +
.../profile/validator/impl/message/AP1935.java | 348 +++
.../profile/validator/impl/message/AP1936.java | 72 +
.../profile/validator/impl/message/AP1942.java | 264 ++
.../profile/validator/impl/message/AP1945.java | 73 +
.../profile/validator/impl/message/AP1946.java | 64 +
.../profile/validator/impl/message/AP5100.java | 53 +
.../profile/validator/impl/message/AP5101.java | 51 +
.../profile/validator/impl/message/BP1001.java | 101 +
.../profile/validator/impl/message/BP1002.java | 137 +
.../profile/validator/impl/message/BP1004.java | 73 +
.../profile/validator/impl/message/BP1006.java | 69 +
.../profile/validator/impl/message/BP1010.java | 126 +
.../profile/validator/impl/message/BP1101.java | 86 +
.../profile/validator/impl/message/BP1103.java | 80 +
.../profile/validator/impl/message/BP1104.java | 93 +
.../profile/validator/impl/message/BP1116.java | 150 +
.../profile/validator/impl/message/BP4103.java | 126 +
.../profile/validator/impl/message/BP4104.java | 87 +
.../profile/validator/impl/message/BP4105.java | 95 +
.../profile/validator/impl/message/BP4106.java | 77 +
.../profile/validator/impl/message/BP4107.java | 66 +
.../impl/message/MessageValidatorImpl.java | 57 +
.../profile/validator/impl/message/SSBP1003.java | 228 ++
.../profile/validator/impl/message/SSBP5100.java | 80 +
.../profile/validator/impl/message/SSBP5101.java | 67 +
.../profile/validator/impl/message/WSI1001.java | 28 +
.../profile/validator/impl/message/WSI1002.java | 28 +
.../profile/validator/impl/message/WSI1003.java | 28 +
.../profile/validator/impl/message/WSI1004.java | 28 +
.../profile/validator/impl/message/WSI1005.java | 29 +
.../profile/validator/impl/message/WSI1006.java | 28 +
.../profile/validator/impl/message/WSI1007.java | 29 +
.../profile/validator/impl/message/WSI1008.java | 29 +
.../profile/validator/impl/message/WSI1009.java | 29 +
.../profile/validator/impl/message/WSI1010.java | 28 +
.../profile/validator/impl/message/WSI1011.java | 29 +
.../profile/validator/impl/message/WSI1012.java | 29 +
.../profile/validator/impl/message/WSI1013.java | 29 +
.../profile/validator/impl/message/WSI1031.java | 29 +
.../profile/validator/impl/message/WSI1100.java | 29 +
.../profile/validator/impl/message/WSI1101.java | 28 +
.../profile/validator/impl/message/WSI1102.java | 150 +
.../profile/validator/impl/message/WSI1103.java | 28 +
.../profile/validator/impl/message/WSI1104.java | 29 +
.../profile/validator/impl/message/WSI1105.java | 110 +
.../profile/validator/impl/message/WSI1107.java | 29 +
.../profile/validator/impl/message/WSI1108.java | 415 +++
.../profile/validator/impl/message/WSI1109.java | 103 +
.../profile/validator/impl/message/WSI1110.java | 104 +
.../profile/validator/impl/message/WSI1111.java | 111 +
.../profile/validator/impl/message/WSI1116.java | 28 +
.../profile/validator/impl/message/WSI1121.java | 162 +
.../profile/validator/impl/message/WSI1201.java | 29 +
.../profile/validator/impl/message/WSI1202.java | 29 +
.../profile/validator/impl/message/WSI1203.java | 29 +
.../profile/validator/impl/message/WSI1204.java | 29 +
.../profile/validator/impl/message/WSI1208.java | 29 +
.../profile/validator/impl/message/WSI1211.java | 29 +
.../profile/validator/impl/message/WSI1301.java | 29 +
.../profile/validator/impl/message/WSI1302.java | 29 +
.../profile/validator/impl/message/WSI1305.java | 29 +
.../profile/validator/impl/message/WSI1306.java | 29 +
.../profile/validator/impl/message/WSI1307.java | 29 +
.../profile/validator/impl/message/WSI1308.java | 29 +
.../profile/validator/impl/message/WSI1309.java | 29 +
.../profile/validator/impl/message/WSI1311.java | 204 ++
.../profile/validator/impl/message/WSI1316.java | 29 +
.../profile/validator/impl/message/WSI1318.java | 29 +
.../profile/validator/impl/message/WSI1601.java | 29 +
.../profile/validator/impl/message/WSI1701.java | 29 +
.../profile/validator/impl/message/WSI4100.java | 29 +
.../profile/validator/impl/message/WSI4101.java | 29 +
.../profile/validator/impl/message/WSI4102.java | 29 +
.../profile/validator/impl/message/WSI4103.java | 28 +
.../profile/validator/impl/message/WSI4104.java | 28 +
.../profile/validator/impl/message/WSI4105.java | 28 +
.../profile/validator/impl/message/WSI4106.java | 28 +
.../profile/validator/impl/message/WSI4107.java | 28 +
.../profile/validator/impl/uddi/BP3001.java | 160 +
.../profile/validator/impl/uddi/BP3002.java | 81 +
.../profile/validator/impl/uddi/BP3003.java | 84 +
.../validator/impl/uddi/UDDIValidatorImpl.java | 594 ++++
.../profile/validator/impl/uddi/WSI3001.java | 26 +
.../profile/validator/impl/uddi/WSI3002.java | 26 +
.../profile/validator/impl/uddi/WSI3003.java | 26 +
.../profile/validator/impl/uddi/WSI3004.java | 290 ++
.../validator/impl/uddi/WSI3005_OBSOLETE.java | 119 +
.../profile/validator/impl/uddi/WSI3006.java | 165 +
.../profile/validator/impl/uddi/WSI3007.java | 157 +
.../profile/validator/impl/uddi/WSI3021.java | 115 +
.../profile/validator/impl/wsdl/AP2901.java | 146 +
.../profile/validator/impl/wsdl/AP2903.java | 241 ++
.../profile/validator/impl/wsdl/AP2904.java | 50 +
.../profile/validator/impl/wsdl/AP2906.java | 216 ++
.../profile/validator/impl/wsdl/AP2907.java | 52 +
.../profile/validator/impl/wsdl/AP2908.java | 297 ++
.../profile/validator/impl/wsdl/AP2909.java | 215 ++
.../profile/validator/impl/wsdl/AP2910.java | 230 ++
.../profile/validator/impl/wsdl/AP2911.java | 228 ++
.../profile/validator/impl/wsdl/AP2930.java | 136 +
.../profile/validator/impl/wsdl/AP2940.java | 450 +++
.../profile/validator/impl/wsdl/AP2941.java | 341 ++
.../profile/validator/impl/wsdl/AP2944.java | 234 ++
.../profile/validator/impl/wsdl/AP2946.java | 194 ++
.../profile/validator/impl/wsdl/BP2010.java | 119 +
.../profile/validator/impl/wsdl/BP2011.java | 343 ++
.../profile/validator/impl/wsdl/BP2012.java | 123 +
.../profile/validator/impl/wsdl/BP2013.java | 91 +
.../profile/validator/impl/wsdl/BP2014.java | 286 ++
.../profile/validator/impl/wsdl/BP2017.java | 142 +
.../profile/validator/impl/wsdl/BP2018.java | 195 ++
.../profile/validator/impl/wsdl/BP2019.java | 124 +
.../profile/validator/impl/wsdl/BP2020.java | 162 +
.../profile/validator/impl/wsdl/BP2021.java | 112 +
.../profile/validator/impl/wsdl/BP2022.java | 82 +
.../profile/validator/impl/wsdl/BP2023.java | 85 +
.../profile/validator/impl/wsdl/BP2032.java | 86 +
.../profile/validator/impl/wsdl/BP2034.java | 94 +
.../profile/validator/impl/wsdl/BP2098.java | 69 +
.../profile/validator/impl/wsdl/BP2101.java | 118 +
.../profile/validator/impl/wsdl/BP2102.java | 203 ++
.../profile/validator/impl/wsdl/BP2103.java | 130 +
.../profile/validator/impl/wsdl/BP2104.java | 100 +
.../profile/validator/impl/wsdl/BP2105.java | 232 ++
.../profile/validator/impl/wsdl/BP2107.java | 202 ++
.../profile/validator/impl/wsdl/BP2108.java | 94 +
.../profile/validator/impl/wsdl/BP2110.java | 98 +
.../profile/validator/impl/wsdl/BP2111.java | 142 +
.../profile/validator/impl/wsdl/BP2112.java | 204 ++
.../profile/validator/impl/wsdl/BP2113.java | 159 +
.../profile/validator/impl/wsdl/BP2114.java | 278 ++
.../profile/validator/impl/wsdl/BP2115.java | 97 +
.../profile/validator/impl/wsdl/BP2116.java | 88 +
.../profile/validator/impl/wsdl/BP2117.java | 183 ++
.../profile/validator/impl/wsdl/BP2118.java | 98 +
.../profile/validator/impl/wsdl/BP2119.java | 165 +
.../profile/validator/impl/wsdl/BP2120.java | 247 ++
.../profile/validator/impl/wsdl/BP2121.java | 174 ++
.../profile/validator/impl/wsdl/BP2122.java | 109 +
.../profile/validator/impl/wsdl/BP2123.java | 357 +++
.../profile/validator/impl/wsdl/BP2201.java | 189 ++
.../profile/validator/impl/wsdl/BP2202.java | 423 +++
.../profile/validator/impl/wsdl/BP2208.java | 72 +
.../profile/validator/impl/wsdl/BP2402.java | 69 +
.../profile/validator/impl/wsdl/BP2404.java | 76 +
.../profile/validator/impl/wsdl/BP2406.java | 166 +
.../profile/validator/impl/wsdl/BP2416.java | 209 ++
.../profile/validator/impl/wsdl/BP2417.java | 160 +
.../profile/validator/impl/wsdl/BP2700.java | 82 +
.../profile/validator/impl/wsdl/BP2701.java | 89 +
.../profile/validator/impl/wsdl/BP2703.java | 111 +
.../profile/validator/impl/wsdl/BP2803.java | 87 +
.../profile/validator/impl/wsdl/BP4200.java | 162 +
.../profile/validator/impl/wsdl/BP4201.java | 144 +
.../profile/validator/impl/wsdl/BP4202.java | 135 +
.../profile/validator/impl/wsdl/SSBP2209.java | 29 +
.../profile/validator/impl/wsdl/SSBP2402.java | 26 +
.../profile/validator/impl/wsdl/SSBP2403.java | 191 ++
.../validator/impl/wsdl/WSDLValidatorImpl.java | 2319 ++++++++++++++
.../profile/validator/impl/wsdl/WSI2010.java | 26 +
.../profile/validator/impl/wsdl/WSI2011.java | 26 +
.../profile/validator/impl/wsdl/WSI2012.java | 26 +
.../profile/validator/impl/wsdl/WSI2013.java | 26 +
.../profile/validator/impl/wsdl/WSI2014.java | 26 +
.../profile/validator/impl/wsdl/WSI2017.java | 26 +
.../profile/validator/impl/wsdl/WSI2018.java | 26 +
.../profile/validator/impl/wsdl/WSI2019.java | 26 +
.../profile/validator/impl/wsdl/WSI2020.java | 26 +
.../profile/validator/impl/wsdl/WSI2021.java | 26 +
.../profile/validator/impl/wsdl/WSI2022.java | 26 +
.../profile/validator/impl/wsdl/WSI2032.java | 26 +
.../profile/validator/impl/wsdl/WSI2098.java | 26 +
.../profile/validator/impl/wsdl/WSI2099.java | 157 +
.../profile/validator/impl/wsdl/WSI2100.java | 171 +
.../profile/validator/impl/wsdl/WSI2101.java | 26 +
.../profile/validator/impl/wsdl/WSI2102.java | 26 +
.../profile/validator/impl/wsdl/WSI2103.java | 26 +
.../profile/validator/impl/wsdl/WSI2104.java | 26 +
.../profile/validator/impl/wsdl/WSI2105.java | 26 +
.../profile/validator/impl/wsdl/WSI2107.java | 26 +
.../profile/validator/impl/wsdl/WSI2108.java | 26 +
.../profile/validator/impl/wsdl/WSI2110.java | 26 +
.../profile/validator/impl/wsdl/WSI2111.java | 26 +
.../profile/validator/impl/wsdl/WSI2112.java | 26 +
.../profile/validator/impl/wsdl/WSI2113.java | 26 +
.../profile/validator/impl/wsdl/WSI2114.java | 26 +
.../profile/validator/impl/wsdl/WSI2115.java | 26 +
.../profile/validator/impl/wsdl/WSI2116.java | 26 +
.../profile/validator/impl/wsdl/WSI2117.java | 26 +
.../profile/validator/impl/wsdl/WSI2118.java | 26 +
.../profile/validator/impl/wsdl/WSI2119.java | 26 +
.../profile/validator/impl/wsdl/WSI2120.java | 26 +
.../profile/validator/impl/wsdl/WSI2122.java | 26 +
.../profile/validator/impl/wsdl/WSI2123.java | 26 +
.../profile/validator/impl/wsdl/WSI2201.java | 26 +
.../profile/validator/impl/wsdl/WSI2202.java | 26 +
.../profile/validator/impl/wsdl/WSI2208.java | 26 +
.../profile/validator/impl/wsdl/WSI2402.java | 26 +
.../profile/validator/impl/wsdl/WSI2403.java | 26 +
.../profile/validator/impl/wsdl/WSI2404.java | 26 +
.../profile/validator/impl/wsdl/WSI2406.java | 26 +
.../profile/validator/impl/wsdl/WSI2416.java | 26 +
.../profile/validator/impl/wsdl/WSI2417.java | 26 +
.../profile/validator/impl/wsdl/WSI2700.java | 26 +
.../profile/validator/impl/wsdl/WSI2701.java | 26 +
.../profile/validator/impl/wsdl/WSI2703.java | 26 +
.../profile/validator/impl/wsdl/WSI4200.java | 26 +
.../profile/validator/impl/wsdl/WSI4201.java | 26 +
.../profile/validator/impl/wsdl/WSI4202.java | 26 +
.../wst/wsi/internal/report/ArtifactReference.java | 67 +
.../wst/wsi/internal/report/AssertionError.java | 131 +
.../wst/wsi/internal/report/AssertionResult.java | 148 +
.../wst/wsi/internal/report/BuildReport.java | 125 +
.../org/eclipse/wst/wsi/internal/report/Entry.java | 153 +
.../wst/wsi/internal/report/EntryContainer.java | 35 +
.../wst/wsi/internal/report/EntryResult.java | 42 +
.../wst/wsi/internal/report/FailureDetail.java | 94 +
.../wst/wsi/internal/report/PrereqFailedList.java | 43 +
.../eclipse/wst/wsi/internal/report/Report.java | 105 +
.../wst/wsi/internal/report/ReportArtifact.java | 79 +
.../wst/wsi/internal/report/ReportContext.java | 116 +
.../wst/wsi/internal/report/ReportWriter.java | 40 +
.../eclipse/wst/wsi/internal/report/Reporter.java | 21 +
.../wst/wsi/internal/report/WriteReport.java | 47 +
.../report/impl/ArtifactReferenceImpl.java | 124 +
.../internal/report/impl/AssertionResultImpl.java | 236 ++
.../wsi/internal/report/impl/DefaultReporter.java | 287 ++
.../internal/report/impl/EntryContainerImpl.java | 56 +
.../wst/wsi/internal/report/impl/EntryImpl.java | 276 ++
.../wsi/internal/report/impl/EntryResultImpl.java | 56 +
.../internal/report/impl/FailureDetailImpl.java | 150 +
.../internal/report/impl/PrereqFailedListImpl.java | 74 +
.../internal/report/impl/ReportArtifactImpl.java | 115 +
.../wst/wsi/internal/report/impl/ReportImpl.java | 514 +++
.../internal/report/impl/ReportNoWriterImpl.java | 84 +
.../wsi/internal/report/impl/ReportWriterImpl.java | 63 +
.../eclipse/wst/wsi/internal/toolinfo.properties | 18 +
.../wst/wsi/internal/util/ArtifactType.java | 140 +
.../eclipse/wst/wsi/internal/util/BasicRules.java | 479 +++
.../eclipse/wst/wsi/internal/util/EntryType.java | 278 ++
.../eclipse/wst/wsi/internal/util/ErrorList.java | 156 +
.../wst/wsi/internal/util/HTTPConstants.java | 600 ++++
.../eclipse/wst/wsi/internal/util/HTTPUtils.java | 182 ++
.../wsi/internal/util/HttpHeadersValidator.java | 1739 +++++++++++
.../wst/wsi/internal/util/JavaEncoding.properties | 31 +
.../wst/wsi/internal/util/MIMEConstants.java | 24 +
.../eclipse/wst/wsi/internal/util/MIMEUtils.java | 138 +
.../eclipse/wst/wsi/internal/util/MessageList.java | 171 +
.../eclipse/wst/wsi/internal/util/NullUtil.java | 40 +
.../wst/wsi/internal/util/OperationSignature.java | 772 +++++
.../org/eclipse/wst/wsi/internal/util/Pair.java | 77 +
.../wst/wsi/internal/util/SetCookie2Validator.java | 649 ++++
.../wst/wsi/internal/util/StringTokenizer.java | 213 ++
.../eclipse/wst/wsi/internal/util/TestUtils.java | 192 ++
.../wst/wsi/internal/util/TypesRegistry.java | 559 ++++
.../eclipse/wst/wsi/internal/util/UDDIUtils.java | 336 ++
.../org/eclipse/wst/wsi/internal/util/Utils.java | 1418 +++++++++
.../eclipse/wst/wsi/internal/util/WSDLUtil.java | 154 +
.../wst/wsi/internal/util/WSIProperties.java | 344 ++
.../org/eclipse/wst/wsi/internal/util/XMLInfo.java | 27 +
.../eclipse/wst/wsi/internal/util/wsi.properties | 46 +
.../wst/wsi/internal/wsdl/WSDLDocument.java | 290 ++
.../wst/wsi/internal/wsdl/WSDLElementList.java | 98 +
.../wst/wsi/internal/wsdl/WSDLReaderImpl.java | 766 +++++
.../eclipse/wst/wsi/internal/wsdl/WSDLUtils.java | 383 +++
.../internal/wsdl/traversal/VisitorAdaptor.java | 205 ++
.../wsi/internal/wsdl/traversal/WSDLTraversal.java | 3270 ++++++++++++++++++++
.../wsdl/traversal/WSDLTraversalContext.java | 1125 +++++++
.../wsi/internal/wsdl/traversal/WSDLVisitor.java | 232 ++
.../wsi/internal/wsdl/xsd/FileEntityResolver.java | 59 +
.../internal/wsdl/xsd/InlineSchemaGenerator.java | 591 ++++
.../internal/wsdl/xsd/InlineSchemaValidator.java | 242 ++
.../wsi/internal/wsdl/xsd/InlineXSDResolver.java | 112 +
.../internal/wsdl/xsd/SchemaAttributeTable.java | 105 +
.../internal/wsdl/xsd/ValidateErrorHandler.java | 62 +
.../wst/wsi/internal/wsdl/xsd/XMLCatalog.java | 90 +
.../wst/wsi/internal/wsdl/xsd/XMLCatalogImpl.java | 45 +
.../wsi/internal/wsdl/xsd/XMLCatalogResolver.java | 67 +
.../internal/wsdl/xsd/XMLEntityResolverChain.java | 74 +
.../wst/wsi/internal/wsdl/xsd/XSDValidator.java | 191 ++
.../eclipse/wst/wsi/internal/xml/XMLConvertor.java | 69 +
.../wst/wsi/internal/xml/XMLDocumentCache.java | 65 +
.../wst/wsi/internal/xml/XMLDocumentCacheUser.java | 122 +
.../org/eclipse/wst/wsi/internal/xml/XMLTags.java | 60 +
.../eclipse/wst/wsi/internal/xml/XMLTraversal.java | 129 +
.../org/eclipse/wst/wsi/internal/xml/XMLUtils.java | 1503 +++++++++
.../eclipse/wst/wsi/internal/xml/XMLVisitor.java | 175 ++
.../wst/wsi/internal/xml/dom/DOMParser.java | 96 +
.../wst/wsi/internal/xml/dom/ElementLocation.java | 92 +
.../xml/jaxp/DocumentBuilderFactoryImpl.java | 86 +
.../wsi/internal/xml/jaxp/DocumentBuilderImpl.java | 249 ++
.../xml/schema/TargetNamespaceProcessor.java | 136 +
.../internal/xml/schema/XMLSchemaProcessor.java | 163 +
.../internal/xml/schema/XMLSchemaValidator.java | 156 +
450 files changed, 74645 insertions(+)
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolEnvironment.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolInfo.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/URIEncoder.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIConstants.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIFileNotFoundException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIPreferences.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIRuntimeException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITag.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsPlugin.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsProperties.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.properties
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AnalyzerContext.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionFailException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionNotApplicableException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionPassException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionResultException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/BasicProfileAnalyzer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/CandidateInfo.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/EnvironmentInfo.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/MessageAnalyzer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/ServiceReference.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/WSDLAnalyzer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/WSIAnalyzerException.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/WSIBasicProfileAnalyzer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/AnalyzerConfig.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/AnalyzerConfigReader.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/AssertionResultType.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/AssertionResultsOption.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/UDDIReference.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/WSDLElement.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/WSDLReference.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/AnalyzerConfigImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/AnalyzerConfigReaderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/AssertionResultsOptionImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/UDDIReferenceImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/WSDLElementImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/config/impl/WSDLReferenceImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/common/AddStyleSheet.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/common/impl/AddStyleSheetImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/DocumentElement.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/DocumentFactory.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/DocumentReader.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/DocumentWriter.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/WSIDocument.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/impl/DocumentFactoryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/impl/DocumentWriterImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/document/impl/WSIDocumentFactoryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/Log.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/LogReader.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/LogWriter.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/MessageEntry.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/MessageEntryHandler.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/MimePart.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/MimeParts.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/LogImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/LogReaderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/LogWriterImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/MessageEntryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/MimePartImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/log/impl/MimePartsImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/ChunkedData.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/ConnectionListener.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/MessageEntryQueue.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/Monitor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/Monitor.properties
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/ServerSocketListener.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/SocketConnection.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/SocketHandler.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/Comment.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/ManInTheMiddle.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/MonitorConfig.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/MonitorConfigReader.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/Redirect.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/impl/CommentImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/impl/ManInTheMiddleImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/impl/MonitorConfigImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/impl/MonitorConfigReaderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/monitor/config/impl/RedirectImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/EntryTypeList.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/Profile.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/ProfileArtifact.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/ProfileAssertions.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/ProfileAssertionsReader.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/TestAssertion.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/impl/EntryTypeListImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/impl/ProfileArtifactImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/impl/ProfileAssertionsImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/impl/ProfileAssertionsReaderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/impl/TestAssertionImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/BaseValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/EntryContext.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/EnvelopeValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/MessageValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/ProfileValidatorFactory.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/UDDIValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/WSDLValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/AssertionProcess.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/AssertionProcessVisitor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/BaseMessageValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/BaseValidatorImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/ProfileValidatorFactoryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/AP1920.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/AP1928.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1005.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1007.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1008.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1009.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1011.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1012.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1013.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1031.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1032.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1033.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1203.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1204.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1208.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1211.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1212.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1213.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1214.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1301.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1302.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1305.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1306.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1307.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1308.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1309.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1316.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1318.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1600.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1601.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1701.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP1755.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP4100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP4101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP4102.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/BP4109.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/EnvelopeValidatorImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/SSBP1601.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/envelope/SSBP9704.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1003.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1902.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1915.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1917.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1925.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1926.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1931.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1932.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1933.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1934.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1935.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1936.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1942.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1945.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP1946.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP5100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/AP5101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1001.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1002.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1004.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1006.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1010.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP1116.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP4103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP4104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP4105.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP4106.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/BP4107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/MessageValidatorImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/SSBP1003.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/SSBP5100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/SSBP5101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1001.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1002.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1003.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1004.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1005.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1006.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1007.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1008.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1009.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1010.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1011.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1012.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1013.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1031.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1102.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1105.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1108.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1109.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1110.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1111.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1116.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1121.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1203.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1204.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1208.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1211.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1301.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1302.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1305.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1306.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1307.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1308.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1309.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1311.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1316.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1318.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1601.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI1701.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4102.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4105.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4106.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/message/WSI4107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/BP3001.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/BP3002.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/BP3003.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/UDDIValidatorImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3001.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3002.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3003.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3004.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3005_OBSOLETE.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3006.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3007.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/uddi/WSI3021.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2901.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2903.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2904.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2906.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2907.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2908.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2909.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2910.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2911.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2930.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2940.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2941.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2944.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/AP2946.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2010.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2011.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2012.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2013.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2014.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2017.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2018.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2019.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2020.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2021.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2022.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2023.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2032.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2034.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2098.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2102.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2105.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2108.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2110.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2111.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2112.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2113.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2114.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2115.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2116.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2117.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2118.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2119.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2120.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2121.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2122.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2123.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2208.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2402.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2404.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2406.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2416.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2417.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2700.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2701.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2703.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP2803.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP4200.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP4201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/BP4202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/SSBP2209.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/SSBP2402.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/SSBP2403.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSDLValidatorImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2010.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2011.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2012.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2013.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2014.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2017.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2018.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2019.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2020.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2021.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2022.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2032.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2098.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2099.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2100.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2101.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2102.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2103.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2104.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2105.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2107.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2108.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2110.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2111.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2112.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2113.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2114.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2115.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2116.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2117.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2118.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2119.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2120.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2122.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2123.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2208.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2402.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2403.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2404.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2406.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2416.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2417.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2700.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2701.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI2703.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI4200.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI4201.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/profile/validator/impl/wsdl/WSI4202.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/ArtifactReference.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/AssertionError.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/AssertionResult.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/BuildReport.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/Entry.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/EntryContainer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/EntryResult.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/FailureDetail.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/PrereqFailedList.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/Report.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/ReportArtifact.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/ReportContext.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/ReportWriter.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/Reporter.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/WriteReport.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/ArtifactReferenceImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/AssertionResultImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/DefaultReporter.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/EntryContainerImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/EntryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/EntryResultImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/FailureDetailImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/PrereqFailedListImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/ReportArtifactImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/ReportImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/ReportNoWriterImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/report/impl/ReportWriterImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/toolinfo.properties
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/ArtifactType.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/BasicRules.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/EntryType.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/ErrorList.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/HTTPConstants.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/HTTPUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/HttpHeadersValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/JavaEncoding.properties
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/MIMEConstants.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/MIMEUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/MessageList.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/NullUtil.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/OperationSignature.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/Pair.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/SetCookie2Validator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/StringTokenizer.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/TestUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/TypesRegistry.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/UDDIUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/Utils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/WSDLUtil.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/WSIProperties.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/XMLInfo.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/util/wsi.properties
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/WSDLDocument.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/WSDLElementList.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/WSDLReaderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/WSDLUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/traversal/VisitorAdaptor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/traversal/WSDLTraversal.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/traversal/WSDLTraversalContext.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/traversal/WSDLVisitor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/FileEntityResolver.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/InlineSchemaGenerator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/InlineSchemaValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/InlineXSDResolver.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/SchemaAttributeTable.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/ValidateErrorHandler.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/XMLCatalog.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/XMLCatalogImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/XMLCatalogResolver.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/XMLEntityResolverChain.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/wsdl/xsd/XSDValidator.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLConvertor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLDocumentCache.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLDocumentCacheUser.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLTags.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLTraversal.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLUtils.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/XMLVisitor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/dom/DOMParser.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/dom/ElementLocation.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/jaxp/DocumentBuilderFactoryImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/jaxp/DocumentBuilderImpl.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/schema/TargetNamespaceProcessor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/schema/XMLSchemaProcessor.java
create mode 100644 bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/xml/schema/XMLSchemaValidator.java
(limited to 'bundles/org.eclipse.wst.wsi/wsitools/org')
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolEnvironment.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolEnvironment.java
new file mode 100644
index 000000000..9ba039efb
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolEnvironment.java
@@ -0,0 +1,254 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import java.io.PrintWriter;
+import java.io.StringWriter;
+
+import org.eclipse.wst.wsi.internal.util.XMLInfo;
+
+/**
+ * This class contains Tool environment information.
+ *
+ * @version 1.0.1
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ */
+public class ToolEnvironment
+{
+ /**
+ * Element name.
+ */
+ public static final String ELEM_NAME = WSIConstants.ELEM_ENVIRONMENT;
+
+ /**
+ * QName.
+ */
+ //public static final QName QNAME = new QName(WSIConstants.NS_URI_WSI_COMMON, ELEM_NAME);
+
+ /**
+ * Tool environment information.
+ */
+ protected String runtimeName = System.getProperty("java.runtime.name");
+ protected String runtimeVersion = System.getProperty("java.runtime.version");
+
+ protected String osName = System.getProperty("os.name");
+ protected String osVersion = System.getProperty("os.version");
+
+ protected String xmlParserName = "?";
+ protected String xmlParserVersion = "?";
+
+ /**
+ * Additional tool environment information.
+ */
+ protected XMLInfo xmlInfo = null;
+
+ /**
+ * Create object that represents tool runtime environment.
+ */
+ public ToolEnvironment()
+ {
+ try
+ {
+
+ // FUTURE: made compatible with later versions of Xerces where getVersion
+ // is no longer statically available.
+ // xmlParserVersion = new org.apache.xerces.impl.Version().getVersion();
+ xmlParserVersion = org.apache.xerces.impl.Version.getVersion();
+
+ xmlParserName = "Apache Xerces";
+ }
+
+ catch (Exception e)
+ {
+ // ADD: How else can we get the name version number
+ }
+
+ catch (Error err)
+ {
+ // ADD: How else can we get the name version number
+ }
+ }
+
+ /**
+ * Create object that represents tool runtime environment.
+ * @param xmlInfo additional tool environment information.
+ */
+ public ToolEnvironment(XMLInfo xmlInfo)
+ {
+ this.xmlInfo = xmlInfo;
+ }
+
+ /**
+ * Returns the osName.
+ * @return the osName.
+ * @see #setOSName
+ */
+ public String getOSName()
+ {
+ return osName;
+ }
+
+ /**
+ * Returns the osVersion.
+ * @return the osVersion.
+ * @see #setOSVersion
+ */
+ public String getOSVersion()
+ {
+ return osVersion;
+ }
+
+ /**
+ * Returns the parserName.
+ * @return the parserName.
+ * @see #setXMLParserName
+ */
+ public String getXMLParserName()
+ {
+ return xmlParserName;
+ }
+
+ /**
+ * Returns the parserVersion.
+ * @return the parserVersion.
+ * @see #setXMLParserVersion
+ */
+ public String getXMLParserVersion()
+ {
+ return xmlParserVersion;
+ }
+
+ /**
+ * Returns the runtimeName.
+ * @return the runtimeName.
+ * @see #setRuntimeName
+ */
+ public String getRuntimeName()
+ {
+ return runtimeName;
+ }
+
+ /**
+ * Returns the runtimeVersion.
+ * @return the runtimeVersion.
+ * @see #setRuntimeVersion
+ */
+ public String getRuntimeVersion()
+ {
+ return runtimeVersion;
+ }
+
+ /**
+ * Sets the osName.
+ * @param osName the osName to set.
+ * @see #getOSName
+ */
+ public void setOSName(String osName)
+ {
+ this.osName = osName;
+ }
+
+ /**
+ * Sets the osVersion.
+ * @param osVersion the osVersion to set.
+ * @see #getOSVersion
+ */
+ public void setOSVersion(String osVersion)
+ {
+ this.osVersion = osVersion;
+ }
+
+ /**
+ * Sets the parserName.
+ * @param xmlParserName the parserName to set.
+ * @see #getXMLParserName
+ */
+ public void setXMLParserName(String xmlParserName)
+ {
+ this.xmlParserName = xmlParserName;
+ }
+
+ /**
+ * Sets the parserVersion.
+ * @param xmlParserVersion the parserVersion to set.
+ * @see #getXMLParserVersion
+ */
+ public void setXMLParserVersion(String xmlParserVersion)
+ {
+ this.xmlParserVersion = xmlParserVersion;
+ }
+
+ /**
+ * Sets the runtimeName.
+ * @param runtimeName the runtimeName to set.
+ * @see #getRuntimeName
+ */
+ public void setRuntimeName(String runtimeName)
+ {
+ this.runtimeName = runtimeName;
+ }
+
+ /**
+ * Sets the runtimeVersion.
+ * @param runtimeVersion the runtimeVersion to set.
+ * @see #getRuntimeVersion
+ */
+ public void setRuntimeVersion(String runtimeVersion)
+ {
+ this.runtimeVersion = runtimeVersion;
+ }
+
+ /**
+ * Sets the additional environment information.
+ * @param xmlInfo additional tool environment information.
+ */
+ public void setAdditionalToolEnvironment(XMLInfo xmlInfo)
+ {
+ this.xmlInfo = xmlInfo;
+ }
+
+ /**
+ * Return XML string representation of this object.
+ * @param namespaceName the namespace prefix.
+ * @return the XML string representation of this object.
+ */
+ public String toXMLString(String namespaceName)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+
+ String nsName = namespaceName;
+ if (!nsName.equals(""))
+ nsName += ":";
+
+ // Start element
+ pw.println(" <" + nsName + ELEM_NAME + ">");
+
+ pw.print(" <" + nsName + WSIConstants.ELEM_RUNTIME + " ");
+ pw.print(WSIConstants.ATTR_NAME + "=\"" + runtimeName + "\" ");
+ pw.println(WSIConstants.ATTR_VERSION + "=\"" + runtimeVersion + "\"/>");
+ pw.print(" <" + nsName + WSIConstants.ELEM_OPERATING_SYSTEM + " ");
+ pw.print(WSIConstants.ATTR_NAME + "=\"" + osName + "\" ");
+ pw.println(WSIConstants.ATTR_VERSION + "=\"" + osVersion + "\"/>");
+ pw.print(" <" + nsName + WSIConstants.ELEM_XML_PARSER + " ");
+ pw.print(WSIConstants.ATTR_NAME + "=\"" + xmlParserName + "\" ");
+ pw.println(WSIConstants.ATTR_VERSION + "=\"" + xmlParserVersion + "\"/>");
+
+ // If addtional info, then get it
+ if (xmlInfo != null)
+ pw.print(xmlInfo.toXMLString(nsName));
+
+ // End element
+ pw.println(" " + nsName + ELEM_NAME + ">");
+
+ return sw.toString();
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolInfo.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolInfo.java
new file mode 100644
index 000000000..f6afdf0eb
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/ToolInfo.java
@@ -0,0 +1,465 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import java.io.FileWriter;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.eclipse.wst.wsi.internal.util.Utils;
+import org.eclipse.wst.wsi.internal.util.XMLInfo;
+
+/**
+ * Information that describes a conformance tool.
+ *
+ * @version 1.0.1
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ */
+public class ToolInfo
+{
+ /**
+ * Tool information property names.
+ */
+ public static final String PROP_TOOL_VERSION = "wsi.tool.version";
+ public static final String PROP_TOOL_RELEASE_DATE = "wsi.tool.release.date";
+ public static final String PROP_TOOL_IMPLEMENTER = "wsi.tool.implementer";
+ public static final String PROP_TOOL_LOCATION = "wsi.tool.location";
+
+ /**
+ * Default tool information property values.
+ */
+ private static final String DEF_TOOL_VERSION = "1.0.1";
+ private static final String DEF_TOOL_RELEASE_DATE = "2004-01-22";
+ private static final String DEF_TOOL_IMPLEMENTER = "Eclipse.org Organization";
+ private static final String DEF_TOOL_LOCATION = "http://www.eclipse.org/wsvt";
+
+ /**
+ * Tool information.
+ */
+ protected String name;
+ protected String version;
+ protected String releaseDate;
+ protected String implementer;
+ protected String location;
+
+ /**
+ * Tool environment.
+ */
+ protected ToolEnvironment toolEnvironment = null;
+
+ /**
+ * Tool info properties filename.
+ */
+ public static final String PROP_FILENAME = "org.wsi.test.toolinfo";
+
+ /**
+ * Create tool information.
+ */
+ public ToolInfo()
+ {
+ this.toolEnvironment = new ToolEnvironment();
+ }
+
+ /**
+ * Create tool information from information in the toolinfo.properties file.
+ * @param name the tool name.
+ */
+ public ToolInfo(String name)
+ {
+ this.name = name;
+
+ getProperties();
+
+ this.toolEnvironment = new ToolEnvironment();
+ }
+
+ /**
+ * Create tool information.
+ * @param name the tool name.
+ * @param version the version of the tool.
+ * @param releaseDate the release date of the tool.
+ * @param implementer the implementer of the tool.
+ * @param location the implementer location.
+ */
+ public ToolInfo(
+ String name,
+ String version,
+ String releaseDate,
+ String implementer,
+ String location)
+ {
+ this.name = name;
+ this.version = version;
+ this.releaseDate = releaseDate;
+ this.implementer = implementer;
+ this.location = location;
+
+ this.toolEnvironment = new ToolEnvironment();
+ }
+
+ /**
+ * Create tool information with tool unique environment information.
+ * @param name the tool name.
+ * @param version the version of the tool.
+ * @param releaseDate the release date of the tool.
+ * @param implementer the implementer of the tool.
+ * @param location the implementer location.
+ * @param xmlInfo additional tool environment information.
+ */
+ public ToolInfo(
+ String name,
+ String version,
+ String releaseDate,
+ String implementer,
+ String location,
+ XMLInfo xmlInfo)
+ {
+ this.name = name;
+ this.version = version;
+ this.releaseDate = releaseDate;
+ this.implementer = implementer;
+ this.location = location;
+
+ this.toolEnvironment = new ToolEnvironment(xmlInfo);
+ }
+
+ /**
+ * Get name.
+ * @return name.
+ * @see #setName
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Get version.
+ * @return version.
+ * @see #setVersion
+ */
+ public String getVersion()
+ {
+ return version;
+ }
+
+ /**
+ * Get release date.
+ * @return release date.
+ * @see #setReleaseDate
+ */
+ public String getReleaseDate()
+ {
+ return releaseDate;
+ }
+
+ /**
+ * Get implementer.
+ * @return implementer.
+ * @see #setImplementer
+ */
+ public String getImplementer()
+ {
+ return implementer;
+ }
+
+ /**
+ * Get implementer location.
+ * @return implementer location.
+ * @see #setLocation
+ */
+ public String getLocation()
+ {
+ return location;
+ }
+
+ /**
+ * Returns the toolEnvironment.
+ * @return ToolEnvironment
+ * @see #setToolEnvironment
+ */
+ public ToolEnvironment getToolEnvironment()
+ {
+ return toolEnvironment;
+ }
+
+ /**
+ * Sets the implementer.
+ * @param implementer the implementer to set.
+ * @see #getImplementer
+ */
+ public void setImplementer(String implementer)
+ {
+ this.implementer = implementer;
+ }
+
+ /**
+ * Sets the location.
+ * @param location the location to set.
+ * @see #getLocation
+ */
+ public void setLocation(String location)
+ {
+ this.location = location;
+ }
+
+ /**
+ * Sets the name.
+ * @param name the name to set.
+ * @see #getName
+ */
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ /**
+ * Sets the releaseDate.
+ * @param releaseDate the releaseDate to set.
+ * @see #getReleaseDate
+ */
+ public void setReleaseDate(String releaseDate)
+ {
+ this.releaseDate = releaseDate;
+ }
+
+ /**
+ * Sets the toolEnvironment.
+ * @param toolEnvironment the toolEnvironment to set.
+ * @see #getToolEnvironment
+ */
+ public void setToolEnvironment(ToolEnvironment toolEnvironment)
+ {
+ this.toolEnvironment = toolEnvironment;
+ }
+
+ /**
+ * Sets the toolEnvironment.
+ * @param xmlInfo additional tool environment information.
+ */
+ public void setAdditionalToolEnvironment(XMLInfo xmlInfo)
+ {
+ this.toolEnvironment.setAdditionalToolEnvironment(xmlInfo);
+ }
+
+ /**
+ * Sets the version.
+ * @param version the version to set.
+ * @see #getVersion
+ */
+ public void setVersion(String version)
+ {
+ this.version = version;
+ }
+
+ /**
+ * Return start XML string representation of this object.
+ * @param namespaceName the namespace prefix.
+ * @return the start XML string representation of this object.
+ */
+ public String getStartXMLString(String namespaceName)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+
+ String nsName = namespaceName;
+ if (!nsName.equals(""))
+ nsName += ":";
+
+ pw.print(" <" + nsName + getName().toLowerCase() + " ");
+ pw.print(WSIConstants.ATTR_VERSION + "=\"" + getVersion() + "\" ");
+ pw.println(
+ WSIConstants.ATTR_RELEASE_DATE + "=\"" + getReleaseDate() + "\">");
+
+ pw.print(" <" + nsName + WSIConstants.ELEM_IMPLEMENTER + " ");
+ pw.print(WSIConstants.ATTR_NAME + "=\"" + getImplementer() + "\" ");
+ pw.println(WSIConstants.ATTR_LOCATION + "=\"" + getLocation() + "\"/>");
+
+ // Environment
+ pw.print(toolEnvironment.toXMLString(namespaceName));
+
+ return sw.toString();
+ }
+
+ /**
+ * Return the end XML string representation of this object.
+ * @param namespaceName the namespace prefix.
+ * @return the end XML string representation of this object.
+ */
+ public String getEndXMLString(String namespaceName)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+
+ String nsName = namespaceName;
+ if (!nsName.equals(""))
+ nsName += ":";
+
+ pw.println(" " + nsName + getName().toLowerCase() + ">");
+
+ return sw.toString();
+ }
+
+ /**
+ * Get values from the tools.properties file.
+ */
+ protected void getProperties()
+ {
+ //Properties props = new Properties();
+ ResourceBundle resourceBundle;
+
+ try
+ {
+ // Try to load properties from wsi.properties
+ //InputStream is = Utils.getInputStream(PROP_FILENAME);
+
+ // Load properties from file
+ //props.load(is);
+
+ // Get resource
+ resourceBundle = ResourceBundle.getBundle(PROP_FILENAME);
+
+ // Get property values
+ this.version =
+ getProperty(resourceBundle, PROP_TOOL_VERSION, DEF_TOOL_VERSION);
+ this.releaseDate =
+ getProperty(
+ resourceBundle,
+ PROP_TOOL_RELEASE_DATE,
+ DEF_TOOL_RELEASE_DATE);
+ this.implementer =
+ getProperty(
+ resourceBundle,
+ PROP_TOOL_IMPLEMENTER,
+ DEF_TOOL_IMPLEMENTER);
+ this.location =
+ getProperty(resourceBundle, PROP_TOOL_LOCATION, DEF_TOOL_LOCATION);
+ }
+
+ catch (MissingResourceException mre)
+ {
+ // DEBUG:
+ //System.out.println("Exception loading properties: " + e.toString());
+
+ // Set default property values
+ this.version = DEF_TOOL_VERSION;
+ this.releaseDate = DEF_TOOL_RELEASE_DATE;
+ this.implementer = DEF_TOOL_IMPLEMENTER;
+ this.location = DEF_TOOL_LOCATION;
+ }
+ }
+
+ /**
+ * Get property.
+ * @param resourceBundle a resource bundle.
+ * @param key a key.
+ * @param defaultValue a default value.
+ * @return property. If not found return default value.
+ */
+ protected String getProperty(
+ ResourceBundle resourceBundle,
+ String key,
+ String defaultValue)
+ {
+ String value;
+
+ if ((value = resourceBundle.getString(key)) == null)
+ value = defaultValue;
+
+ return value;
+ }
+
+ /**
+ * Format tool location.
+ * @param location tool location.
+ * @return formatted tool location.
+ */
+ private String formatToolLocation(String location)
+ {
+ // Start with specified location
+ String returnLocation = location;
+
+ // Make sure string ends the "/"
+ if (!returnLocation.endsWith("/"))
+ returnLocation += "/";
+
+ // Add tool name and .html
+ return returnLocation + getName() + ".html";
+ }
+
+ /**
+ * Create the tools.properties file from the command line.
+ * The input arguements are:
+ *
+ * - Filename for the properties file to create
+ *
- Version number
+ *
-
+ *
+ * @param args the arguments for main.
+ */
+ public static void main(String[] args)
+ {
+ int statusCode = 0;
+ String filename = PROP_FILENAME;
+ String version = DEF_TOOL_VERSION;
+ String implementer = DEF_TOOL_IMPLEMENTER;
+ String location = DEF_TOOL_LOCATION;
+
+ // Set the file name
+ if (args.length >= 1)
+ filename = args[0];
+
+ if (args.length >= 2)
+ version = args[1];
+
+ if (args.length >= 3)
+ implementer = args[2];
+
+ if (args.length >= 4)
+ location = args[3];
+
+ try
+ {
+ // Create file writer
+ FileWriter fileWriter = new FileWriter(filename);
+
+ // Create print writer
+ PrintWriter printWriter = new PrintWriter(fileWriter);
+
+ // Write out contents of properties file
+ printWriter.println(COMMENTS);
+ printWriter.println(PROP_TOOL_VERSION + "=" + version);
+ printWriter.println(PROP_TOOL_RELEASE_DATE + "=" + Utils.getDate());
+ printWriter.println(PROP_TOOL_IMPLEMENTER + "=" + implementer);
+ printWriter.println(PROP_TOOL_LOCATION + "=" + location);
+
+ // Close file writer
+ fileWriter.close();
+
+ // Done
+ System.out.println("File [" + filename + "] created.");
+ }
+
+ catch (java.io.IOException ioe)
+ {
+ statusCode = 1;
+ System.out.println("EXCEPTION: " + ioe.toString());
+ ioe.printStackTrace();
+ }
+
+ // Exit
+ System.exit(statusCode);
+ }
+
+ private static final String COMMENTS = "";
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/URIEncoder.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/URIEncoder.java
new file mode 100644
index 000000000..a389ed1e8
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/URIEncoder.java
@@ -0,0 +1,204 @@
+/*
+ * Licensed Material - Property of IBM
+ * (C) Copyright IBM Corp. 2002 - All Rights Reserved.
+ * US Government Users Restricted Rights - Use, duplication or disclosure
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
+ *
+ * plugins/com.ibm.etools.xmlutility/src/com/ibm/etools/xmlutility/uri/URIEncoder.java, com.ibm.etools.xmlutility, wsa.xml.v51, 20030718_1605.o
+ *
+ * @version 1.3 7/18/03
+ */
+
+package org.eclipse.wst.wsi.internal;
+
+import java.io.ByteArrayOutputStream;
+import java.io.BufferedWriter;
+import java.io.OutputStreamWriter;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.util.BitSet;
+
+/**
+ * This class is a modified version of java.lang.URLEncoder.
+ */
+public class URIEncoder
+{
+ static BitSet dontNeedEncoding;
+ static final int caseDiff = ('a' - 'A');
+ static String dfltEncName = null;
+
+ static {
+ dontNeedEncoding = new BitSet(256);
+ int i;
+ for (i = 'a'; i <= 'z'; i++)
+ {
+ dontNeedEncoding.set(i);
+ }
+ for (i = 'A'; i <= 'Z'; i++)
+ {
+ dontNeedEncoding.set(i);
+ }
+ for (i = '0'; i <= '9'; i++)
+ {
+ dontNeedEncoding.set(i);
+ }
+
+ //dontNeedEncoding.set(' '); // cs.. removed so that space character will be replaced by %20
+ dontNeedEncoding.set('-');
+ dontNeedEncoding.set('_');
+ dontNeedEncoding.set('.');
+ dontNeedEncoding.set('*');
+ dontNeedEncoding.set(':'); // cs.. added
+ dontNeedEncoding.set('/');
+ // cs.. added so that slashes don't get encoded as %2F
+
+ // dfltEncName = (String)AccessController.doPrivileged(new GetPropertyAction("file.encoding"));
+ // As discussed with Sandy, we should encode URIs with UTF8
+ dfltEncName = "UTF8";
+ //System.out.println("dfltEncName " + dfltEncName);
+ }
+
+ /**
+ * You can't call the constructor.
+ */
+ private URIEncoder()
+ {
+ }
+
+ /**
+ * Translates a string into x-www-form-urlencoded
+ * format. This method uses the platform's default encoding
+ * as the encoding scheme to obtain the bytes for unsafe characters.
+ *
+ * @param s String
to be translated.
+ * @return the translated String
.
+ */
+ public static String encode(String s)
+ {
+ String str = null;
+ try
+ {
+ str = encode(s, dfltEncName);
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ // The system should always have the platform default
+ }
+ return str;
+ }
+
+ /**
+ * Translates a string into application/x-www-form-urlencoded
+ * format using a specific encoding scheme. This method uses the
+ * supplied encoding scheme to obtain the bytes for unsafe
+ * characters.
+ *
+ * Note: The
+ * World Wide Web Consortium Recommendation states that
+ * UTF-8 should be used. Not doing so may introduce
+ * incompatibilites.
+ *
+ * @param s String
to be translated.
+ * @param enc The name of a supported
+ * character
+ * encoding.
+ * @return the translated String
.
+ * @exception UnsupportedEncodingException
+ * If the named encoding is not supported
+ * @see URLDecoder#decode(java.lang.String, java.lang.String)
+ */
+ public static String encode(String s, String enc)
+ throws UnsupportedEncodingException
+ {
+ boolean needToChange = false;
+ boolean wroteUnencodedChar = false;
+ int maxBytesPerChar = 10; // rather arbitrary limit, but safe for now
+ StringBuffer out = new StringBuffer(s.length());
+ ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);
+ BufferedWriter writer =
+ new BufferedWriter(new OutputStreamWriter(buf, enc));
+
+ for (int i = 0; i < s.length(); i++)
+ {
+ int c = (int) s.charAt(i);
+ //System.out.println("Examining character: " + c);
+ if (dontNeedEncoding.get(c))
+ {
+ //if (c == ' ')
+ //{
+ // c = '+';
+ // needToChange = true;
+ //}
+ //System.out.println("Storing: " + c);
+ out.append((char) c);
+ wroteUnencodedChar = true;
+ }
+ else
+ {
+ // convert to external encoding before hex conversion
+ try
+ {
+ if (wroteUnencodedChar)
+ { // Fix for 4407610
+ writer = new BufferedWriter(new OutputStreamWriter(buf, enc));
+ wroteUnencodedChar = false;
+ }
+ writer.write(c);
+
+ // If this character represents the start of a Unicode
+ // surrogate pair, then pass in two characters. It's not
+ // clear what should be done if a bytes reserved in the
+ // surrogate pairs range occurs outside of a legal
+ // surrogate pair. For now, just treat it as if it were
+ // any other character.
+ //
+ if (c >= 0xD800 && c <= 0xDBFF)
+ {
+ // System.out.println(Integer.toHexString(c) + " is high surrogate");
+ if ((i + 1) < s.length())
+ {
+ int d = (int) s.charAt(i + 1);
+ // System.out.println("\tExamining " + Integer.toHexString(d));
+ if (d >= 0xDC00 && d <= 0xDFFF)
+ {
+ // System.out.println("\t" + Integer.toHexString(d) + " is low surrogate");
+ writer.write(d);
+ i++;
+ }
+ }
+ }
+ writer.flush();
+ }
+ catch (IOException e)
+ {
+ buf.reset();
+ continue;
+ }
+ byte[] ba = buf.toByteArray();
+
+ for (int j = 0; j < ba.length; j++)
+ {
+ out.append('%');
+ char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16);
+ // converting to use uppercase letter as part of
+ // the hex value if ch is a letter.
+ if (Character.isLetter(ch))
+ {
+ ch -= caseDiff;
+ }
+ out.append(ch);
+ ch = Character.forDigit(ba[j] & 0xF, 16);
+ if (Character.isLetter(ch))
+ {
+ ch -= caseDiff;
+ }
+ out.append(ch);
+ }
+ buf.reset();
+ needToChange = true;
+ }
+ }
+ return (needToChange ? out.toString() : s);
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIConstants.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIConstants.java
new file mode 100644
index 000000000..dc0d688df
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIConstants.java
@@ -0,0 +1,485 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2003 IBM Corporation, Parasoft 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ * Parasoft - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+/**
+ * WS-I constants.
+ *
+ * @version 1.0.1
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ * @author Jim Clune
+ * @author Graham Turrell (gturrell@uk.ibm.com)
+ */
+public interface WSIConstants {
+ /**
+ * Copyright notice.
+ */
+ public static final String COPYRIGHT = "Copyright (C) 2002-2003 by The Web Services-Interoperability Organization and Certain "
+ + "of its Members. All Rights Reserved.\nUse of this Material is governed by WS-I licenses included within the documentation.";
+
+ /**
+ * XML declaration statement.
+ */
+ public static final String XML_DECL = "";
+
+ /**
+ * XML namespace URI.
+ */
+ public static final String NS_URI_XMLNS = "http://www.w3.org/2000/xmlns/";
+ public static final String NS_URI_XML = "http://www.w3.org/XML/1998/namespace";
+ /**
+ * XML schema namespace URI.
+ */
+ public static final String NS_URI_XSD = "http://www.w3.org/2001/XMLSchema";
+
+ /**
+ * XML schema location.
+ */
+ public static final String XSD_SCHEMA_LOCATION = "http://www.w3.org/2001/XMLSchema.xsd";
+
+ /**
+ * XML schema namespace name.
+ */
+ public static final String NS_NAME_XSD = "xsd";
+
+ /**
+ * XML schema instance namespace URI.
+ */
+ public static final String NS_URI_XSI = "http://www.w3.org/2001/XMLSchema-instance";
+
+ /**
+ * XML schema namespace name.
+ */
+ public static final String NS_NAME_XSI = "xsi";
+
+
+ /**
+ * WS-I message log namespace URI.
+ */
+ public static final String NS_URI_WSI_LOG = "http://www.ws-i.org/testing/2004/07/log/";
+
+ public static final String NS_NAME_WSI_LOG = "wsi-log";
+
+ /**
+ * WS-I conformance report namespace URI.
+ */
+ public static final String NS_URI_WSI_REPORT = "http://www.ws-i.org/testing/2004/07/report/";
+ public static final String NS_NAME_WSI_REPORT = "wsi-report";
+
+ /**
+ * WS-I profile test assertions namespace URI.
+ */
+ public static final String NS_URI_WSI_ASSERTIONS_2003 = "http://www.ws-i.org/testing/2003/03/assertions/";
+ public static final String NS_URI_WSI_ASSERTIONS = "http://www.ws-i.org/testing/2004/07/assertions/";
+
+ public static final String NS_NAME_WSI_ASSERTIONS = "wsi-assertions";
+
+ /**
+ * WS-I monitor configuration file namesapce URI.
+ */
+ public static final String NS_URI_WSI_MONITOR_CONFIG_2003 = "http://www.ws-i.org/testing/2003/03/monitorConfig/";
+ public static final String NS_URI_WSI_MONITOR_CONFIG = "http://www.ws-i.org/testing/2004/07/monitorConfig/";
+
+
+ public static final String NS_NAME_WSI_MONITOR_CONFIG = "wsi-monConfig";
+
+ /**
+ * WS-I analyzer configuration file namesapce URI.
+ */
+ public static final String NS_URI_WSI_ANALYZER_CONFIG_2003 = "http://www.ws-i.org/testing/2003/03/analyzerConfig/";
+ public static final String NS_URI_WSI_ANALYZER_CONFIG = "http://www.ws-i.org/testing/2004/07/analyzerConfig/";
+
+ public static final String NS_NAME_WSI_ANALYZER_CONFIG = "wsi-analyzerConfig";
+
+ /**
+ * WS-I common namesapce URI.
+ */
+ public static final String NS_URI_WSI_COMMON_2003 = "http://www.ws-i.org/testing/2003/03/common/";
+ public static final String NS_URI_WSI_COMMON = "http://www.ws-i.org/testing/2004/07/common/";
+ public static final String NS_NAME_WSI_COMMON = "wsi-common";
+
+ /**
+ * SOAP V1.1 namespace.
+ */
+ public final static String NS_URI_SOAP = "http://schemas.xmlsoap.org/soap/envelope/";
+
+ /**
+ * SOAP/1.1 encoding.
+ */
+ public final static String NS_URI_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
+
+ public static final String NS_URI_SOAP_NEXT_ACTOR = "http://schemas.xmlsoap.org/soap/actor/next" ;
+ /**
+ * HTTP transport.
+ */
+ public final static String NS_URI_SOAP_HTTP = "http://schemas.xmlsoap.org/soap/http";
+
+ /**
+ * WSDL V1.1 namespace.
+ */
+ public final static String NS_URI_WSDL = "http://schemas.xmlsoap.org/wsdl/";
+
+ /**
+ * WSDL SOAP binding namespace.
+ */
+ public final static String NS_URI_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
+
+ public final static String NS_NAME_WSDL_SOAP = "soap";
+
+ /**
+ * WSDL MIME binding namespace.
+ */
+ public final static String NS_NAME_WSDL_MIME = "http://schemas.xmlsoap.org/wsdl/mime/";
+
+ /**
+ * WSDL HTTP GET & POST binding namespace.
+ */
+ public final static String NS_NAME_WSDL_HTTP = "http://schemas.xmlsoap.org/wsdl/http/";
+
+ /**
+ * WSDL DIME binding namespace.
+ */
+ public final static String NS_NAME_WSDL_DIME = "http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/";
+
+ /**
+ * Conformance Claim namespace.
+ */
+ public final static String NS_URI_CLAIM = "http://ws-i.org/schemas/conformanceClaim/";
+
+ /**
+ * UDDI V2 namespace.
+ */
+ public final static String NS_URI_UDDI_V2 = "urn:uddi-org:api_v2";
+
+ /**
+ * The XML Schema for the type used to refer to attachments from the SOAP
+ * envelope.
+ */
+ public final static String NS_URI_SWA_REF = "http://ws-i.org/profiles/basic/1.1/xsd";
+
+ public final static String SCHEMA_TYPE_SWA_REF = "swaRef";
+
+ /**
+ * Element names.
+ */
+ public static final String ELEM_ADD_STYLE_SHEET = "addStyleSheet";
+
+ public static final String ELEM_ADDITIONAL_ENTRY_TYPE_LIST = "additionalEntryTypeList";
+
+ public static final String ELEM_ANALYZER_FAILURE = "analyzerFailure";
+
+ public static final String ELEM_ARTIFACT = "artifact";
+
+ public static final String ELEM_ARTIFACT_REFERENCE = "artifactReference";
+
+ public static final String ELEM_ASSERTION_COVERAGE = "assertionCoverage";
+
+ public static final String ELEM_ASSERTION_DESCRIPTION = "assertionDescription";
+
+ public static final String ELEM_ASSERTION_RESULT = "assertionResult";
+
+ public static final String ELEM_ASSERTION_RESULT_SUMMARY = "assertionResultSummary";
+
+ public static final String ELEM_ASSERTION_RESULTS = "assertionResults";
+
+ public static final String ELEM_CLEANUP_TIMEOUT_SECONDS = "cleanupTimeoutSeconds";
+
+ public static final String ELEM_CONFIG = "configuration";
+
+ public static final String ELEM_COMMENT = "comment";
+
+ public static final String ELEM_CONTEXT = "context";
+
+ public static final String ELEM_DETAIL = "detail";
+
+ public static final String ELEM_DETAIL_DESCRIPTION = "detailDescription";
+
+ public static final String ELEM_DESCRIPTION = "description";
+
+ public static final String ELEM_ENVIRONMENT = "environment";
+
+ public static final String ELEM_ENTRY = "entry";
+
+ public static final String ELEM_FAILURE_DETAIL = "failureDetail";
+
+ public static final String ELEM_FAILURE_DETAIL_DESCRIPTION = "failureDetailDescription";
+
+ public static final String ELEM_FAILURE_MESSAGE = "failureMessage";
+
+ public static final String ELEM_HTTP_HEADERS = "httpHeaders";
+
+ public static final String ELEM_IMPLEMENTER = "implementer";
+
+ public static final String ELEM_INQUIRY_URL = "inquiryURL";
+
+ public static final String ELEM_LISTEN_PORT = "listenPort";
+
+ public static final String ELEM_LOG = "log";
+
+ public static final String ELEM_LOG_DURATION = "logDuration";
+
+ public static final String ELEM_LOG_FILE = "logFile";
+
+ public static final String ELEM_MAN_IN_THE_MIDDLE = "manInTheMiddle";
+
+ public static final String ELEM_MAX_CONNECTIONS = "maxConnections";
+
+ public static final String ELEM_MESSAGE_CONTENT = "messageContent";
+
+ public static final String ELEM_MESSAGE_CONTENT_WITH_ATTACHMENTS = "messageContentWithAttachments";
+
+ public static final String ELEM_MESSAGE_ENTRY = "messageEntry";
+
+ public static final String ELEM_MESSAGE_INPUT = "messageInput";
+
+ public static final String ELEM_MONITOR = "monitor";
+
+ public static final String ELEM_OPERATING_SYSTEM = "operatingSystem";
+
+ public static final String ELEM_PREREQ_FAILED_LIST = "prereqFailedList";
+
+ public static final String ELEM_PREREQ_LIST = "prereqList";
+
+ public static final String ELEM_PROFILE = "profile";
+
+ public static final String ELEM_PROFILE_ASSERTIONS = "profileAssertions";
+
+ public static final String ELEM_READ_TIMEOUT_SECONDS = "readTimeoutSeconds";
+
+ public static final String ELEM_RECEIVER_HOST_AND_PORT = "receiverHostAndPort";
+
+ public static final String ELEM_REDIRECT = "redirect";
+
+ public static final String ELEM_REPORT = "report";
+
+ public static final String ELEM_REPORT_FILE = "reportFile";
+
+ public static final String ELEM_RUNTIME = "runtime";
+
+ public static final String ELEM_SCHEME_AND_HOSTPORT = "schemeAndHostPort";
+
+ public static final String ELEM_SENDER_HOST_AND_PORT = "senderHostAndPort";
+
+ public static final String ELEM_SERVICE_LOCATION = "serviceLocation";
+
+ public static final String ELEM_SUMMARY = "summary";
+
+ public static final String ELEM_TEST_ASSERTION = "testAssertion";
+
+ public static final String ELEM_TEST_ASSERTIONS_FILE = "testAssertionsFile";
+
+ public static final String ELEM_TEST_ASSERTION_ID = "testAssertionID";
+
+ public static final String ELEM_TEST_COVERAGE = "testCoverage";
+
+ public static final String ELEM_UDDI_ENTRY = "uddiEntry";
+
+ public static final String ELEM_UDDI_KEY = "uddiKey";
+
+ public static final String ELEM_UDDI_REFERENCE = "uddiReference";
+
+ public static final String ELEM_VERBOSE = "verbose";
+
+ public static final String ELEM_WSDL_ELEMENT = "wsdlElement";
+
+ public static final String ELEM_WSDL_INPUT = "wsdlInput";
+
+ public static final String ELEM_WSDL_REFERENCE = "wsdlReference";
+
+ public static final String ELEM_WSDL_URI = "wsdlURI";
+
+ public static final String ELEM_XML_PARSER = "xmlParser";
+
+ public static final String ELEM_MIME_PART = "mimePart";
+
+ public static final String ELEM_MIME_HEADERS = "mimeHeaders";
+
+ public static final String ELEM_MIME_CONTENT = "mimeContent";
+
+ public static final String ELEM_BOUNDARY_STRING = "boundaryString";
+
+ /**
+ * Attribute names.
+ */
+ public static final String ATTR_ALTERNATE = "alternate";
+
+ public static final String ATTR_ARRAY_TYPE = "arrayType";
+
+ public static final String ATTR_ASSERTION_DESCRIPTION = "assertionDescription";
+
+ public static final String ATTR_BOM = "BOM";
+
+ public static final String ATTR_CHARSET = "charset";
+
+ public static final String ATTR_CODE = "code";
+
+ public static final String ATTR_COLUMN_NUMBER = "columnNumber";
+
+ public static final String ATTR_CONVERSATION_ID = "conversationID";
+
+ public static final String ATTR_CORRELATION_TYPE = "correlationType";
+
+ public static final String ATTR_DATE = "date";
+
+ public static final String ATTR_ENABLED = "enabled";
+
+ public static final String ATTR_ENTRY_TYPE = "entryType";
+
+ public static final String ATTR_FAILURE_MESSAGE = "failureMessage";
+
+ public static final String ATTR_FAILURE_DETAIL = "failureDetail";
+
+ public static final String ATTR_HREF = "href";
+
+ public static final String ATTR_ID = "id";
+
+ public static final String ATTR_ID_UC = "ID";
+
+ public static final String ATTR_IMPLEMENTER = "implementer";
+
+ public static final String ATTR_LINE_NUMBER = "lineNumber";
+
+ public static final String ATTR_LOCATION = "location";
+
+ public static final String ATTR_MEDIA = "media";
+
+ public static final String ATTR_MESSAGE_ENTRY = "messageEntry";
+
+ public static final String ATTR_MESSAGES = "messages";
+
+ public static final String ATTR_NAME = "name";
+
+ public static final String ATTR_NAMESPACE = "namespace";
+
+ public static final String ATTR_PARENT_ELEMENT_NAME = "parentElementName";
+
+ public static final String ATTR_REFERENCE_ID = "referenceID";
+
+ public static final String ATTR_REFERENCE_TYPE = "referenceType";
+
+ public static final String ATTR_RELEASE_DATE = "releaseDate";
+
+ public static final String ATTR_REPLACE = "replace";
+
+ public static final String ATTR_RESULT = "result";
+
+ public static final String ATTR_SERVICE_NAME = "serviceName";
+
+ public static final String ATTR_SPECIFICATION = "specification";
+
+ public static final String ATTR_TIMESTAMP = "timestamp";
+
+ public static final String ATTR_TITLE = "title";
+
+ public static final String ATTR_TYPE = "type";
+
+ public static final String ATTR_VERSION = "version";
+
+ /**
+ * Default values.
+ */
+ public static final String DEFAULT_REPORT_URI = "report.xml";
+
+ // TEMP: Use the following report title for the draft release only.
+ //public static final String DEFAULT_REPORT_TITLE = "WS-I Profile
+ // Conformance Report";
+ public static final String DEFAULT_REPORT_TITLE = "WS-I Basic Profile Conformance Report.";
+
+ public static final String DEFAULT_TEST_ASSERTIONS_DOCUMENT_URI = "../common/profiles/SSBP10_BP11_TAD.xml";
+
+ public static final String DEFAULT_LOG_XSL = "../common/xsl/log.xsl";
+
+ public static final String DEFAULT_REPORT_XSL = "../common/xsl/report.xsl";
+
+ public static final String DEFAULT_XSL_TYPE = "text/xsl";
+
+ public static final String DEFAULT_XML_ENCODING = "UTF-8";
+
+ /**
+ * BOM constants.
+ *
+ */
+ public static int BOM_UTF16 = 0xFFFE;
+
+ public static int BOM_UTF16_BIG_ENDIAN = 0xFEFF;
+
+ public static int BOM_UTF8 = 0xEFBBBF;
+
+ /**
+ * Validation constants.
+ *
+ */
+ public static final String ATTRVAL_SOAP_BODY_USE_LIT = "literal";
+
+ public static final String ATTRVAL_SOAP_BODY_USE_ENC = "encoded";
+
+ public static final String ATTRVAL_SOAP_BIND_STYLE_DOC = "document";
+
+ public static final String ATTRVAL_SOAP_BIND_STYLE_RPC = "rpc";
+
+ public static final String ATTRVAL_CORRELATION_TYPE_ENDPOINT = "endpoint";
+
+ public static final String ATTRVAL_CORRELATION_TYPE_NAMESPACE = "namespace";
+
+ public static final String ATTRVAL_CORRELATION_TYPE_OPERATION = "operation";
+
+ /**
+ * WS-I constants - attributes for conformance claims (discovery).
+ *
+ */
+
+ public static final String ATTRVAL_UDDI_CLAIM_KEYVALUE = "http://ws-i.org/profiles/basic/1.0";
+
+ public static final String ATTRVAL_UDDI_CLAIM_TMODELKEY = "uuid:65719168-72c6-3f29-8c20-62defb0961c0";
+
+ /**
+ * WS-I names and versions of the profile test assertion document supported
+ * in the current version of the test tools.
+ */
+ public static final String BASIC_PROFILE_TAD_NAME = "Basic Profile Test Assertions";
+
+ public static final String BASIC_PROFILE_1_1_TAD_NAME = "Basic Profile 1.1 Test Assertions";
+
+ public static final String SIMPLE_SOAP_BINDINGS_PROFILE_TAD_NAME = "Simple Soap Binding Profile [1.0] (with Basic Profile [1.1]) Test Assertions";
+
+ public static final String ATTACHMENTS_PROFILE_TAD_NAME = "Attachments Profile [1.0] (with Basic Profile [1.1] and Simple Soap Binding Profile [1.0]) Test Assertions";
+
+ public static final String BASIC_PROFILE_TAD_VERSION = "1.1.0";
+
+ public static final String BASIC_PROFILE_1_1_TAD_VERSION = "1.1.0";
+
+ public static final String SIMPLE_SOAP_BINDINGS_PROFILE_TAD_VERSION = "1.0.0";
+
+ public static final String ATTACHMENTS_PROFILE_TAD_VERSION = "1.0.0";
+
+ /**
+ * System dependent line separator character.
+ */
+ public static final String LINE_SEPARATOR = System
+ .getProperty("line.separator");
+
+ /**
+ * System dependent path separator character.
+ */
+ public static final String PATH_SEPARATOR = System
+ .getProperty("path.separator");
+
+ /**
+ * File which contains the copyright, license and feedback comments.
+ */
+ public static final String COMMENTS_FILE = "comments.xml";
+
+ public static final String CONTENT_TYPE_TEXT_XML = "text/xml";
+
+ public static final String CONTENT_TYPE_MULTIPART = "multipart/related";
+
+}
\ No newline at end of file
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIException.java
new file mode 100644
index 000000000..f5b5dc091
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIException.java
@@ -0,0 +1,145 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import java.lang.reflect.InvocationTargetException;
+import java.util.MissingResourceException;
+
+/**
+ * Primary WS-I exception.
+ *
+ * @version 1.0.1
+ * @author Peter Brittenham
+ */
+public class WSIException extends Exception
+{
+ /**
+ * Throwable.
+ */
+ protected Throwable throwable = null;
+
+ /**
+ * Create an exception without a message.
+ */
+ public WSIException()
+ {
+ // Exception
+ super();
+ }
+
+ /**
+ * Create an exception with a message.
+ *
+ * @param msg the exception message
+ */
+ public WSIException(String msg)
+ {
+ // Exception
+ super(msg);
+ }
+
+ /**
+ * Create an exception with a message and related exception.
+ *
+ * @param msg the exception message
+ * @param throwable throwable that is related to this exception
+ */
+ public WSIException(String msg, Throwable throwable)
+ {
+ // Exception
+ super(msg);
+
+ // Save input reference
+ this.throwable = throwable;
+ }
+
+ /**
+ * Returns the String representation of this object's values.
+ *
+ * @return Returns the detail message of this throwable object.
+ */
+ public String getMessage()
+ {
+ return super.getMessage();
+ }
+
+ /**
+ * Returns the String representation of this object's values.
+ *
+ * @return Returns the detail message of this throwable object.
+ */
+ public String toString()
+ {
+ //StringWriter sw;
+ //PrintWriter pw;
+
+ // Always get message from super class
+ String msg = super.getMessage();
+
+ // If this exception contains a reference to another exception,
+ // then add it to the message
+ if (throwable != null)
+ {
+ msg += "\n"
+ + "------------------------------------------------------------------------------\n"
+ + " Nested exception is: \n\n "
+ + throwable.toString()
+ + "\n";
+
+ // If throwable is MissingResourceException,
+ // then add class name and key to output
+ if (throwable instanceof MissingResourceException)
+ {
+ MissingResourceException mre = (MissingResourceException) throwable;
+
+ // Get class name and key
+ msg += " - "
+ + mre.getKey()
+ + "\n\t"
+ + "[Class Name: "
+ + mre.getClassName()
+ + "]";
+ }
+
+ // If throwable is InvocationTargetException,
+ // then target of exception
+ else if (throwable instanceof InvocationTargetException)
+ {
+ InvocationTargetException ite = (InvocationTargetException) throwable;
+
+ // Get target
+ msg += " - " + ite.getTargetException().toString();
+ }
+
+ // ADD: Print stack trace
+ //sw = new StringWriter();
+ //pw = new PrintWriter(sw);
+ //throwable.printStackTrace(pw);
+
+ // Add it to the message
+ //msg += sw.toString();
+ }
+
+ // Return message
+ return msg;
+ }
+
+ /**
+ * Returns the exception that caused this exception to be created.
+ *
+ * @return Returns the encapsulated throwable object.
+ */
+ public Throwable getTargetException()
+ {
+ // Return throwable
+ return throwable;
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIFileNotFoundException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIFileNotFoundException.java
new file mode 100644
index 000000000..5a1464237
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIFileNotFoundException.java
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+/**
+ * Signals that an attempt to open the file denoted by a specified
+ * pathname has failed.
+ *
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ * @version 1.0.1
+ */
+public class WSIFileNotFoundException extends WSIException
+{
+
+ /**
+ * Constructor for WSIFileNotFoundException.
+ */
+ public WSIFileNotFoundException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor for WSIFileNotFoundException.
+ * @param msg the detail message.
+
+ */
+ public WSIFileNotFoundException(String msg)
+ {
+ super(msg);
+ }
+
+ /**
+ * Constructor for WSIFileNotFoundException.
+ * @param msg the detail message.
+ * @param throwable initial exception thrown.
+ */
+ public WSIFileNotFoundException(String msg, Throwable throwable)
+ {
+ super(msg, throwable);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIPreferences.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIPreferences.java
new file mode 100644
index 000000000..08e141fe8
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIPreferences.java
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+/**
+ * WS-I test tools property.
+ *
+ * @author David Lauzon, IBM
+ *
+ */
+
+public class WSIPreferences
+{
+ protected String complianceLevel = "";
+ protected String tadfile = "";
+
+ /**
+ * Constructor.
+ */
+ public WSIPreferences()
+ {
+ super();
+ }
+
+ /**
+ * Returns the WS-I compliance level.
+ * @return the WS-I compliance level.
+ * @see #setComplianceLevel
+ */
+ public String getComplianceLevel()
+ {
+ return complianceLevel;
+ }
+
+ /**
+ * Set the WS-I compliance level.
+ * @param compliance the WS-I compliance level.
+ * @see #getComplianceLevel
+ */
+ public void setComplianceLevel(String compliance)
+ {
+ this.complianceLevel = compliance;
+ }
+
+ /**
+ * Returns the location of the Basic Profile Test Assertions file.
+ * @return the location of the Basic Profile Test Assertions file.
+ * @see #setTADFile
+ */
+ public String getTADFile()
+ {
+ return tadfile;
+ }
+
+ /**
+ * Set the location of the Basic Profile Test Assertions file.
+ * @param file the location of the Basic Profile Test Assertions file.
+ * @see #getTADFile
+ */
+ public void setTADFile(String file)
+ {
+ this.tadfile = file;
+ }
+}
+
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIRuntimeException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIRuntimeException.java
new file mode 100644
index 000000000..9786986bb
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSIRuntimeException.java
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+/**
+ * This class represents runtime exceptions that occur after processing the configuration files.
+ *
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ * @version 1.0.1
+ */
+public class WSIRuntimeException extends WSIException
+{
+
+ /**
+ * Constructor for WSIRuntimeException.
+ */
+ public WSIRuntimeException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor for WSIRuntimeException.
+ * @param msg the detail message.
+ */
+ public WSIRuntimeException(String msg)
+ {
+ super(msg);
+ }
+
+ /**
+ * Constructor for WSIRuntimeException.
+ * @param msg the detail message.
+ * @param throwable the initial exception thrown.
+
+ */
+ public WSIRuntimeException(String msg, Throwable throwable)
+ {
+ super(msg, throwable);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITag.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITag.java
new file mode 100644
index 000000000..1d018fd4b
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITag.java
@@ -0,0 +1,114 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import org.eclipse.wst.wsi.internal.xml.XMLTags;
+
+import javax.xml.namespace.QName;
+
+/**
+ * WS-I constants.
+ *
+ * @author Kulik
+ */
+public interface WSITag extends XMLTags
+{
+ /**
+ * Qualified names of WSDL elements.
+ */
+ public final static QName WSDL_IMPORT =
+ new QName(WSIConstants.NS_URI_WSDL, "import");
+ public final static QName WSDL_TYPES =
+ new QName(WSIConstants.NS_URI_WSDL, "types");
+ public final static QName WSDL_MESSAGE =
+ new QName(WSIConstants.NS_URI_WSDL, "message");
+ public final static QName WSDL_DOCUMENTATION =
+ new QName(WSIConstants.NS_URI_WSDL, "documentation");
+ public final static QName WSDL_DEFINITIONS =
+ new QName(WSIConstants.NS_URI_WSDL, "definitions");
+ public final static QName WSDL_BINDING =
+ new QName(WSIConstants.NS_URI_WSDL, "binding");
+ public final static QName WSDL_OPERATION =
+ new QName(WSIConstants.NS_URI_WSDL, "operation");
+ public final static QName WSDL_PART =
+ new QName(WSIConstants.NS_URI_WSDL, "part");
+ public final static QName WSDL_INPUT =
+ new QName(WSIConstants.NS_URI_WSDL, "input");
+ public final static QName WSDL_OUTPUT =
+ new QName(WSIConstants.NS_URI_WSDL, "output");
+ public final static QName WSDL_FAULT =
+ new QName(WSIConstants.NS_URI_WSDL, "fault");
+ public final static QName WSDL_SERVICE =
+ new QName(WSIConstants.NS_URI_WSDL, "service");
+ public final static QName WSDL_PORT =
+ new QName(WSIConstants.NS_URI_WSDL, "port");
+ public final static QName WSDL_PORTTYPE =
+ new QName(WSIConstants.NS_URI_WSDL, "portType");
+
+ public static final QName WSDL_SOAP_BINDING =
+ new QName(WSIConstants.NS_URI_WSDL_SOAP, "binding");
+ public static final QName WSDL_SOAP_BODY =
+ new QName(WSIConstants.NS_URI_WSDL_SOAP, "body");
+ public static final QName WSDL_SOAP_HEADER =
+ new QName(WSIConstants.NS_URI_WSDL_SOAP, "header");
+ public static final QName WSDL_SOAP_HEADERFAULT =
+ new QName(WSIConstants.NS_URI_WSDL_SOAP, "headerfault");
+ public static final QName WSDL_SOAP_FAULT =
+ new QName(WSIConstants.NS_URI_WSDL_SOAP, "fault");
+
+ public static final QName WSDL_MIME_CONTENT =
+ new QName(WSIConstants.NS_NAME_WSDL_MIME, "content");
+ public static final QName WSDL_MIME_XML =
+ new QName(WSIConstants.NS_NAME_WSDL_MIME, "mimeXml");
+ public static final QName WSDL_MIME_PART =
+ new QName(WSIConstants.NS_NAME_WSDL_MIME, "part");
+ public static final QName WSDL_MIME_MULTIPART =
+ new QName(WSIConstants.NS_NAME_WSDL_MIME, "multipartRelated");
+
+ public final static QName ATTR_WSDL_ARRAYTYPE =
+ new QName(WSIConstants.NS_URI_WSDL, "arrayType");
+ public final static QName ATTR_WSDL_NAMESPACE =
+ new QName(WSIConstants.NS_URI_WSDL, "namespace");
+ public final static QName ATTR_WSDL_LOCATION =
+ new QName(WSIConstants.NS_URI_WSDL, "location");
+
+ /**
+ * Namespaces.
+ */
+ public final static String NS_URI_CLAIM =
+ "http://ws-i.org/schemas/conformanceClaim/";
+ public final static String NS_URI_SOAP =
+ "http://schemas.xmlsoap.org/soap/envelope/";
+ public final static String NS_URI_SOAPENC =
+ "http://schemas.xmlsoap.org/soap/encoding/";
+ public final static String NS_URI_BASIC_PROFILE10 =
+ "http://wsi.org/profiles/basic1.0/";
+
+ public final static QName SOAPENC_ARRAY = new QName(NS_URI_SOAPENC, "Array");
+
+ /**
+ * Qualified names of WS-I claim elements.
+ */
+ public final static QName WSI_CLAIM = new QName(NS_URI_CLAIM, "Claim");
+ public final static QName ATTR_CLAIM_CONFORMSTO =
+ new QName(NS_URI_CLAIM, "conformsTo");
+ public final static QName ATTR_SOAP_MUSTUNDERSTAND =
+ new QName(NS_URI_SOAP, "mustUnderstand");
+
+ /**
+ * Qualified names of SOAP elements.
+ */
+ public final static QName ELEM_SOAP_ENVELOPE = new QName(NS_URI_SOAP, "Envelope");
+ public final static QName ELEM_SOAP_BODY = new QName(NS_URI_SOAP, "Body");
+ public final static QName ELEM_SOAP_FAULT = new QName(NS_URI_SOAP, "Fault");
+ public final static QName ELEM_SOAP_HEADER = new QName(NS_URI_SOAP, "Header");
+
+}
\ No newline at end of file
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsPlugin.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsPlugin.java
new file mode 100644
index 000000000..dbb802c43
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsPlugin.java
@@ -0,0 +1,74 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import java.io.IOException;
+import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+/**
+ * The WS-I test tools plugin.
+ *
+ * @author lauzond
+ */
+
+public class WSITestToolsPlugin extends AbstractUIPlugin
+{
+ private static AbstractUIPlugin instance;
+
+ /**
+ * Constructor for wsiTestToolsPlugin.
+ * @param descriptor an IPluginDescriptor object.
+ */
+ public WSITestToolsPlugin(IPluginDescriptor descriptor)
+ {
+ super(descriptor);
+ instance = this;
+
+ // set the current directory
+ WSITestToolsProperties.setInstallDir(getInstallURL());
+ }
+
+ /**
+ * Method getInstance.
+ * @return AbstractUIPlugin
+ */
+ public static AbstractUIPlugin getInstance()
+ {
+ return instance;
+ }
+
+ /**
+ * Method getPlugin.
+ * @return WSIToolsUtilPlugin
+ */
+ public static WSITestToolsPlugin getPlugin()
+ {
+ return (WSITestToolsPlugin) instance;
+ }
+
+ /**
+ * Returns installable URL for this plugin.
+ * @return installable URL for this plugin.
+ */
+ public String getInstallURL()
+ {
+ try
+ {
+ return Platform.resolve(getDescriptor().getInstallURL()).getFile();
+ }
+ catch (IOException e)
+ {
+ return null;
+ }
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsProperties.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsProperties.java
new file mode 100644
index 000000000..f9ed35a00
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/WSITestToolsProperties.java
@@ -0,0 +1,207 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal;
+
+import java.io.UnsupportedEncodingException;
+import java.util.Properties;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.wst.wsi.internal.util.WSIProperties;
+
+import com.ibm.etools.webservice.ui.plugin.WebServiceUIPlugin;
+import com.ibm.etools.webservice.ui.wsi.preferences.PersistentWSIContext;
+
+/**
+ * WS-I test tools property.
+ *
+ * @author Lawrence Mandel, IBM
+ *
+ */
+
+public class WSITestToolsProperties
+{
+ protected static String installURL = "";
+ protected static String tadfile = "";
+
+ public final static String schemaDir = "common/schemas/";
+ public final static String SSBP_ASSERTION_FILE = "common/profiles/SSBP10_BP11_TAD.xml";
+ public final static String AP_ASSERTION_FILE = "common/profiles/AP10_BP11_SSBP10_TAD.xml";
+ public final static String DEFAULT_ASSERTION_FILE = AP_ASSERTION_FILE;
+
+ public static final String STOP_NON_WSI = PersistentWSIContext.STOP_NON_WSI; // "0";
+ public static final String WARN_NON_WSI = PersistentWSIContext.WARN_NON_WSI; // "1";
+ public static final String IGNORE_NON_WSI = PersistentWSIContext.IGNORE_NON_WSI; //"2";
+
+ /**
+ * Constructor.
+ */
+ protected WSITestToolsProperties()
+ {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+
+ /**
+ * Set the schema location.
+ * @param dir the schema location.
+ */
+ public static void setInstallDir(String dir)
+ {
+ installURL = dir;
+ }
+
+ /**
+ * Set local properties.
+ */
+ public static void setLocal()
+ {
+ Properties schemaLocationProperties = new Properties();
+ String schemaURL = installURL + schemaDir;
+ try
+ {
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.xmlschema.schema",
+ URIEncoder.encode(schemaURL + "XMLSchema.xsd", "UTF8"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.wsdl.schema",
+ URIEncoder.encode(schemaURL + "wsdl11.xsd", "UTF8"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.soap.schema",
+ URIEncoder.encode(schemaURL + "soapEnvelope.xsd", "UTF8"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.wsdlsoap.schema",
+ URIEncoder.encode(schemaURL + "wsdlSoap.xsd", "UTF8"));
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.xmlschema.schema",
+ URIEncoder.encode(schemaURL + "XMLSchema.xsd"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.wsdl.schema",
+ URIEncoder.encode(schemaURL + "wsdl11.xsd"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.soap.schema",
+ URIEncoder.encode(schemaURL + "soapEnvelope.xsd"));
+ schemaLocationProperties.setProperty(
+ "wsi.analyzer.wsdlsoap.schema",
+ URIEncoder.encode(schemaURL + "wsdlSoap.xsd"));
+ }
+ WSIProperties.setThreadLocalProperties(schemaLocationProperties);
+ }
+
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.wsdl.validate.wsi.CheckWSI#checkWSI(java.lang.String)
+ */
+ public static WSIPreferences checkWSIPreferences(String fileuri)
+ {
+ WSIPreferences preferences = new WSIPreferences();
+
+ // Remove file: and any slashes from the fileuri.
+ // Eclipse's resolution mechanism needs to start with the drive.
+ String uriStr = trimURI(fileuri);
+
+ WebServiceUIPlugin wsui = WebServiceUIPlugin.getInstance();
+ PersistentWSIContext APcontext = wsui.getWSIAPContext();
+ PersistentWSIContext SSBPcontext = wsui.getWSISSBPContext();
+
+ IFile[] files = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocation(new Path(uriStr));
+ if (files != null && files.length == 1)
+ {
+ // check project level conpliance
+ IProject project = files[0].getProject();
+
+ if (APcontext.projectStopNonWSICompliances(project))
+ {
+ preferences.setTADFile(installURL + AP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.STOP_NON_WSI);
+ }
+ else if (APcontext.projectWarnNonWSICompliances(project))
+ {
+ preferences.setTADFile(installURL + AP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.WARN_NON_WSI);
+ }
+ else if (SSBPcontext.projectStopNonWSICompliances(project))
+ {
+ preferences.setTADFile(installURL + SSBP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.STOP_NON_WSI);
+ }
+ else if (SSBPcontext.projectWarnNonWSICompliances(project))
+ {
+ preferences.setTADFile(installURL + SSBP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.WARN_NON_WSI);
+ }
+ else
+ {
+ preferences.setTADFile(installURL + DEFAULT_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.IGNORE_NON_WSI);
+ }
+ }
+ else
+ {
+ // If we can't obtain the project preference use the global preference.
+ String APlevel = APcontext.getPersistentWSICompliance();
+ String SSBPlevel = SSBPcontext.getPersistentWSICompliance();
+ if(APlevel.equals(PersistentWSIContext.STOP_NON_WSI))
+ {
+ preferences.setTADFile(installURL + AP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.STOP_NON_WSI);
+ }
+ else if(APlevel.equals(PersistentWSIContext.WARN_NON_WSI))
+ {
+ preferences.setTADFile(installURL + AP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.WARN_NON_WSI);
+ }
+ if(SSBPlevel.equals(PersistentWSIContext.STOP_NON_WSI))
+ {
+ preferences.setTADFile(installURL + SSBP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.STOP_NON_WSI);
+ }
+ else if(SSBPlevel.equals(PersistentWSIContext.WARN_NON_WSI))
+ {
+ preferences.setTADFile(installURL + SSBP_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.WARN_NON_WSI);
+ }
+ else
+ {
+ preferences.setTADFile(installURL + DEFAULT_ASSERTION_FILE);
+ preferences.setComplianceLevel(PersistentWSIContext.IGNORE_NON_WSI);
+ }
+ }
+ return preferences;
+ }
+
+ /**
+ * Remove file: and any slashes from the fileuri.
+ * Eclipse's resolution mechanism needs to start with the drive.
+ */
+ private static String trimURI(String fileuri)
+ {
+ String uriStr = fileuri;
+
+ if(fileuri.startsWith("file:"))
+ {
+ uriStr = fileuri.substring(5);
+ }
+ while(uriStr.startsWith("/") || uriStr.startsWith("\\"))
+ {
+ uriStr = uriStr.substring(1);
+ }
+ return uriStr;
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.java
new file mode 100644
index 000000000..cca9fcd1c
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.java
@@ -0,0 +1,313 @@
+/**
+ *
+ *
+ * Copyright (c) 2002-2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *
+ *
+ */
+package org.eclipse.wst.wsi.internal.analyzer;
+
+import org.eclipse.wst.wsi.internal.WSIConstants;
+import org.eclipse.wst.wsi.internal.WSIException;
+import org.eclipse.wst.wsi.internal.analyzer.config.AnalyzerConfig;
+import org.eclipse.wst.wsi.internal.document.DocumentFactory;
+import org.eclipse.wst.wsi.internal.log.Log;
+import org.eclipse.wst.wsi.internal.profile.ProfileAssertions;
+import org.eclipse.wst.wsi.internal.profile.validator.ProfileValidatorFactory;
+import org.eclipse.wst.wsi.internal.report.Reporter;
+import org.eclipse.wst.wsi.internal.util.MessageList;
+import org.eclipse.wst.wsi.internal.util.TestUtils;
+import org.eclipse.wst.wsi.internal.ToolInfo;
+
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.List;
+import java.util.Vector;
+
+/**
+ * The Analyzer will process all Profile conformance functions.
+ * This class should be sub-classed for each profile.
+ *
+ * @version 1.0.1
+ * @author Jim Clune
+ * @author Peter Brittenham
+ */
+public abstract class Analyzer
+{
+ /**
+ * Message list.
+ */
+ protected MessageList messageList = null;
+
+ protected final static String RESOURCE_BUNDLE_NAME =
+ "org.wsi.test.analyzer.Analyzer";
+
+ public final static String USAGE_MESSAGE =
+ "Usage: Analyzer -config ";
+
+ protected Reporter reporter = null;
+ protected AnalyzerContext analyzerContext = null;
+ protected CandidateInfo candidateInfo = null;
+
+ /**
+ * Analyzer tool information.
+ */
+ protected ToolInfo toolInfo = null;
+
+ /**
+ * Profile validator factory.
+ */
+ protected ProfileValidatorFactory factory = null;
+
+ /**
+ * Profile validator factory.
+ */
+ protected DocumentFactory documentFactory = null;
+
+ /**
+ * Analyzer config file list.
+ */
+ protected List analyzerConfigList = new Vector();
+ protected int analyzerConfigIndex = 0;
+
+ /**
+ * Profile assertions.
+ */
+ protected ProfileAssertions profileAssertions = null;
+
+ /**
+ * Log file.
+ */
+ protected Log log = null;
+
+ /**
+ * Create an instance of the analyzer tool.
+ * @param args command line arguments.
+ * @param toolInfo analyzer tool information.
+ * @throws WSIException if problems creating the instance of the analyzer tool.
+ */
+ public Analyzer(String[] args, ToolInfo toolInfo) throws WSIException
+ {
+ init(toolInfo);
+
+ // Get new config object
+ this.analyzerConfigList.add(
+ analyzerConfigIndex,
+ documentFactory.newAnalyzerConfig());
+ getAnalyzerConfig().init(messageList);
+
+ // Parse command line arguments
+ getAnalyzerConfig().parseArgs(args, true);
+
+ // Display copyright and options that were specified
+ TestUtils.printToolInfo(toolInfo);
+ System.out.println(getAnalyzerConfig().toString());
+
+ // Display message
+ printMessage(
+ "progress01",
+ null,
+ "Please wait while the specified artifacts are analyzed...");
+ }
+
+ /**
+ * Create an instance of the analyzer tool.
+ * @param args command line arguments.
+ * @param toolInfo analyzer tool information.
+ * @param validate flag for config options validation.
+ * @throws WSIException if problems creating the instance of the analyzer tool.
+ */
+ public Analyzer(String[] args, ToolInfo toolInfo, boolean validate) throws WSIException
+ {
+ init(toolInfo);
+
+ // Get new config object
+ this.analyzerConfigList.add(
+ analyzerConfigIndex,
+ documentFactory.newAnalyzerConfig());
+ getAnalyzerConfig().init(messageList);
+
+ // Parse command line arguments
+ getAnalyzerConfig().parseArgs(args, validate);
+
+ // Display copyright and options that were specified
+ TestUtils.printToolInfo(toolInfo);
+ System.out.println(getAnalyzerConfig().toString());
+
+ // Display message
+ printMessage(
+ "progress01",
+ null,
+ "Please wait while the specified artifacts are analyzed...");
+ }
+
+ /**
+ * Create an instance of the analyzer tool.
+ * @param analyzerConfigList analyzer config file list.
+ * @param toolInfo analyzer tool information.
+ * @throws WSIException if problems creating the instance of the analyzer tool.
+ */
+ public Analyzer(List analyzerConfigList, ToolInfo toolInfo)
+ throws WSIException
+ {
+ init(toolInfo);
+
+ this.analyzerConfigList = analyzerConfigList;
+ }
+
+ /**
+ * Common initialization.
+ * @param toolInfo analyzer tool information.
+ * @throws WSIException if problems occur during common initialization.
+ */
+ protected void init(ToolInfo toolInfo) throws WSIException
+ {
+ this.toolInfo = toolInfo;
+
+ // Create message list
+ messageList = new MessageList(RESOURCE_BUNDLE_NAME);
+
+ // Create profile validator factory
+ factory = ProfileValidatorFactory.newInstance();
+
+ // Create document factory
+ documentFactory = DocumentFactory.newInstance();
+ }
+
+ /**
+ * Process all conformance validation functions.
+ * @return status code.
+ * @throws WSIException if problems occur during validation.
+ */
+ public int validateAll() throws WSIException
+ {
+ int statusCode = 0;
+ int tempStatusCode;
+
+ for (int index = 0; index < analyzerConfigList.size(); index++)
+ {
+ // DEBUG:
+ //System.out.println("index: " + index);
+
+ // Set current analyzer config index
+ setAnalyzerConfig(index);
+
+ if ((tempStatusCode = validateConformance()) > statusCode)
+ statusCode = tempStatusCode;
+ }
+
+ return statusCode;
+ }
+
+ /**
+ * Process all conformance validation functions.
+ * @return status code.
+ * @throws WSIException if problems occur during conformance validation.
+ */
+ public abstract int validateConformance() throws WSIException;
+
+ /**
+ * Get tool information.
+ * @return the tool information.
+ */
+ public ToolInfo getToolInfo()
+
+ {
+ return this.toolInfo;
+ }
+
+ /**
+ * Set current analyzer configuration.
+ * @param index urrent analyzer configuration.
+ * @see #getAnalyzerConfig
+ */
+ protected void setAnalyzerConfig(int index)
+ {
+ this.analyzerConfigIndex = index;
+ }
+
+ /**
+ * Get analyzer configuration information.
+ * @return analyzer configuration information.
+ * @see #setAnalyzerConfig
+ */
+ public AnalyzerConfig getAnalyzerConfig()
+ {
+ return (AnalyzerConfig) this.analyzerConfigList.get(analyzerConfigIndex);
+ }
+
+ /**
+ * Print a message from the resource bundle.
+ * @param key a key.
+ * @param messageData message data.
+ * @param defaultMessage a default message.
+ */
+ public void printMessage(
+ String key,
+ String messageData,
+ String defaultMessage)
+ {
+ messageList.printMessage(key, messageData, defaultMessage);
+ }
+
+ /**
+ * Print message.
+ * @param key a key.
+ * @param messageData message data.
+ * @param defaultMessage a default message.
+ */
+ public static void staticPrintMessage(
+ String key,
+ String messageData,
+ String defaultMessage)
+ {
+ MessageList.printMessage(
+ RESOURCE_BUNDLE_NAME,
+ key,
+ messageData,
+ defaultMessage);
+ }
+
+ /**
+ * Return XML string representation of this object.
+ * @param namespaceName a namespace prefix.
+ * @return XML string representation of this object.
+ */
+ public String toXMLString(String namespaceName)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+
+ // Start
+ pw.print(toolInfo.getStartXMLString(namespaceName));
+
+ // Config
+ pw.print(
+ getAnalyzerConfig().toXMLString(
+ WSIConstants.NS_NAME_WSI_ANALYZER_CONFIG));
+
+ // End
+ pw.println(toolInfo.getEndXMLString(namespaceName));
+
+ return sw.toString();
+ }
+
+ /**
+ * Print a message.
+ * @param message a message.
+ */
+ public void printMessage(String message)
+ {
+ if (getAnalyzerConfig().getVerboseOption())
+ {
+ System.err.println(message);
+ }
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.properties b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.properties
new file mode 100644
index 000000000..d66cb7584
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/Analyzer.properties
@@ -0,0 +1,44 @@
+# /**
+# *
+# *
+# * Copyright (c) 2002-2005 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
+# * http://www.eclipse.org/legal/epl-v10.html
+# *
+# * Contributors:
+# * IBM - Initial API and implementation
+# *
+# *
+# */
+
+#
+# Analyzer resource bundle.
+#
+usage01=Usage: Analyzer -config
+created01=Conformance report has been created.
+progress01=Please wait while the specified artifacts are analyzed...
+error01=Analyzer Error:
+error02=Analyzer Stopped By Exception:
+error03=The conformance validation process failed.
+exception01=Exception:
+config01=Analyzer configuration file was not found. Specified file location:
+config02=Could not find log file. Specified file location:
+config03=Could not find WSDL file. Specified file location:
+config04=Can not specify both the WSDL reference and UDDI reference options.
+config05=WSDL document was either not found or could not be processed.
+config06=Invalid analyzer configuration element:
+config07=Both the and elements must be specified.
+config08=Could not read analyzer configuration file. Specified file location:
+config09=The parentElementName attribute must be specified with a WSDL type of port or operation.
+config10=The -wsdlElement option must appear after the -wsdlURI or -uddiKey options.
+config11=The -serviceLocation option must appear after the -wsdlURI or -uddiKey options.
+config12=The specified option is not supported:
+config13=Option did not contain a value. Specified option:
+config14=Could not find test assertion document. Specified file location:
+config15=Report file already exists and replace option was not specified.
+config16=Test assertion document location must be specified.
+config17=Could not get report file location.
+config18=Invalid correlation type specified.
+config19=The WSDL element name must be specified.
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AnalyzerContext.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AnalyzerContext.java
new file mode 100644
index 000000000..53be32830
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AnalyzerContext.java
@@ -0,0 +1,113 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+import org.eclipse.wst.wsi.internal.xml.XMLDocumentCache;
+
+/**
+ * This class contains contextual information which is required by test assertions across all artifacts.
+ *
+ * @version 1.0.1
+ * @author Peter Brittenham (peterbr@us.ibm.com)
+ */
+public class AnalyzerContext
+{
+ protected ServiceReference serviceReference = null;
+ protected CandidateInfo candidateInfo = null;
+ protected XMLDocumentCache documentList = new XMLDocumentCache();
+
+ /**
+ * Do not allow the usage of the null constructor.
+ */
+ private AnalyzerContext()
+ {
+ }
+
+ /**
+ * Create analyzer context with service reference.
+ * @param serviceReference a service reference.
+ */
+ public AnalyzerContext(ServiceReference serviceReference)
+ {
+ this.serviceReference = serviceReference;
+ }
+
+ /**
+ * Get service reference.
+ * @return service reference.
+ * @see #setServiceReference
+ */
+ public ServiceReference getServiceReference()
+ {
+ return this.serviceReference;
+ }
+
+ /**
+ * Set service reference.
+ * @param serviceReference a service reference.
+ * @see #getServiceReference
+ */
+ public void setServiceReference(ServiceReference serviceReference)
+ {
+ this.serviceReference = serviceReference;
+ }
+
+ /**
+ * Returns the candidateInfo.
+ * @return CandidateInfo.
+ * @see #setCandidateInfo
+ */
+ public CandidateInfo getCandidateInfo()
+ {
+ return candidateInfo;
+ }
+
+ /**
+ * Sets the candidateInfo.
+ * @param candidateInfo the candidateInfo to set.
+ * @see #getCandidateInfo
+ */
+ public void setCandidateInfo(CandidateInfo candidateInfo)
+ {
+ this.candidateInfo = candidateInfo;
+ }
+
+ /**
+ * Get the list of cached documents.
+ * @return the list of cached documents.
+ * @see #setDocumentList
+ */
+ public XMLDocumentCache getDocumentList()
+ {
+ return documentList;
+ }
+
+ /**
+ * Set the list of cached documents.
+ * @param documentList a list of cached documents.
+ * @see #getDocumentList
+ */
+ public void setDocumentList(XMLDocumentCache documentList)
+ {
+ this.documentList = documentList;
+ }
+
+ /**
+ * Add a document to the list of cached documents.
+ * @param key a key to associate with the given document.
+ * @param document a document to be identified with the given key.
+ */
+ public void addDocument(Object key, Object document)
+ {
+ this.documentList.put(key, document);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionFailException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionFailException.java
new file mode 100644
index 000000000..0b75c8370
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionFailException.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+/**
+ * Base Exception for Assertion Fail.
+ *
+ * @author gturrell
+ * */
+public class AssertionFailException extends Exception
+{
+
+ /**
+ * Comment for serialVersionUID
+ */
+ private static final long serialVersionUID = 3257007635743258933L;
+
+ /**
+ * Constructor for AssertionException.
+ */
+ public AssertionFailException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor for AssertionException.
+ * @param arg0 the detail message.
+ */
+ public AssertionFailException(String arg0)
+ {
+ super(arg0);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionNotApplicableException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionNotApplicableException.java
new file mode 100644
index 000000000..a8cff2939
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionNotApplicableException.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+/**
+ * Exception for Assertion Not Applicable.
+ *
+ * @author gturrell
+ */
+public class AssertionNotApplicableException extends Exception
+{
+
+ /**
+ * Comment for serialVersionUID
+ */
+ private static final long serialVersionUID = 3905523782994112564L;
+
+ /**
+ * Constructor for AssertionNotApplicableException.
+ */
+ public AssertionNotApplicableException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor for AssertionNotApplicableException.
+ * @param arg0 the detail message.
+ */
+ public AssertionNotApplicableException(String arg0)
+ {
+ super(arg0);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionPassException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionPassException.java
new file mode 100644
index 000000000..7163566f5
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionPassException.java
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+/**
+ * Exception for Assertion Pass.
+ *
+ * @author gturrell
+ */
+public class AssertionPassException extends Exception
+{
+
+ /**
+ * Comment for serialVersionUID
+ */
+ private static final long serialVersionUID = 3257285842283541810L;
+
+ /**
+ * Constructor for AssertionPAssException.
+ */
+ public AssertionPassException()
+ {
+ super();
+ }
+
+ /**
+ * Constructor for AssertionPAssException.
+ * @param arg0 the detail message.
+ */
+ public AssertionPassException(String arg0)
+ {
+ super(arg0);
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionResultException.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionResultException.java
new file mode 100644
index 000000000..c97ce781e
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/AssertionResultException.java
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+/**
+ * Exception for Assertion Result.
+ *
+ * @author gturrell
+ */
+public class AssertionResultException extends Exception
+{
+
+ /**
+ * Comment for serialVersionUID
+ */
+ private static final long serialVersionUID = 3256720684700152632L;
+ private String detailMessage;
+ /**
+ * Constructor for AssertionresultException.
+ */
+ public AssertionResultException()
+ {
+ super();
+ detailMessage = null;
+ }
+
+ /**
+ * Constructor for AssertionResultException.
+ * @param arg0 the detail message.
+ */
+ public AssertionResultException(String arg0)
+ {
+ super(arg0);
+ detailMessage = null;
+ }
+
+ /**
+ * Constructor for AssertionResultException.
+ * @param arg0 the detail message.
+ * @param arg1 further detailed message.
+ */
+ public AssertionResultException(String arg0, String arg1)
+ {
+ super(arg0);
+ detailMessage = arg1;
+ }
+
+ /**
+ * Returns the detailMessage.
+ * @return the detailMessage.
+ */
+ public String getDetailMessage()
+ {
+ return detailMessage;
+ }
+
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/BasicProfileAnalyzer.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/BasicProfileAnalyzer.java
new file mode 100644
index 000000000..d310711da
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/BasicProfileAnalyzer.java
@@ -0,0 +1,655 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2003 IBM Corporation, Parasoft, Beacon Information Technology Inc. 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ * Parasoft - Initial API and implementation
+ * BeaconIT - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.List;
+
+import javax.wsdl.WSDLException;
+
+import org.eclipse.wst.wsi.internal.WSIConstants;
+import org.eclipse.wst.wsi.internal.WSIException;
+import org.eclipse.wst.wsi.internal.WSIFileNotFoundException;
+import org.eclipse.wst.wsi.internal.log.LogReader;
+import org.eclipse.wst.wsi.internal.log.MessageEntryHandler;
+import org.eclipse.wst.wsi.internal.profile.ProfileAssertionsReader;
+import org.eclipse.wst.wsi.internal.profile.validator.EntryContext;
+import org.eclipse.wst.wsi.internal.profile.validator.EnvelopeValidator;
+import org.eclipse.wst.wsi.internal.profile.validator.MessageValidator;
+import org.eclipse.wst.wsi.internal.profile.validator.UDDIValidator;
+import org.eclipse.wst.wsi.internal.profile.validator.WSDLValidator;
+import org.eclipse.wst.wsi.internal.report.ArtifactReference;
+import org.eclipse.wst.wsi.internal.report.AssertionResult;
+import org.eclipse.wst.wsi.internal.report.Report;
+import org.eclipse.wst.wsi.internal.report.ReportArtifact;
+import org.eclipse.wst.wsi.internal.report.ReportContext;
+import org.eclipse.wst.wsi.internal.report.ReportWriter;
+import org.eclipse.wst.wsi.internal.report.impl.DefaultReporter;
+import org.eclipse.wst.wsi.internal.util.ArtifactType;
+import org.eclipse.wst.wsi.internal.util.WSIProperties;
+import org.eclipse.wst.wsi.internal.wsdl.WSDLDocument;
+import org.uddi4j.transport.TransportFactory;
+
+import org.eclipse.wst.wsi.internal.ToolInfo;
+
+/**
+ * Analyzes log files to confirm conformance to a profile.
+ *
+ * @version 1.0.1
+ * @author Jim Clune
+ * @author Peter Brittenham
+ * @author Graham Turrell
+ */
+public class BasicProfileAnalyzer extends Analyzer
+{
+ /**
+ * Tool information.
+ */
+ public static final String TOOL_NAME = "Analyzer";
+
+ /**
+ * WSDL document to analyze.
+ */
+ protected WSDLDocument wsdlDocument = null;
+
+ /**
+ * Basic profile analyzer.
+ * @param args command line arguments.
+ * @throws WSIException if unable to create a Basic profile analyzer.
+ */
+ public BasicProfileAnalyzer(String[] args) throws WSIException
+ {
+ super(args, new ToolInfo(TOOL_NAME));
+ }
+
+ /**
+ * Basic profile analyzer.
+ * @param args command line arguments.
+ * @param validate flag for command line argument validation.
+ * @throws WSIException if unable to create a Basic profile analyzer.
+ */
+ public BasicProfileAnalyzer(String[] args, boolean validate) throws WSIException
+ {
+ super(args, new ToolInfo(TOOL_NAME), validate);
+ }
+
+ /**
+ * Basic profile analyzer.
+ * @param analyzerConfigList a list of configurations for the analyzer.
+ * @throws WSIException if unable to create a Basic profile analyzer.
+ */
+ public BasicProfileAnalyzer(List analyzerConfigList) throws WSIException
+ {
+ super(analyzerConfigList, new ToolInfo(TOOL_NAME));
+ }
+
+ /**
+ * Basic profile analyzer.
+ * @param analyzerConfigList a list of configurations for the analyzer.
+ * @param wsdlURI a wsdl document location.
+ * @throws WSIException if unable to create a Basic profile analyzer.
+ */
+ public BasicProfileAnalyzer(List analyzerConfigList, String wsdlURI)
+ throws WSIException
+ {
+ super(analyzerConfigList, new ToolInfo(TOOL_NAME));
+
+ try
+ {
+ // Get the WSDL document
+ if (wsdlURI != null)
+ this.wsdlDocument = new WSDLDocument(wsdlURI);
+ }
+
+ catch (WSDLException we)
+ {
+ throw new WSIException(we.getMessage(), we);
+ }
+
+ }
+
+ /**
+ * Process all conformance validation functions.
+ * @return status code.
+ * @throws WSIException if conformance validation process failed.
+ */
+ public int validateConformance() throws WSIException
+ {
+ int statusCode = 0;
+
+ Report report = null;
+ ReportArtifact reportArtifact = null;
+ String wsdlURI = null;
+ //WSDLDocument wsdlDocument = null;
+
+ // Set up initial analyzer context based on entries in the config file
+ this.analyzerContext =
+ new AnalyzerContext(new ServiceReference(getAnalyzerConfig()));
+
+ try
+ {
+ // Read profile assertions
+ ProfileAssertionsReader profileAssertionsReader =
+ documentFactory.newProfileAssertionsReader();
+ this.profileAssertions =
+ profileAssertionsReader.readProfileAssertions(
+ getAnalyzerConfig().getTestAssertionsDocumentLocation());
+
+ // Create report from document factory
+ report = documentFactory.newReport();
+ report.setLocation(getAnalyzerConfig().getReportLocation());
+
+ // Create report context
+ ReportContext reportContext =
+ new ReportContext(
+ WSIConstants.DEFAULT_REPORT_TITLE,
+ profileAssertions,
+ this);
+ report.setReportContext(reportContext);
+
+ // Create report writer
+ ReportWriter reportWriter = documentFactory.newReportWriter();
+ // I18N: 2003.02.26 modified by K.Nakagome@BeaconIT
+ //reportWriter.setWriter(new FileWriter(analyzerConfig.getReportLocation()));
+ reportWriter.setWriter(getAnalyzerConfig().getReportLocation());
+
+ // Create reporter
+ this.reporter = new DefaultReporter(report, reportWriter);
+
+ // Start writing report
+ this.reporter.startReport();
+
+ // --------------------------------
+ // DISCOVERY ARTIFACT:
+ // --------------------------------
+
+ // Set current artifact
+ reportArtifact = setCurrentArtifact(ArtifactType.ARTIFACT_TYPE_DISCOVERY);
+
+ // If UDDI options specified, then process UDDI test assertions
+ if ((wsdlURI = validateUDDI(reportArtifact, factory.newUDDIValidator()))
+ == null)
+ {
+ if (getAnalyzerConfig().isWSDLReferenceSet())
+ {
+ // Otherwise use the WSDL options to get the WSDL location
+ wsdlURI = getAnalyzerConfig().getWSDLLocation();
+ }
+ }
+
+ // Indicate that we are done with this artifact
+ this.reporter.endCurrentArtifact();
+
+ // --------------------------------
+ // DESCRIPTION ARTIFACT:
+ // --------------------------------
+
+ // Set current artifact
+ reportArtifact =
+ setCurrentArtifact(ArtifactType.ARTIFACT_TYPE_DESCRIPTION);
+
+ // Call WSDLValidator
+ wsdlDocument =
+ validateWSDL(
+ reportArtifact,
+ factory.newWSDLValidator(),
+ wsdlURI,
+ wsdlDocument);
+
+ // If WSDL document object is null, then throw exception
+ if ((wsdlDocument == null) && (getAnalyzerConfig().isWSDLReferenceSet()))
+ {
+ throw new WSIException(
+ messageList.getMessage(
+ "config05",
+ "WSDL document was either not found or could not be processed."));
+ }
+
+ // Indicate that we are done with this artifact
+ this.reporter.endCurrentArtifact();
+
+ // REMOVE:
+ // If processing log entries and there isn't a WSDL URI,
+ // then throw an exception since it is required to process the log entries
+ //if ((wsdlURI == null) && (analyzerConfig.getLogLocation() != null)) {
+ // throw new WSIException("Must specify the WSDL document location to validate message log.");
+ //}
+
+ // --------------------------------
+ // MESSAGE ARTIFACT:
+ // --------------------------------
+
+ // Set current artifact
+ reportArtifact = setCurrentArtifact(ArtifactType.ARTIFACT_TYPE_MESSAGE);
+
+ // Process test assertions for the messages
+ validateMessages(
+ reportArtifact,
+ factory.newMessageValidator(),
+ wsdlDocument);
+
+ // Indicate that we are done with this artifact
+ this.reporter.endCurrentArtifact();
+
+ // --------------------------------
+ // ENVELOPE ARTIFACT:
+ // --------------------------------
+
+ // If that is not the Basic Profile 1.0, then process
+ // the envelope artifact
+ if (!profileAssertions.getTADName()
+ .equals(WSIConstants.BASIC_PROFILE_TAD_NAME))
+ {
+
+ // Set current artifact
+ reportArtifact = setCurrentArtifact(ArtifactType.ARTIFACT_TYPE_ENVELOPE);
+
+ // Process test assertions for the envelopes
+ validateEnvelopes(
+ reportArtifact,
+ factory.newEnvelopeValidator(),
+ wsdlDocument);
+
+ // Indicate that we are done with this artifact
+ this.reporter.endCurrentArtifact();
+ }
+
+ // Finish the conformance report
+ reporter.finishReport();
+ }
+
+ catch (Exception e)
+ {
+ StringWriter sw = new StringWriter();
+ PrintWriter pw = new PrintWriter(sw);
+
+ String message =
+ messageList.getMessage(
+ "error03",
+ "The conformance validation process failed.");
+
+ // Finish report
+ if (reporter != null)
+ {
+ pw.println(message);
+ pw.println(
+ messageList.getMessage("exception01", "Exception: ")
+ + e.getClass().getName());
+ e.printStackTrace(pw);
+ reporter.finishReportWithError(sw.toString());
+ }
+
+ if (e instanceof WSIException)
+ throw (WSIException) e;
+ else
+ throw new WSIException(message, e);
+ }
+
+ if (report != null)
+ {
+ statusCode =
+ (report.getSummaryResult().equals(AssertionResult.RESULT_PASSED)
+ ? 0
+ : 1);
+ }
+
+ return statusCode;
+ }
+
+ /**
+ * Run UDDI test assertions.
+ */
+ private String validateUDDI(
+ ReportArtifact reportArtifact,
+ UDDIValidator uddiValidator)
+ throws WSIException
+ {
+ String wsdlURI = null;
+
+ // Init UDDIValidator
+ uddiValidator.init(
+ this.analyzerContext,
+ this.profileAssertions.getArtifact(ArtifactType.TYPE_DISCOVERY),
+ reportArtifact,
+ getAnalyzerConfig().getUDDIReference(),
+ this.reporter);
+
+ // Call UDDIValidator
+ if (getAnalyzerConfig().isUDDIReferenceSet())
+ {
+ wsdlURI = uddiValidator.validate();
+
+ // Cleanup
+ uddiValidator.cleanup();
+ }
+
+ else
+ {
+ // Set all missingInput
+ uddiValidator.setAllMissingInput();
+ }
+
+ return wsdlURI;
+ }
+
+ /**
+ * Run WSDL test assertions.
+ */
+ private WSDLDocument validateWSDL(
+ ReportArtifact reportArtifact,
+ WSDLValidator wsdlValidator,
+ String wsdlURI,
+ WSDLDocument wsdlDocument)
+ throws WSIException
+ {
+ WSDLDocument returnWSDLDocument = null;
+
+ // Init WSDLValidator
+ wsdlValidator.init(
+ this.analyzerContext,
+ this.profileAssertions.getArtifact(ArtifactType.TYPE_DESCRIPTION),
+ reportArtifact,
+ wsdlURI,
+ wsdlDocument,
+ this.reporter);
+
+ // If a WSDL URI was specified or located in a UDDI registry, then process the WSDL tests
+ if (wsdlURI != null || wsdlDocument != null)
+ {
+ // Call WSDLValidator
+ returnWSDLDocument = wsdlValidator.validate();
+
+ // Cleanup
+ wsdlValidator.cleanup();
+ }
+
+ else
+ {
+ // Set all missingInput
+ wsdlValidator.setAllMissingInput();
+ }
+
+ return returnWSDLDocument;
+ }
+
+ /**
+ * Run message test assertions.
+ */
+ private void validateMessages(
+ ReportArtifact reportArtifact,
+ MessageValidator messageValidator,
+ WSDLDocument wsdlDocument)
+ throws WSIException
+ {
+ //Log log = null;
+ //MessageEntry logEntry = null;
+
+ // Init MessageValidator
+ messageValidator.init(
+ this.analyzerContext,
+ this.profileAssertions.getArtifact(ArtifactType.TYPE_MESSAGE),
+ reportArtifact,
+ wsdlDocument,
+ this.reporter);
+
+ // If the log file location was specified, then process test assertions for the messages
+ if (getAnalyzerConfig().getLogLocation() != null)
+ {
+ // Get the log file reader
+ LogReader logReader = documentFactory.newLogReader();
+
+ // Create log reader callback
+ MessageProcessor messageProcessor =
+ new MessageProcessor(messageValidator);
+
+ // Start reading the log file
+ logReader.readLog(getAnalyzerConfig().getLogLocation(), messageProcessor);
+
+ // Cleanup
+ messageValidator.cleanup();
+ }
+
+ // Otherwise all are missingInput
+ else
+ {
+ // Set all missingInput
+ messageValidator.setAllMissingInput();
+ }
+ }
+
+ /**
+ * Run envelope test assertions.
+ */
+ private void validateEnvelopes(
+ ReportArtifact reportArtifact,
+ EnvelopeValidator envelopeValidator,
+ WSDLDocument wsdlDocument)
+ throws WSIException
+ {
+ // Init envelopeValidator
+ envelopeValidator.init(
+ this.analyzerContext,
+ this.profileAssertions.getArtifact(ArtifactType.TYPE_ENVELOPE),
+ reportArtifact,
+ wsdlDocument,
+ this.reporter);
+
+ // If the log file location was specified, then process test assertions for the messages
+ if (getAnalyzerConfig().getLogLocation() != null)
+ {
+ // Get the log file reader
+ LogReader logReader = documentFactory.newLogReader();
+
+ // Create log reader callback
+ EnvelopeProcessor envelopeProcessor =
+ new EnvelopeProcessor(envelopeValidator);
+
+ // Start reading the log file
+ logReader.readLog(getAnalyzerConfig().getLogLocation(), envelopeProcessor);
+
+ // Cleanup
+ envelopeValidator.cleanup();
+ }
+
+ // Otherwise all are missingInput
+ else
+ {
+ // Set all missingInput
+ envelopeValidator.setAllMissingInput();
+ }
+ }
+
+ /**
+ * Command line interface for the analyzer tool.
+ * @param args command line arguments.
+ * @throws IOException if IO problems occur.
+ */
+ public static void main(String[] args) throws IOException
+ {
+ int statusCode = 0;
+ Analyzer analyzer = null;
+
+ try
+ {
+ // Set document builder factory class
+ System.setProperty(
+ WSIProperties.PROP_JAXP_DOCUMENT_FACTORY,
+ WSIProperties.getProperty(WSIProperties.PROP_JAXP_DOCUMENT_FACTORY));
+
+ // Set the system property for UDDI4J transport
+ System.setProperty(
+ TransportFactory.PROPERTY_NAME,
+ WSIProperties.getProperty(TransportFactory.PROPERTY_NAME));
+
+ // Create the analyzer object
+ analyzer = new BasicProfileAnalyzer(args);
+
+ // Have it process the conformance validation functions
+ statusCode = analyzer.validateConformance();
+
+ // Display message
+ analyzer.printMessage(
+ "created01",
+ null,
+ "Conformance report has been created.");
+ }
+
+ catch (Exception e)
+ {
+ statusCode = 1;
+
+ boolean printStackTrace = true;
+ String messageID;
+ String defaultMessage;
+ String messageData;
+
+ if ((e instanceof WSIFileNotFoundException)
+ || (e instanceof IllegalArgumentException))
+ {
+ //printStackTrace = false;
+ messageID = "error01";
+ defaultMessage = "Analyzer Error:";
+ messageData = e.getMessage();
+ }
+
+ else
+ {
+ //printStackTrace = true;
+ messageID = "error02";
+ defaultMessage = "Analyzer Stopped By Exception:";
+ messageData = e.toString();
+ }
+
+ if (analyzer != null)
+ analyzer.printMessage(messageID, messageData, defaultMessage);
+ else
+ Analyzer.staticPrintMessage(messageID, messageData, defaultMessage);
+
+ if (analyzer != null
+ && analyzer.getAnalyzerConfig() != null
+ && analyzer.getAnalyzerConfig().getVerboseOption())
+ dump(e);
+ }
+
+ // Exit
+ System.exit(statusCode);
+ }
+
+ /**
+ * Set current artifact.
+ * @param artifactType an ArtifactType object.
+ * @return a ReportArtifact object.
+ * @throws WSIException if problems creating report artifact.
+ */
+ protected ReportArtifact setCurrentArtifact(ArtifactType artifactType)
+ throws WSIException
+ {
+ // Create artifact
+ ReportArtifact reportArtifact = reporter.createArtifact();
+ reportArtifact.setType(artifactType);
+
+ // Add artifact to report
+ this.reporter.setCurrentArtifact(reportArtifact);
+
+ return reportArtifact;
+ }
+
+ /**
+ * Print exception.
+ * @param t a Throwable object.
+ */
+ public static void dump(Throwable t)
+ {
+ while (t instanceof WSIException)
+ {
+ Throwable nested = ((WSIException) t).getTargetException();
+ if (nested == null)
+ break;
+ else
+ t = nested;
+ }
+ t.printStackTrace();
+ }
+
+ /**
+ * Message processor class.
+ */
+ class MessageProcessor implements MessageEntryHandler
+ {
+ MessageValidator messageValidator = null;
+
+ /**
+ * Create message processor as a log reader callback function.
+ */
+ MessageProcessor(MessageValidator messageValidator)
+ {
+ this.messageValidator = messageValidator;
+ }
+
+ /**
+ * Process artifact reference.
+ */
+ public void processArtifactReference(ArtifactReference artifactReference)
+ throws WSIException
+ {
+ reporter.addArtifactReference(artifactReference);
+ }
+
+ /**
+ * Process a single log entry.
+ */
+ public void processLogEntry(EntryContext entryContext) throws WSIException
+ {
+ // Validate message
+ messageValidator.validate(entryContext);
+ }
+
+ }
+
+ /**
+ * Envelope processor class.
+ */
+ class EnvelopeProcessor implements MessageEntryHandler
+ {
+ EnvelopeValidator envelopeValidator = null;
+
+ /**
+ * Create envelope processor as a log reader callback function.
+ */
+ EnvelopeProcessor(EnvelopeValidator envelopeValidator)
+ {
+ this.envelopeValidator = envelopeValidator;
+ }
+
+ /**
+ * Process artifact reference.
+ */
+ public void processArtifactReference(ArtifactReference artifactReference)
+ throws WSIException
+ {
+ reporter.addArtifactReference(artifactReference);
+ }
+
+ /**
+ * Process a single log entry.
+ */
+ public void processLogEntry(EntryContext entryContext) throws WSIException
+ {
+ // Validate envelopes
+ envelopeValidator.validate(entryContext);
+ }
+
+ }
+}
diff --git a/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/CandidateInfo.java b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/CandidateInfo.java
new file mode 100644
index 000000000..0939da832
--- /dev/null
+++ b/bundles/org.eclipse.wst.wsi/wsitools/org/eclipse/wst/wsi/internal/analyzer/CandidateInfo.java
@@ -0,0 +1,921 @@
+/*******************************************************************************
+ * Copyright (c) 2002-2005 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.wst.wsi.internal.analyzer;
+
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Vector;
+
+import javax.wsdl.Binding;
+import javax.wsdl.BindingOperation;
+import javax.wsdl.Definition;
+import javax.wsdl.Fault;
+import javax.wsdl.Import;
+import javax.wsdl.Message;
+import javax.wsdl.Operation;
+import javax.wsdl.Port;
+import javax.wsdl.PortType;
+import javax.wsdl.Service;
+import javax.wsdl.Types;
+import javax.wsdl.extensions.ExtensibilityElement;
+import javax.wsdl.extensions.soap.SOAPAddress;
+import javax.xml.namespace.QName;
+
+import org.apache.xerces.util.URI;
+import org.eclipse.wst.wsi.internal.WSIException;
+import org.eclipse.wst.wsi.internal.analyzer.config.WSDLElement;
+import org.eclipse.wst.wsi.internal.wsdl.WSDLDocument;
+import org.eclipse.wst.wsi.internal.wsdl.WSDLUtils;
+
+/**
+ * Provide a normalized set of data relating to the service under test.
+ * For example, with endpoint correlation and wsdlElement of type "message"
+ * there could be multiple matches for most element types including WSDL Service.
+ * (though the objective is to ensure filtering to a single service if at all possible).
+ *
+ * @author gturrell
+ */
+
+// ADD:could be better as a singleton?
+
+public class CandidateInfo
+{
+
+ // Normalized fixed correlation data derived from the analyzer config and the wsdl,
+ // representing what we know about the service from these two sources.
+ private Definition[] definitions = null;
+
+ private Import[] imports = null;
+ private Types[] types = null;
+
+ private Message[] messages = null;
+ private Operation[] operations = null;
+ private PortType[] portTypes = null;
+ private Binding[] bindings = null;
+ private Port[] ports = null;
+
+ private URI[] endPoints = null; // list obtainable from a port
+
+ private WSDLDocument wsdlDocument; // reference probably not desirable here
+
+ /**
+ * Constructor for CandidateInfo.
+ * Extract normalised entry data from wsdl, according to config wsdlElement & serviceLocation
+ * @param serviceReference a ServiceReference object.
+ * @param wsdlDocument a WSDL document.
+ * @throws WSIException if problems occur creating CandidateInfo object.
+ */
+ public CandidateInfo(
+ ServiceReference serviceReference,
+ WSDLDocument wsdlDocument)
+ throws WSIException
+ {
+
+ // ADD: check for null document?
+
+ WSDLElement wsdlElement = serviceReference.getWSDLElement();
+
+ this.wsdlDocument = wsdlDocument;
+
+ /*
+ * Generalised fields independent of wsdlElement:
+ */
+ // ADD: check whether these need to be either expanded or filtered down.
+ // Assume WSDL4J pulls int the full tree at the root document for now
+ //this.imports = wsdlDocument.getImports();
+
+ // ... or if only down to first level....
+ this.imports =
+ (Import[]) getAllImports(
+ wsdlDocument.getDefinitions()).toArray(new Import[] {
+ });
+
+ /* Definitions.
+ * Note that the the first array element is for the root doc
+ * which contains all WSDL elements in scope via declarations,
+ * as well as the root document itself. Therefore the second definitions
+ * array element and above are redundant, but *may* prove useful to the assertion
+ * code.
+ */
+
+ this.definitions = new Definition[imports.length + 1];
+ // allow room for root doc
+
+ this.definitions[0] = wsdlDocument.getDefinitions(); // root document
+
+ // Allocate array for types elements
+ Types[] tempTypes = new Types[definitions.length];
+
+ int typesCount = 0;
+
+ if (definitions[0].getTypes() != null)
+ {
+ tempTypes[0] = this.definitions[0].getTypes(); // root document
+ typesCount++;
+ }
+
+ // Definitions from other (imported) wsdls correlating to the candidate
+ // Only one level down for now
+ for (int i = 0; i < imports.length; i++)
+ {
+ if (((definitions[i + 1] = imports[i].getDefinition()) != null)
+ && (definitions[i + 1].getTypes() != null))
+ {
+ tempTypes[typesCount] = definitions[i + 1].getTypes();
+ typesCount++;
+ }
+ }
+
+ if (typesCount > 0)
+ {
+ this.types = new Types[typesCount];
+
+ for (int i = 0; i < typesCount; i++)
+ this.types[i] = tempTypes[i];
+ }
+ /*
+ * Populate element hierachy:
+ * Port
+ * Binding
+ * PortType
+ * operation(s)
+ * message(s)
+ */
+
+ if (wsdlElement.isPort())
+ {
+
+ Port port = null;
+
+ // Use parentElementName to qualify the port within a service.
+ QName serviceName = wsdlElement.getParentElementQName();
+ Service[] s = wsdlDocument.getServices();
+ String portName = wsdlElement.getName();
+ for (int i = 0; i < s.length && port == null; i++)
+ {
+ if (s[i].getQName().equals(serviceName))
+ {
+ port = s[i].getPort(portName);
+ }
+ }
+
+ if (port == null)
+ {
+ throw new WSIException(
+ "WSDL Port \'"
+ + portName
+ + "\' for Service \'"
+ + serviceName
+ + "\' not found in service description");
+ }
+ else
+ {
+ this.ports = new Port[] { port };
+ // ADD: do serviceLocation check for soapbind:address?
+ descendents(port);
+ }
+
+ // ADD: the following could be instantiated here instead to refine context info
+ // definitions
+ // imports
+ // types
+
+ }
+
+ else if (wsdlElement.isBinding())
+ {
+ if (wsdlElement.getQName() != null
+ && wsdlElement.getQName().getLocalPart() != null
+ && wsdlElement.getQName().getLocalPart().length() > 0)
+ {
+ Binding binding =
+ wsdlDocument.getDefinitions().getBinding(wsdlElement.getQName());
+
+ if (binding == null)
+ {
+ throw new WSIException(
+ "WSDL Binding named \'"
+ + wsdlElement.getQName()
+ + "\' not found in service description");
+ }
+ else
+ {
+ this.bindings = new Binding[] { binding };
+
+ // the rest ... below binding:
+ // portTypes from binding
+ // operations from portTypes
+ // messages from operations
+ descendents(binding);
+
+ // above binding:
+ // ports
+ // definitions, imports, types (future?)
+ // ancestors(bindings);
+ }
+ }
+ }
+
+ else if (wsdlElement.isPortType())
+ {
+
+ PortType portType =
+ wsdlDocument.getDefinitions().getPortType(wsdlElement.getQName());
+ this.portTypes = new PortType[] { portType };
+
+ if (portType == null)
+ {
+ throw new WSIException(
+ "WSDL PortType named \'"
+ + wsdlElement.getQName()
+ + "\' not found in service description");
+ }
+ else
+ {
+ this.portTypes = new PortType[] { portType };
+ // the rest ... below portType:
+ descendents(portType);
+
+ // above portType:
+ // ports
+ // definitions, imports, types (future) ?
+ //ancestors(portTypes);
+ }
+ }
+ else if (wsdlElement.isOperation())
+ {
+
+ Operation operation = null;
+ String configOpName = wsdlElement.getName();
+
+ // Use parentElementName to qualify the operation within a portType.
+ QName portTypeName = wsdlElement.getParentElementQName();
+ PortType[] p = wsdlDocument.getPortTypes();
+ for (int i = 0; i < p.length && operation == null; i++)
+ {
+ if (p[i].getQName().equals(portTypeName))
+ {
+ // wsdl4j available method call below implies that only
+ // name+inputname+outputname uniquely defines operation!
+ // Since we do not have &