Könnte keine Vertrauensbeziehung für den SSL/TLS Secure Channel mit Behörde '10 .137.4.121: 8086 WCF Service SVCutil in C#

Ein Treffpunkt für C#-Programmierer
Guest
 Könnte keine Vertrauensbeziehung für den SSL/TLS Secure Channel mit Behörde '10 .137.4.121: 8086 WCF Service SVCutil in

Post by Guest »

konnte keine Vertrauensbeziehung für den SSL/TLS Secure Channel mit Autoritäts10 .137.4.121: 8086 WCF Service SVCutil in Project Net Core 3.1

Meine Dateireferenz.cs < /code>: < /p>

Code: Select all

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>
Wenn ich den Dienst aufrufe, erhalte ich die oben gezeigte Warnung. < /p>
Service_MDMSSoapClient sv1 = new Service_MDMSSoapClient(0);

ArrayOfXElement a = sv1.GET_READ_IX(tungay, denngay, username, pass);
Bitte helfen Sie mir, dieses Problem zu lösen.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post