cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
181
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: sujit pillai on 05-12-2009 11:01:29 AM
Hi,
 
how to use get_file_list and get_file in C# using CDRonDemand web service
 i have tried following 

CDRonDemandService cdr = new CDRonDemandService();
 ArrayOfFileName af = new ArrayOfFileName();
af = cdr.get_file_list("200912030601", "200912030632", true);

is i am on right track?
it gives me error

The request failed with an empty response.

 
-----------------
is Required to add following class and method in .cs file? please let me know if i m doing any wrong steps.



public class BruteForcePolicy : System.Net.ICertificatePolicy
        {
            public bool CheckValidationResult(System.Net.ServicePoint sp, System.Security.Cryptography.X509Certificates.X509Certificate cert,
                    System.Net.WebRequest request, int problem)
            {
                return true;
            }
        }
 
        public CDRonDemandService(string ccmIp, string user, string password)
        {
            //System.Net.ServicePointManager.CertificatePolicy = new BruteForcePolicy();
            //System.Net.ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback;
            this.Url = "https://" + ccmIp + ":8443/CDRonDemandService/services/CDRonDemand/";
            this.Credentials = new System.Net.NetworkCredential(user, password);
        }
 
 
Thanks in Advance
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links