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 it captures the corresponding SOAP Request and Response for it in a file named Output.txt, which we can then use in our JavaScript.
Sample SetStateRequest code

Request

Response

I have simply modified the tool to output the JavaScript as well which we can then use in onload or onchange event in CRM.
JavaScript

Hope it helps.
Filed under: CRM 2011 Tagged: CRM 2011

Like
Report
*This post is locked for comments