sujit pillai | Hi, I am using c# 2.0 windows application as a platform to connect the axl web service but whenever i try to connect it gives me error, calling any api gives me following error
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'
even if i try to use sgen.exe it gives me followin errors
C:\Program Files\Microsoft Visual Studio 8\VC>sgen Cisco8_5.dll Microsoft (R) Xml Serialization support utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved. Error: 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 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' error CS0029: Cannot implicitly convert type 'UpdateSoftKeySetReqRemoveCallStates' to 'UpdateSoftKeySetReqAddCallStates' error CS0029: Cannot implicitly convert type 'UpdateSoftKeySetReqCallStates' to 'UpdateSoftKeySetReqAddCallStates'
What changes to be made in AXLAPIService.cs generated by wsdl.exe command. i just add follwing things to the AXLAPIService.cs
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; }
please help me to get out of this problem. |
| Please sign in to flag this as inappropriate. |