hello guys,
I'm figthing for hours now to figure out this problem.
I have a wcf service that I host on II7, all works fine when I use the normal http protocol.
I added SSL capabilites and since then I cannot access it from code. I can create a client but cannot run any of its methods.
here is what I have
<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>
I added a service reference to my project
and I use it like that
Dim client As MyWebServiceClient = New MyWebServiceClient()
Try
client.GetDocumentByDocID(5)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
and here is what I get
There was no endpoint listening at https://serverName.domname.local/WCFTest/MyWebService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Can sy help me on this? I really do not understand what is going on...
note: I can access the webservice correctly using Internet Explorer (so I guess my certificate is ok)
Thx you