Windows Phone 7 + WCF + SSL + username authentication

I developed a test service with WCF, which I am trying to use from a Windows Phone 7 application, however, when I call a method from a service, I get a strange exception:

There was no listening to the https: //server/Service.svc endpoints that could receive the message. This is often caused by an invalid address or SOAP action.

The WCF service uses custom binding with UserNameOverTransport and SSL authentication. For authorization, I use the implementation of UserNamePasswordValidator. If I try to use this service from the console or silverlight application (cross-domain policy is allowed) - it works fine (authorization also). And the strangest thing is that the ServiceReferences.ClientConfig file created for the WP7 application exactly matches the configuration file created for the silverlight application.

I do not know what is wrong with my service ...

+7
authentication windows-phone-7 wcf
source share
2 answers

First suggestion: do not assume that your service is to blame. WM7 SDK is far from error. I suggest writing a regular WPF, WinForms or console client to test your service to make sure that this is not a WM7 problem.

+3
source share

By the date of this question, it seems you have tested it in the emulator, and the emulator does not support HTTPS.

0
source share

All Articles