Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

SDK SOAPLogger Application Generating Empty Output File

$
0
0

I am trying to invoke Action from C# code. Action simply makes the phone call record Open again. The Action called successfully and make the particular phone call record active. The issue is, it is not generating request message in output.txt file. I want request XML to call from Javascript. Below is the C# code. Appreciate any input

 // Connect to the Organization service.
          // The using statement assures that the service proxy will be properly disposed.
          using (_serviceProxy = ServerConnection.GetOrganizationProxy(serverConfig))
          {
              // This statement is required to enable early-bound type support.
              _serviceProxy.EnableProxyTypes();

              IOrganizationService service = (IOrganizationService)_serviceProxy;


             using (StreamWriter output = new StreamWriter("output.xml"))
              {

                  SoapLoggerOrganizationService slos = new SoapLoggerOrganizationService(serverConfig.OrganizationUri, service, output);

                  //Add the code you want to test here:
                  // You must use the SoapLoggerOrganizationService 'slos' proxy rather than the IOrganizationService proxy you would normally use.
                  OrganizationRequest request = new OrganizationRequest("new_ReactivatePhonecall");
                  //Guid guid=new Guid("4A5B0815-2B6F-E511-80DA-3863BB2E0588");
                  request["Target"] = new EntityReference("phonecall", new Guid("4A5B0815-2B6F-E511-80DA-3863BB2E0588"));

                  OrganizationResponse response = service.Execute(request);


Viewing all articles
Browse latest Browse all 55831

Trending Articles