Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF: myservice.svc?wsdl shows "You have created a service.", not WSDL?

I've created a WCF service with a wsHttpBinding and a mexHttpBinding. When running on http in IIS6, the myservice.svc shows the usual "You have created a service." page. myservice.svc?wsdl shows XML containing WSDL.

I changed from <security mode="None"> to <security mode="Transport"> and now I try reaching the same service using https. myservice.svc still shows "You have created a service." But myservice.svc?wsdl also shows "You have created a service."

What am I doing wrong?

The service still works (made a client when using http, and changed to https afterwards). But VS cannot generate a new client using https, probably because the ?wsdl page is broken.

like image 299
Martin Ørding-Thomsen Avatar asked Feb 18 '11 13:02

Martin Ørding-Thomsen


1 Answers

In serviceMetadata behavior you must set httpsGetEnabled to true.

like image 168
Ladislav Mrnka Avatar answered Nov 10 '22 05:11

Ladislav Mrnka