Welcome to MSDN Blogs Sign in | Join | Help

Darwin's Idle Times...

Living it up and Learning

Authenticating via Kerberos against a web service using a C++ client...

I just thought this information might assist in expediting your research into the matter.

When using the automatically generated proxy class template that is created when referencing a web service from a C++ client application, you may define the proxy as per the following example:-

Service::CServiceT<> svc;

The template uses the CSoapSocketClient class by default. This class only supports NTLM authentication with the web service.

If you require that the C++ client application to authenticate via Kerberos with the web service. Use the CSoapWininetClient as per the following example when declaring the proxy.

Service::CServiceT<CSoapWininetClient> svc;
CComBSTR str;
CoInitialize(NULL);
{
HRESULT res = svc.HelloWorld(&str.m_str);
this->MessageBox(str.m_str,0,0);
}
CoUninitialize();

The SecureSOAP Sample may assist you further with implementing a C++ client against a web service.

Published Wednesday, August 30, 2006 6:53 PM by darwin

Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
required 
(required) 
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker