3.2.5.1.4 Processing the Complete Aggregated Result

When the aggregated result is complete, the relying party MUST apply the following transforms to the aggregated result to produce an XML string:

  1. Base64-decode the aggregated result to binary data (as specified in [RFC2045] section 6.8).

  2. Decompress the result from step 1 from the zlib format (as specified in [RFC1950]) by using the inflate algorithm (as specified in [RFC1951]).

  3. Interpret the binary data from step 2 as a UTF-8-encoded string (as specified in [RFC2279]).

If any error occurs when applying the transforms, the relying party MUST reject the message and return an HTTP 500 response.

The relying party MUST process the wsignin1.0 response (as specified in [MS-MWBF] section 3.3.5.2), substituting the string output from step 3 for the wresult parameter.