function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karthik ManoKarthik Mano 

Capture XML Request

Hi, Would i be able to capture the raw XML request i recieve in Salesforce before the webservice method is invoked so i'll be able to log all my actual incoming requests for the purpose of maintaining the request logs?
UC InnovationUC Innovation
You should be able to call the getBody() methods of the HttpRequest and HttpResponse classes:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_httprequest.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http_httpresponse.htm%23apex_classes_restful_http_httpresponse