Hi,
We have an on premise WCF REST service hosted on IIS 8.5. The application pool for the service is set as follows:
StartMode=AlwaysRunning
AutoStart=true
The system.applicationHost/sites configuration has the following settings for the service:
preLoadEnabled=true
serviceAutoStartEnabled=true
When deploying the WCF service without any security, the autostart feature works and the relay endpoint is automatically created in service bus:
<webHttpBinding>
<binding name="webHttpBindingConfig">
<security mode="None">
</security>
</binding>
</webHttpBinding>
However, when we change the configuration to use Transport security with a certificate, the relay is NOT created automatically:
<webHttpBinding>
<binding name="webHttpBindingConfig">
<security mode="Transport">
<transport clientCredentialType="Certificate">
</transport>
</security>
</binding>
</webHttpBinding>
We have to invoke the service manually by requesting it through the browser and then the relay is created in service bus. Although we have enabled SSL on the IIS server and added it to the endpoint address as below, we do not see the relay created with HTTPS:
<endpoint address="https://<hostname>.fabrikam.com/service/test.svc" binding="webHttpBinding" bindingConfiguration="webHttpBindingConfig" contract="System.Data.Services.IRequestHandler" name="webHttpBinding" />
Are we missing something here or does the binding have to be a TCP binding in order for the service bus to create an HTTPS relay endpoint over port 9351 as stated in this article:
http://stackoverflow.com/questions/11106169/is-https-supported-with-connectivitymode-http-on-the-azure-servicebus
Thanks for your help.