I have a Cloud Service running over SSL on Azure; I can browse to the service and get its wsdl over SSL but when I do the soap address location is returned incorrectly - instead of using the domain name bound to the certificate I get the server name
< soap:address location="http:// rd00155d45cc3c/Amazon.svc"/>
I am expecting to see
< soap:address location="https://azure.mydomain.com/Amazon.svc"/>
My config
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="AzureBinding">
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<services>
<service name="MyService">
<endpoint address="" binding="basicHttpBinding"
contract="StudentServiceWCF.IAmazon"
bindingConfiguration="AzureBinding" />
<endpoint address="mex" binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
My app.config client endpoint is configured
<endpoint address="https://azure.mydomain.com/Amazon.svc"
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IOutOfDateSecure"
contract="AzureService.IAmazon" name="BasicHttpBinding_IAmazon" />
<binding name="BasicHttpBinding_IAmazon">
<security mode="Transport" />
</binding>
I don't know how to affect the address location so it uses the domain name from my certificate. Because it's returning the http location the test client is throwing an exception:
The HTTP service located at http:// rd00155d45cc3c/Amazon.svc is unavailable