I'm trying to connect a Web service SOAP12 using WCF and .NET Core 3.1.
I've generate the Reference.cs
using WCF connected service from Visual Studio 2019 (v16.6.2). VS2019 generates the file but shows some warnings.
I tried build a custom binding but always throw same error.
var customBinding = new CustomBinding(encodingBindingElement)
{
Elements = { new HttpTransportBindingElement //or HttpsTransportBindingElement for https:
{
MaxBufferSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
}}
};
Already tried WSHttpBinding.
var binding = new WSHttpBinding(SecurityMode.TransportWithMessageCredential)
{
MaxBufferPoolSize = int.MaxValue,
MaxReceivedMessageSize = int.MaxValue,
};
has anyone managed to consume WCF SOAP12 with .NET Core 3.1 that can help me?