private void ValidateResolveResponseData(PickerEntity[] resolveResult)
{
XmlElement xmlResponse = SchemaValidation.LastRawResponseXml;
bool isResponseValid = SchemaValidation.ValidationResult == ValidationResult.Success;
// The response have been received successfully, then the following requirement can be captured.
Site.CaptureRequirementIfIsTrue(
isResponseValid,
278,
@"[In Resolve] The following is the WSDL port type specification of the Resolve WSDL operation.
<wsdl:operation name=""Resolve"" xmlns:wsdl=""http://schemas.xmlsoap.org/wsdl/"">
<wsdl:input wsam:Action=""http://schemas.microsoft.com/sharepoint/claims/IClaimProviderWebService/Resolve"" message=""tns:IClaimProviderWebService_Resolve_InputMessage"" xmlns:wsaw=""http://www.w3.org/2006/05/addressing/wsdl""/>
<wsdl:output wsam:Action=""http://schemas.microsoft.com/sharepoint/claims/IClaimProviderWebService/ResolveResponse"" message=""tns:IClaimProviderWebService_Resolve_OutputMessage"" xmlns:wsaw=""http://www.w3.org/2006/05/addressing/wsdl""/>
</wsdl:operation>");
Site.CaptureRequirementIfIsTrue(
isResponseValid,
279,
@"[In Resolve] The protocol client sends an IClaimProviderWebService_Resolve_InputMessage (section 3.1.4.8.1.1) request WSDL message and the protocol server responds with an IClaimProviderWebService_Resolve_OutputMessage (section 3.1.4.8.1.2) response message.");
// If the server response is validated successfully, and the ResolveResponse has returned, MS-CPSWS_R289 can be verified.
Site.CaptureRequirementIfIsTrue(
this.ResponseExists(xmlResponse, "ResolveResponse"),
289,
@"[In IClaimProviderWebService_Resolve_OutputMessage] The SOAP body contains the ResolveResponse element.");
// The response have been received successfully, then the following requirement can be captured.
Site.CaptureRequirementIfIsTrue(
isResponseValid,
298,
@"[In ResolveResponse] The ResolveResponse element specifies the result data for the Resolve WSDL operation.
<xs:element name=""ResolveResponse"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs=""0"" maxOccurs=""1"" name=""ResolveResult"" type=""tns:ArrayOfPickerEntity""/>
</xs:sequence>
</xs:complexType>
</xs:element>");
if (resolveResult.Length != 0)
{
this.ValidateArrayOfPickerEntityComplexType();
}
}