sujit pillai | Hi, I've tried create .net dll from the AXLAPI.wsdl and AXLSoap.xsd. by using wsdl and csc utility. While gnerating of dll made a following changes in the generated AXLAPIService.cs by wsdl utility.
/* public AXLAPIService() { this.Url = "https://CCMSERVERNAME:8443/axl/"; } */ add following Code to the AXLAPIService.cs and make dll out of it. 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 AXLAPIService(string ccmIp, string user, string password) { System.Net.ServicePointManager.CertificatePolicy = new BruteForcePolicy(); this.Url = "https://" + ccmIp + ":8443/axl/"; this.Credentials = new System.Net.NetworkCredential(user, password); } protected override System.Net.WebRequest GetWebRequest(Uri uri) { System.Net.HttpWebRequest request = base.GetWebRequest(uri) as System.Net.HttpWebRequest; request.ProtocolVersion = System.Net.HttpVersion.Version10; return request; }
When i use the gnerated dll in my VS2005 C# windows application it gives me following errors when i called any api.
Unable to generate a temporary class (result=1). error CS0030: Cannot convert type 'UpdateSoftKeySetReqAddCallStates' to 'UpdateSoftKeySetReqCallStates' error CS0030: Cannot convert type 'UpdateSoftKeySetReqAddCallStates' to 'UpdateSoftKeySetReqRemoveCallStates' error CS0029: Cannot implicitly convert type 'UpdateSoftKeySetReqRemoveCallStates' to 'UpdateSoftKeySetReqAddCallStates' error CS0029: Cannot implicitly convert type 'UpdateSoftKeySetReqCallStates' to 'UpdateSoftKeySetReqAddCallStates'
can anybody help me on this, any thing else to be change in AXLAPIService.cs before generating .dll. The same procedure is work with the 6.0 and 7.0 versions the problem is faced on 8.5 version. The helpme.txt provided is not sufficient. waiting for a reply it is Urgent.
Thanks in Advance |
| Please sign in to flag this as inappropriate. |