Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
Community Member

Using RisPort WSDL - C# with RISService to make request - HTTP 505 Problem.

Well, I decided to use the RisPort WSDL with C#.NET to make my requests.

I still have a HTTP 505 ERROR (Bad HTTP Version).

Here is my code :

List<String> listeNoeud = new List<string> { };

ServicePointManager.ServerCertificateValidationCallback += delegate { return true; };

ServicePointManager.Expect100Continue = false;

RISService wsRis = new RISService();

wsRis.Credentials = new NetworkCredential(Login, Password);

wsRis.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11;

wsRis.Url = @"https://" + Host + ":" + Port + "/realtimeservice/services/RisPort";

CmSelectionCriteria filtre = new CmSelectionCriteria();

filtre.MaxReturnedDevices = 20;

filtre.Class = DeviceClass.Phone.ToString();

filtre.Model = 255; //"Any" Model.

String stateInfo = null; // Execution summary

SelectCmDeviceResult result = wsRis.SelectCmDevice(ref stateInfo, filtre);

CmNode[] nodes = result.CmNodes;

CmDevice[] devices = nodes[0].CmDevices;

foreach (CmDevice device in devices)




return listeNoeud;

How could I use the HTTP VERSION 1.0 ? Where do I need to specify it ?

Config :

Call Manager 6.0.

Visual Studio 2008.

Community Member

Re: Using RisPort WSDL - C# with RISService to make request - HT

Here is the result of SNIFFING with WIRESHARK :

POST /realtimeservice/services/RisPort HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.1433)

VsDebuggerCausalityData: uIDoo44LS9aWDclCg356m9lojzEBBBBBU4GjxicVUkeMySxHTpRd7F3UXpR10IxAn6h5VQI7Cl0ACQAA

Content-Type: text/xml; charset=utf-8

SOAPAction: ""


Content-Length: 1015

Connection: Keep-Alive" xmlns:soapenc="" xmlns:tns="" xmlns:types="" xmlns:xsi="" xmlns:xsd="">



The problem is the FIRST line :

POST /realtimeservice/services/RisPort HTTP/1.1

How could I modify this header ?

How could I change HTTP/1.1 by HTTP/1.0 ??

Thanks in advance, I'm still stuck.

Community Member

Re: Using RisPort WSDL - C# with RISService to make request - HT

Could you find me an answer to this ambiguous problem ???

I just use Cisco RisPort WSDL, with RISService object, and this object is not compatible with Cisco RisPort web service ... (because of HTTP 505 Error : Http Version not compatible, and I don't know how to change it to 1.0).

What's the problem ?

Community Member

I doubt that the problem is

I doubt that the problem is current for its author ( it's been 7 years now), but here is what actually happens in C#:

  1. There is no need to change HTTP protocol version
  2. Leave SOAP version to default (wsRis.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Soap11; is not needed and it in fact triggers HTTP error).
  3. Avoid using filtre.Class = DeviceClass.Any.ToString(); Actually, that enum, when auto generated from WSDL, does not contain all types (I had to manually alter the DeviceClass and add a   HuntList member
CreatePlease to create content