Hi,
There is a SOAPLogger tool that ships with CRM 2011 SDK which can be used to capture HTTP request and response.
http://msdn.microsoft.com/en-us/library/gg594434.aspx
Using that tool we can write our code in C# and and it captures the corresponding SOAP Request and Response for it in a file named Output.txt. I have updated the code so that it formats the SoapRequest in JavaScript which than can be used as web resource in our solution. (It works with Office 365 as well).
The C# code for creating a contact record

And the corresponding output.txt file

Dowload it here :- SoapLogger (rename .doc to .zip)
Hope it helps.
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.
