469,142 Members | 1,109 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,142 developers. It's quick & easy.

Accessing Secured web service from C#.net Client

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
1 4740
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.

Similar topics

2 posts views Thread by =?Utf-8?B?TWFoZXNoIFJlZGR5?= | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.