Can not access Service after configuring Transport security
Hi,
I have a WCF service and endpoint is configured to BasicHTTP binding. When I reference it from EXCEL client using Add service reference, it works in this case, however, when I enable Transport security (HTTPS), and try to add service reference, it does not work.
Is this something that would not work or it should work? Please suggest some debugging steps
thanks,
Hiten
[405 byte] By [
Hiten] at [2008-1-5]
Can you further clarify "Does not worK" by maybe providing the text from your output window when you do try to add service reference (and include the actual URL you're putting in the add service reference dialog)...
Additionally, Do you have a server certificate installed on the service host machine?
I did that. Infact I am using WS samples came with MS windows SDK.
Steps I am performing.
Run Setup.bat
Run the service
When I go to Internet Explorer, I am getting the WSDL at http://localhost:8000/ServiceModelSamples/service?wsdl, however If i reference this URL in EXCEL using WebReference, I am not getting anything. It says "Search returned 0 results. refine your query and search again."
If I turned off the security (using Basic sample only) it works.
Any idea?
Yes, Certificate is installed properly and I can access the service from IE using https URL and WSDL using service.svc?wsdl, however when I try to use same in EXCEL and add web reference, it does not get the service... is it possible that EXCEL can not consume service that has transport security enabled? I mean SSL services?
It seems from your earlier post that you're trying to add the service using the HTTP address, not the HTTPS address. Assuming this is a typo, I'm still not getting what you're trying to do. How are you adding a web service reference to Excel? Perhaps this question would be better answered on the Excel forum?
Shy,
I was using HTTPS address, and since I had installed web service toolkit for office 2003, it had added an add-on to add we service reference where I can provide path to WSDL. The toolkit is creating the proxy code for me.
Anyways, I was able to connect to the service over HTTPS using https://... url, the problem was incorrect certificate configuration.
Thanks for the reply.