« Back to Serviceability XML Questions

CUCM RISport Webservice

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,
 
I am trying to generate a C# proxy class using wsdl for using RisPort. However, the proxy class gnerated has the CallManager URL hardcoded. Obviously the credentials as well. I thought I'd be able to instantiate an instance of the webservice using the class and be able to dynamically assign the UCM IP, usr name, and password like I do with the AXL API proxy class.
 
Any help is appreciated.
 
 
Thx
 

Hi,
You must change creator of the generate class to this type :
        public RISService(string ccmIp, string user, string password)
        {
            System.Net.ServicePointManager.CertificatePolicy =
        new HP_CUCM_Utils.RIS.BruteForcePolicy();
            this.Url = "https://" + ccmIp + ":8443/realtimeservice/services/RisPort";
            this.Credentials = new System.Net.NetworkCredential(user, password);
        }

Now, you create new class :
RISService xx=new RISService(¿server¿,¿user¿,¿pwd¿);
It¿s same as AXL version. I prepare WSDL file separately from server definition XML and wsdl.exe from dotNET tools.

Zdenek

Hey! Where did you find the wsdl for RisPort (RISService I believe).
 
I see a lot of links, but I do not find the wsdl. Is there a wsdl specific for .NET??? (C#)
 
Thanks ~

For anyone looking, I (luckily) found that you can access the WSDL from here
 
https://<YOUR-CM-IP>:8443/realtimeservice/
 
Then you have to do the same as AXL wsdl
 
change constructor to take ip, uname & pwd, as well as add the brute force policy