In fd23c08 RequestBody constructor made obsolete: "The RestBody class will be internal in future versions".
We have API which uses XML request-response, so we use UseDotNetXmlSerializer.
However, in Authenticator we need to replace generated XML body with signed application/pkcs7-mime. So we take request.Body.Value, sign it and replace entire request.Body with new RequestBody("application/pkcs7-mime", "application/pkcs7-mime", signedBody)
With RequestBody constructor made obsolete what is the right way for authenticators to replace entire request.Body?
In fd23c08
RequestBodyconstructor made obsolete: "The RestBody class will be internal in future versions".We have API which uses XML request-response, so we use
UseDotNetXmlSerializer.However, in
Authenticatorwe need to replace generated XML body with signedapplication/pkcs7-mime. So we takerequest.Body.Value, sign it and replace entirerequest.Bodywithnew RequestBody("application/pkcs7-mime", "application/pkcs7-mime", signedBody)With
RequestBodyconstructor made obsolete what is the right way for authenticators to replace entirerequest.Body?