Thursday, August 11, 2011

SoapLogger

SoapLogger - is a console application (Visual Studio 2010) came with the CRM 2011 SDK, which allows you to receive the formatted SOAP requests and responses that you send through the code to the endpoint SOAP CRM 2011.

Uses:
Download and unzip the CRM 2011 SDK;
Open the project \ SampleCode \ CS \ Client \ SOAPLogger \ SOAPLogger.sln;

The file in the Run method SoapLogger.cs following comments:

//Add the code you want to test here:
//You must use the SoapLoggerOrganizationService 'slos' proxy rather than the IOrganizationService proxy you would normally use.


Add the following code:

slos.Retrieve("account", new Guid("FD3346FC-53B0-E011-B5BB-000C29CDB72E"), new ColumnSet("name"));

It simply makes a request of the names of the CRM (of course replace the GUID on one of their own). In place of it, you can write any of your. But in reference to the service must use «slos»;
Press F5 to begin debugging the application (ie, run it);
Enter the information for connecting to your organization's CRM;
After she finished, navigate to the bin \ Debug SOAPLogger project and open the file output.txt - there you will see the SOAP request is sent and received a response.

  
 


No comments:

Post a Comment