Question

I am working a salesforce integration project. We are making n number of web service calls to third party services. Now I have to implement a logger , where I need to store the soap request and response in xml format. Most preferable is the same soap request and response xml.

How I can intercept this request and response , in apex programmatically ?

Is it the only option left to xml serialize my request and response explicitly ?

Was it helpful?

Solution 2

Thanks every body for participating . I did intercepted in the proxy class (Generated from WSDL) and logged the toString() response (I have overridden the request and response stubs for as Json) of request and response objects into a custom sObject.

OTHER TIPS

If the request is made from Salesforce, the XML should be visible in the log when CALLOUT LogLevel is set: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_debugging_API_calls.htm

Another solution is to use a proxy server that stores the data outside Salesforce.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top