I have a WCF that has two endpoints, one for https one for http.
In java I access this service by typing in something like this:
How will this work now that there are two endpoints? Does simply changing it from http to https in the address change the endpoint? Or is there something more I need to do.
Endpoint defines address exposed for remote calls. If you have two endpoints (one for HTTP and one for HTTPS) with default address defined (empty) your service will be exposed on:
But it doesn’t mean that metadata will be exposed on both http and https as well. Metadata are exposed on separate Mex endpoints which again must be either for HTTP or HTTPS. Accessing Metadata through browser requires enabling
serviceMetadatabehaviour which provides separate propertieshttpGetEnabledandhttpsGetEnabledto allow accessing ?wsdl address from HTTP and HTTPS.