I want to integrate NMVS protocol in my application which is providing wsdl files for testing which is written sample code in .net framework library.
I want to test it in .netstandard, .netcore or UWP app but wsdl files only support to "WSHttpBinding" which is not supported in .netstandard, .net core and UWP.
<wsdl:binding name="WSHttpBinding_ISinglePackServices" type="ns:ISinglePackServices">
WSHttpBinding binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.Transport;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
I used basichttpbinding but I am getting error that says "The content type application/soap+xml; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)."
What are the other ways to troubleshoot this issue?
Thanks Imrankhan
Add Service Reference
orAdd Connected Service
Visual Studio will create a WCF proxy that takes care of all this. Why are you trying to write the bindings by hand? – SternforemostAdd Connected Services
doesn't work, you can generate the proxy in a Full Framework project, copy the files to a Standard 2.0 project, compile it and use it – Sternforemost