04-25-2008 01:38 AM - edited 03-13-2019 05:11 PM
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)
{
listeNoeud.Add(device.LoginUserId);
}
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.
04-25-2008 03:32 AM
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: "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevice"
Host: 10.1.1.100:8443
Content-Length: 1015
Connection: Keep-Alive
......
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.
04-25-2008 06:08 AM
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 ?
03-02-2015 12:19 PM
I doubt that the problem is current for its author ( it's been 7 years now), but here is what actually happens in C#:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide