J'ai regardé autour des questions ici pour voir si quelque chose de similaire a déjà été résolu. Je n'ai pas encore trouvé de solution alors j'espère que quelqu'un pourra m'aider et me diriger dans la bonne direction.WCF svcutil Erreur: Impossible d'obtenir les métadonnées de localhost
J'ai un service et je peux naviguer avec succès vers la page svc sur mon localhost.
https://localhost/WebSite/UploadService/UploadService.svc
Cela fonctionne comme prévu tout comme l'affichage du fichier WSDL en annexant? Wsdl à l'URL.
Toutefois, je ne peux pas générer le proxy client à l'aide de svcutil.
svcutil.exe https://localhost/Website/UploadService/UploadService.svc?wsdl
Quand je lance cette commande je reçois l'habitude
Attempting to download metadata from ' https://localhost/Website/UploadService/UploadService.svc ' using WS-Metadata Exc hange or DISCO. Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.2152] Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from https://localhost/Website/UploadService/UploadService.svc
WS-Metadata Exchange Error URI: https://localhost/Website/UploadService/UploadService.svc
Metadata contains a reference that cannot be resolved:
' https://localhost/Website/UploadService/UploadService.svc ' . Could not establish trust relationship for the SSL/TLS secure channel with authority 'localhost'. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.
HTTP GET Error URI: https://localhost/Website/UploadService/UploadService.svc There was an error downloading ' https://localhost/Website/UploadService/UploadService.svc '. The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure.
Je suis allé this post et essayé ce qu'il décrit. Le nom du serveur est cohérent après avoir suivi ces suggestions, mais je ne parviens toujours pas à générer les fichiers proxy du client.