Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add service reference
Message
De
25/10/2012 04:26:46
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Cryptographie
Versions des environnements
Environment:
C# 5.0
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MySQL
Application:
Web Service
Divers
Thread ID:
01555580
Message ID:
01555765
Vues:
35
>>>Hello,
>>>
>>>I need to add a service reference from a client, which requests a certificate to be installed on our computer.
>>>When I go to the service location using Internet Explorer, it asks me to select the certificate, and after doing so, the WSDL file shows.
>>>
>>>However when I try to add the service reference to the .NET project, it gives the following error message:
>>>
>>>The HTTP request was forbidden with client authentication scheme 'Anonymous'
>>>
>>>
>>>I can't find a way to link the certificate to the project so it allows me to add the service reference.
>>
>>You need to specify the credentials for the endpoint in the .config file.
>>See: .http://msdn.microsoft.com/en-us/library/ff648360.aspx
>
>Thanks, this documentation seems to be similar as to what I am looking for, but after "Create a Test Client", under Add a WCF Service Reference to the Client, that is where it fails for me already, because the service cannot be added, the "HTTP request was forbidden" messages appears at that time. So I can't configure the service, because it never gets added. I have the feeling that I somehow need to tell the project which keys to use, but I can't find how to do this.

Ah. I see. When I use 'add a service reference' to a uri that requires credentials I get prompted to provide them - at least for those requiring Windows authentication. Don't have access to a uri requiring certificates but I would have hoped that would be the same. What version of VS are you using?

You could try saving the wsdl from IE and using SvcUtil.exe against it but it may be that it needs to import additional namespace info from the server which would fail.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform