By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,631 Members | 826 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,631 IT Pros & Developers. It's quick & easy.

Accessing Secured web service from C#.net Client

P: n/a
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

Feb 5 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.Cre ateFromCertFile("your.cert"));

"vi********@gmail.com" wrote:
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

Feb 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.