I am trying to incorporate security into my Web Service. I am attempting to
have my client (MFC C++) connect to my .net Web Service (C#) in a secure
manner. The first thing I am doing is trying to obtain a certificate:
//First action to do is to retrieve a certificate that will be added to the
X509CertificateStore *store =
X509CertificateCollection *col =
if( col->Count == 0 )
X509Certificate* cert = col->get_Item(0);
X509SecurityToken* x509st = new X509SecurityToken(cert);
However, I receive the following error:
error C3828: 'Microsoft::Web::Services::Security::X509SecurityToken':
placement arguments not allowed while creating instances of managed classes
Could someone give me any pointers as to what I am doign wrong? Or if
possible, send me some code snippets on how to do this in MFC C++?
Thanks for any help offered!