Hello,
I am developing VC application (ATL), that communicates with web service, with NTLM authentication.
following is the code sinppet i have,
Auth Object derived from IAuthInfo to supply user,passwd information.
However, i receive HTTP 1.1 401 (Unauthorized access). error....
Service pservice;
AuthObj auth;
USES_CONVERSION;
CNTLMAuthObject authNTLM;
pservice.SetUrl(_T("http://localhost/contactsweb/service.asmx"));
authNTLM.SetAuthInfo(&auth);
CAtlHttpClient & httpClient = pservice.m_socket;
httpClient.AddAuthObj(_T("NTLM"), &authNTLM , &auth);
pservice.CleanupClient();
bool val = httpClient.NegotiateAuth(true);
CComBSTR hello;
HRESULT hr = pservice.HelloWorld(&hello);
Can anyone point what is that i am doing wrong here?
Did anyone try similar thing, is there any problem with CNTLMAuthObject itself?
What are te other libraries available to use ?
Thanks in adance
Srinivas.