Теперь я выясняю, что это проблема.
У меня есть служба wcf, которую я размещаю на II7, все работает нормально, когда я использую обычный протокол http.
Я добавил возможности SSL, и с тех пор я не могу получить к нему доступ из кода. Я могу создать клиента, но не могу выполнить какие-либо его методы.
вот что я
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttp0">
<security mode="Transport">
<transport realm ="" clientCredentialType="None" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://serverName.domname.local/WCFTest/MyWebServicec.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttp0" contract="SSLWebService.IMyWebService"
name="WSEP">
<identity>
<dns value="serverName.domname.local" />
</identity>
</endpoint>
</client>
</system.serviceModel>
Я добавил ссылку на мой проект
и я использую его таким образом
Dim client As MyWebServiceClient = New MyWebServiceClient()
Try
client.GetDocumentByDocID(5)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
и вот что я получаю
Оконечная точка не слушала https://serverName.domname.local/WCFTest/MyWebService.svc, которая могла принять сообщение. Это часто вызвано неправильным адресом или действием SOAP. См. InnerException, если присутствует, для более подробной информации.
Может ли кто-нибудь помочь мне в этом? Я действительно не понимаю, что происходит...
note: я могу получить доступ к веб-сервису правильно с помощью Internet Explorer (так что я думаю, что мой сертификат в порядке)