public static string GetDiscoveryResponseXmlString(string currentTestClientName, string progId)
{
DiscoveryProcessHelper.CheckInputParameterNullOrEmpty<string>(currentTestClientName, "currentTestClientName", "GetDiscoveryResponseXmlString");
DiscoveryProcessHelper.CheckInputParameterNullOrEmpty<string>(progId, "progId", "GetDiscoveryResponseXmlString");
wopidiscovery wopiDiscoveryInstance = new wopidiscovery();
// Pass the prog id, so that the WOPI discovery response logic will use the prog id value.
progIdValue = progId;
// Add http and https net zone into the wopiDiscovery
wopiDiscoveryInstance.netzone = GetNetZonesForWopiDiscoveryResponse(currentTestClientName);
// ProofKey element
wopiDiscoveryInstance.proofkey = new ct_proofkey();
wopiDiscoveryInstance.proofkey.oldvalue = RSACryptoContext.PublicKeyStringOfOld;
wopiDiscoveryInstance.proofkey.value = RSACryptoContext.PublicKeyStringOfCurrent;
string xmlStringOfResponseDiscovery = WOPISerializerHelper.GetDiscoveryXmlFromDiscoveryObject(wopiDiscoveryInstance);
return xmlStringOfResponseDiscovery;
}