Cannot add Endpoint WCF service if the URL is HTTPS

  • 7 December 2017
  • 3 replies
  • 57 views

Userlevel 3
Badge +16

Hi,

 

Anyone got any ideas about this plz?

 

Had a previously working Endpoint WCF Service added using HTTP, but the server it runs on has recently been changed and is now running on HTTPS.

 

So i naturally went into the tester tool and edited the instance. I changed the Service Endpoint URL - required to Https, but when i do next and UPDATE, i get an erros saying "Service Endpoint does not exist"....

 

If i browse to the URL is comes up fine, so i know the server and service can be reached.

 

So why is the tester tool not allowing me to use HTTPS?

 

Thanks

 


3 replies

Userlevel 5
Badge +18

The Endpoints WCF service instance have two required Service Keys:


 


Service Endpoint URL - Required


Service Metadata URL - Required


 


Was the 'Service Metatadata URL - Required' also updated to HTTPS?

Userlevel 3
Badge +16

Hiya Tin,

 

Yeah i updated both fields to HTTPS. If you update the service, only the Metadata one is accepted.

If i change the top one to HTTPS, then it says invalid and won't update.

Userlevel 5
Badge +18

I believe the protocol (HTTP/HTTPS), can be configured at two layers:


 


1.  The IIS binding


2.   The Web service contract


 


* Perhaps the IIS HTTPS binding exist but the Web service contract is still HTTP, or vise versa


** I believe the WSDL definition may indicated which endpoint is available (HTTP or HTTPS)


 


Perhaps this is also related:


https://stackoverflow.com/questions/3876955/wcf-service-returns-404-over-https-but-not-http

Reply