我希望在我的应用程序中集成NMVS协议,该应用程序为测试提供wsdl文件,其中还包含使用.net框架库编写的示例代码。
我想在.netstandard、.netcore或UWP应用程序中对其进行测试,但wsdl文件仅支持“WSHttpBinding”,而这在.netstandard、.net core和UWP中不受支持。
<wsdl:binding name="WSHttpBinding_ISinglePackServices" type="ns:ISinglePackServices">
WSHttpBinding binding = new WSHttpBinding();
binding.Security.Mode = SecurityMode.Transport;
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
我使用了basichttpbinding,但我遇到了错误,错误信息是"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)."。
有哪些其他的故障排除方法?
谢谢 Imrankhan