private void VerifyCommonReqs()
{
switch (this.transportProtocol)
{
case TransportType.HTTP:
// If can get a successful response by using SOAP over HTTP. It means the server supports SOAP over HTTP.
// Verify requirement: MS-SITESS_R3
Site.CaptureRequirement(3, "[In Transport] Protocol servers MUST support SOAP over HTTP.");
break;
case TransportType.HTTPS:
if (Common.IsRequirementEnabled(541, this.Site))
{
// Microsoft Office SharePoint Server 2007 and above Microsoft products do additionally support SOAP over HTTPS for securing communication with clients.
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R541");
// If can get a successful response by using SOAP over HTTPS. It means the server supports SOAP over HTTPS.
// Verify MS-SITESS requirement: MS-SITESS_R541
Site.CaptureRequirement(
541,
@"[In Transport] Implementation does additionally support SOAP over HTTPS for securing communication with clients. (Microsoft Office SharePoint Server 2007 and above follow this behavior.)");
}
break;
default:
Site.Assert.Fail("Transport: {0} is not Http or Https", this.transportProtocol);
break;
}
Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R5, the SoapVersion is {0}.", this.service.SoapVersion);
// Verify MS-SITESS requirement: MS-SITESS_R5
bool isVerifyR5 = this.service.SoapVersion == SoapProtocolVersion.Soap11 || this.service.SoapVersion == SoapProtocolVersion.Soap12;
Site.CaptureRequirementIfIsTrue(
isVerifyR5,
5,
@"[In Transport] Protocol messages MUST be formatted as specified either in [SOAP1.1] section 4, or in [SOAP1.2/1] section 5.");
}