I am very new to WCF, and I created a service that will be used through the Windows mobile application using basicHttpBinding. Now I am looking at how to implement encrpytion and authenticaion, and I'm not very far away.
I added the following configuration of my server service (which I believe is correct):
<basicHttpBinding> <binding name="SecurityByTransport"> <security mode="TransportWithMessageCredential"> <message clientCredentialType="UserName" /> <transport clientCredentialType="Certificate" /> </security> </binding> </basicHttpBinding>
Now, after installing the temporary certificate on my IIS instance, I can go to my service through https.
At this point, I used the visual studios built into the tool to run svcutil.exe and generated my proxy server, which connects perfectly.
I have a problem in the client configuration, because the link to the endpoint uses http, not https. If I change this, I get the following error:
The provided URI scheme 'https' is invalid; expected 'http'.
Which, obviously, I do not want.
Also in my client configuration, the specified security seems "None", is this correct?
wcf
Owen
source share