RE: ClientCertificates and SoapWebRequest



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Jason,
\par
\par Welcome again!
\par AS for the SoapWebRequest component you mentioned, it seems a old component in the WSE 1.0 and currently we are not recommended to use it since we have new components and models in the wse2.0 and the comming WSE 3.0.
\par
\par Also, as for client side certificate, it is mainly used for transport level security over HTTP like SSL/TLS. For WSE, it is mainly used for Message Level security (do message securing at the SOAP message level rather than the transport layer like HTTP). So for such scenario that you'd like to use SSL/TLS that required client certificate, you can use the .NET's buildin webservide proxy which derived from SoapHttpClientProtocol or the WSE2.0's default proxy which derived from
\par WebServciesClientProtocol
\par
\par Thanks,
\par
\par Steven Cheng
\par Microsoft Online Support
\par
\par Get Secure! www.microsoft.com/security
\par (This posting is provided "AS IS", with no warranties, and confers no rights.)
\par
\par
\par \pard\li720 --------------------
\par From: <jason.chen@xxxxxxxxxxxxxxxxx>
\par Subject: ClientCertificates and SoapWebRequest
\par Date: Tue, 11 Oct 2005 23:32:06 -0400
\par Lines: 14
\par X-Priority: 3
\par X-MSMail-Priority: Normal
\par X-Newsreader: Microsoft Outlook Express 6.00.3790.326
\par X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326
\par Message-ID: <OW7aG2tzFHA.3312@xxxxxxxxxxxxxxxxxxxx>
\par Newsgroups: microsoft.public.dotnet.framework.webservices
\par NNTP-Posting-Host: a7cebc03.cst.lightpath.net 167.206.188.3
\par Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
\par Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.framework.webservices:12346
\par X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
\par
\par Hi I'm having a problem with SoapWebRequest, basically I'm trying to use a
\par client certificate to access a webservice. normally HttpWebRequest exposes a
\par ClientCertificates property, so that I can load a client certificate and add
\par to this property and everything will just work. but I'm using SoapWebRequest
\par since I'm accessing a webservice, and SoapWebRequest does not expose a
\par ClientCertificates property that I could use.
\par
\par how can I use a client certificate to access a webservice using
\par SoapWebRequest?
\par
\par thanks,
\par -Jason
\par
\par
\par \pard
\par
\par }