Last post Aug 27, 2019 07:47 AM by Abraham Qian
Aug 23, 2019 12:11 PM|Zefek|LINK
I would like to ask you if you can give me some advices how to setup WSDL on https. We have WCF web service on IIS7 which is configured to use http. Https is redirected by ARR server. So client goes through https and ARR server route the request to inner
site with http. It means wsdl is generated on http environment and it contains endpoints with http. We can change endpoint in web.config to https and it works. But only for endpoint (address location). But there are types\schema\import elements with schemaLocation
attribute which holds http url. We need change it to correct behavior of client application. How to do it?
Aug 23, 2019 12:54 PM|mgebhard|LINK
This is an IIS configuration question. Simply install a certificate and configure the IIS application that hosts the WCF service to use HTTPS. Also, you can configure WCF to only provide mex and wsdl over HTTP.
Aug 27, 2019 07:47 AM|Abraham Qian|LINK
If we want to publish WCF WSDL on https, the general way is to set up the service metadata behavior, and specify an HTTP base address in the IIS site binding module, in which a certificate is required.
<serviceMetadata httpsGetEnabled="true" httpGetEnabled="true" />
Feel free to let me know if there is anything I can help with.