all groups > dotnet web services > february 2006 >
You're in the

dotnet web services

group:

Accessing Secured web service from C#.net Client


Accessing Secured web service from C#.net Client vineet.jsl NO[at]SPAM gmail.com
2/5/2006 4:09:10 AM
dotnet web services:
Hello Everybody,

i am facing some problem in accessing secured web service. i have some
experience with web services but not with Secured web services.
Actually what i have to do is, first, i made a windows application to
access a web service. its running fine. But later, the web service
provider changed the web service into Secured web service. and they
have given me a "echoserviceclient.cert" Certificate file. now i dont
know what the hell i have to do with this Certificate.
plz describe me how to use this certificate file with my windows
application Code. so that i can use that secured web service.
i searched about this on net so i came to know that i have to use WSE.
i installed it on my system. but again i dont know what i have to do
with this certificate and how to apply it in our code.

Plz Help me soon...

Thanx and Regards,
Vineet
RE: Accessing Secured web service from C#.net Client Rodrigo García
2/5/2006 11:58:27 PM
If that file is a client certificate (as it looks), you just have to add it
to the ClientCertificates property of your proxy class.

service.ClientCertificates.Add(X509Certificate.CreateFromCertFile("your.cert"));

[quoted text, click to view]
AddThis Social Bookmark Button