This topic explains how to configure and apply the WS-I tool in SOAtest and Virtualize. This tool checks WSDL conformance to WS-I's Basic Profile 2.0 (for SOAP 1.2) , or 1.2 (for SOAP 1.1) or 1. 1 (also for SOAP 1.1). It can also be added to the Traffic Object output of a SOAP Client for validating SOAP message conformance. This tool requires a validate licensethe Validate license in Virtualize to be used inside virtual assets.Sections include:
Table of Contents | ||
---|---|---|
|
...
- The WS-I Basic Profile 2.0 interoperability specifications (2010) apply to SOAP 1.2. This profile is derived from the Basic Profile 1.1 and SSBP 1.0.
- The 2010 WS-I Basic Profile 1.2 interoperability specifications (2010) apply to SOAP 1.1. This profile is derived from the Basic Profile 1.1 and SSBP 1.0.The WS-I Basic Profile 1.1 interoperability specifications (2006) apply to SOAP 1.1. This profile is derived from the Basic Profile 1.0. SSBP (Simple SOAP Binding Protocol) 1.0 is derived from the parts of Basic Profile 1.0 related to serialization of envelopes and their representation in messages.
Verifying conformance to WS-I is especially useful in ensuring the interoperability of your service. By restricting service development to the technologies specified in the Basic Profiles, you can increase the odds that your service will interoperate with others’ systems. In the case of non-conformance, you can pinpoint exactly what needs to be changed to ensure interoperability.
...
As a test suite tool, it allows you to check WSDLs as part of your functional test scenario. As an output to a test suite’s SOAP Client tool, it can validate SOAP messages. To check interoperability during static analysis, use the "Check WS-I Interoperability" rule, which is in the Interoperability category. This rule has the same customization options as the WS-I tool.
Download and Installation
- Download the WS-I Testing Tools for Basic Profiles 1.2 and 2.0 from http://www.ws-i.org/Profiles/BPTestToolsProcess-1.2-2.0-Final.zip.
- Copy the zip file to
<SOATEST_INSTALL>\plugins\com.parasoft.ptest.libs.web_<VERSION>\root\wsi
.
Analyzing SOAP Messages for WS-I Conformance
...
- Suppress request assertion failures: When enabled (default), any Basic Profile violations for the SOAP request are ignored.
When checking WS-I Basic Profile 1.1 + SSBP 1.0, you can customize the following options:
- -wsdlElement: The wsdlElement fields (parent, name, namespace, type) automatically populate after entering a valid WSDL in the wsdlURI field and pressing ENTER on your keyboard.
- assertionResults: Specifies the type of assertion results that should appear in the conformance report. The valid options available in the assertionResults menu are as follows:
- all: Lists the results from all test assertions.
- notPassed: Lists all of the assertion test results except the ones that have a result of
passed
. - onlyFailed: Lists only the test assertion results which have a result of
failed.
- failureMessage: Specifies whether or not the pre-defined Basic Profile 1.1 error messages for each test assertion are included in the conformance report. If this option is not enabled, the pre-defined error messages will not display in the conformance report. If this option is enabled, the pre-defined error messages will display in the conformance report.
- failureDetail: Specifies whether or not error detail messages that are specific to your WSDL or SOAP artifacts are included in the conformance report. If this option is not enabled, the error detail messages will not appear in the conformance report. If this option is enabled, the error detail messages will appear in the conformance report.
Conformance Report Output
...