<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Fail to generate the .net axl api 8.5</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6183132" />
  <subtitle>Fail to generate the .net axl api 8.5</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=6183132</id>
  <updated>2013-05-20T11:48:01Z</updated>
  <dc:date>2013-05-20T11:48:01Z</dc:date>
  <entry>
    <title>RE: Fail to generate the .net axl api 8.5</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8431582" />
    <author>
      <name>Robert Rittenhouse</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8431582</id>
    <updated>2012-11-08T21:46:11Z</updated>
    <published>2012-11-08T21:46:11Z</published>
    <summary type="html">I hope it's not too late but I just ran into this. I worked around it by doing this: http://developer.cisco.com/web/sxml/forums/-/message_boards/view_message/6194431#_19_message_6194431
 
Hope this helps!</summary>
    <dc:creator>Robert Rittenhouse</dc:creator>
    <dc:date>2012-11-08T21:46:11Z</dc:date>
  </entry>
  <entry>
    <title>Fail to generate the .net axl api 8.5</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6183131" />
    <author>
      <name>sujit pillai</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=6183131</id>
    <updated>2012-07-26T06:05:29Z</updated>
    <published>2012-07-26T06:05:29Z</published>
    <summary type="html">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</summary>
    <dc:creator>sujit pillai</dc:creator>
    <dc:date>2012-07-26T06:05:29Z</dc:date>
  </entry>
</feed>

