例外情况;不支持指定的方法";当使用Net Core 3.1从WCF web服务调用方法时
我正在尝试使用WCF和.NETCore3.1连接Web服务SOAP12 我已经使用VisualStudio2019(v16.6.2)中的WCF连接服务生成了例外情况;不支持指定的方法";当使用Net Core 3.1从WCF web服务调用方法时,wcf,soap,binding,webservice-client,asp.net-core-3.1,Wcf,Soap,Binding,Webservice Client,Asp.net Core 3.1,我正在尝试使用WCF和.NETCore3.1连接Web服务SOAP12 我已经使用VisualStudio2019(v16.6.2)中的WCF连接服务生成了Reference.cs。VS2019生成该文件,但显示一些警告 我尝试构建自定义绑定,但总是抛出相同的错误 var customBinding = new CustomBinding(encodingBindingElement) { Elements = { new HttpTransportBi
Reference.cs
。VS2019生成该文件,但显示一些警告
我尝试构建自定义绑定,但总是抛出相同的错误
var customBinding = new CustomBinding(encodingBindingElement)
{
Elements = { new HttpTransportBindingElement //or HttpsTransportBindingElement for https:
{
MaxBufferSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
}}
};
已尝试WSHttpBinding
var binding = new WSHttpBinding(SecurityMode.TransportWithMessageCredential)
{
MaxBufferPoolSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
};
是否有人能够使用带有.NET Core 3.1的WCF SOAP12来帮助我?这是一个.NET Core framework尚不支持的消息安全问题。当服务端点的绑定包含.NET核心不支持的元素(函数)时,通常会发生这种情况,例如某些安全元素(消息安全性)。net core 3.1尚不支持SymmetricSecurity BindingElement .Net core仅支持以下绑定: