[英]WCF client - can not determine correct binding for WCF web service
I have been trying to connect to a publicly available web service https://tsteracun.posta.si/ERacunService/Service.svc which seems to be implemented with WCF (at least that is how it looks like to me). 我一直在尝试连接到公开的Web服务https://tsteracun.posta.si/ERacunService/Service.svc ,该服务似乎已由WCF实现(至少对我而言是如此)。
However whichever binding configuration I use I am unable to make the connection. 但是,无论我使用哪种绑定配置,都无法建立连接。 Two common errors I get are:
我遇到的两个常见错误是:
I am using VS2010 with .NET 3.5SP1 and I've simply added the service URL as a web service. 我正在将VS2010与.NET 3.5SP1配合使用,并且仅将服务URL添加为Web服务。
The issue was that the server required messages encrypted with specific certificate. 问题是服务器需要使用特定证书加密的消息。 Once I used the appropriate certificate it started to work OK.
一旦使用了适当的证书,它便开始正常运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.