I am using Cisco AXL web service
in .NET
.
The problem is, it does not allow me to override GetWebRequest
method to change HTTP version.
I am following this document that gave me the following code to add http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/devguide/9_1_1/axl.html#wp1055254
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;
}
I have this code inside the class that extends SoapHttpClientProtocl
. I googled around and I have found people with the same problem but no clear answer of how to solve it. I'm hoping that somebody has an answer here .
Thanks!!