Не удалось установить доверительные отношения для безопасного канала SSL/TLS с авторитетом '10 .137.4.121: 8086 SVCUtil WCF в сети проекта.
my file reference.cs < /code>: < /p>
Не удалось установить доверительные отношения для безопасного канала SSL/TLS с авторитетом '10 .137.4.121: 8086 SVCUtil WCF в сети проекта. my file reference.cs < /code>: < /p> [code]private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.Service_MDMSSoap)) { System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); result.MaxBufferSize = int.MaxValue; result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; result.MaxReceivedMessageSize = int.MaxValue; result.AllowCookies = true; result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport;
return result; }
if ((endpointConfiguration == EndpointConfiguration.Service_MDMSSoap12)) { System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); result.Elements.Add(textBindingElement); System.ServiceModel.Channels.HttpsTransportBindingElement httpsBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); httpsBindingElement.AllowCookies = true; httpsBindingElement.MaxBufferSize = int.MaxValue; httpsBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpsBindingElement); return result; } throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); } < /code> Когда я звоню в службу, я получаю предупреждение, показанное выше. < /p> Service_MDMSSoapClient sv1 = new Service_MDMSSoapClient(0);
ArrayOfXElement a = sv1.GET_READ_IX(tungay, denngay, username, pass); [/code] Пожалуйста, помогите мне решить эту проблему