469,903 Members | 1,790 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Accessing Web Service through a Proxy.

Hello,

I have an unmanaged VC7 app (ActiveX control implemented using MFC)
calling a C# dotnet service. I'm using the VS2003 generated proxy
class derived from CSoapSocketClientT. The activeX control works fine
but when used through a proxy that requires authentication I end up
getting 407 error. I tried using authentication schemes as suggested in
most of the threads.

CAtlHttpClient& httpClient = webserviceInst.m_socket;
CSampleBasicAuth basicAuth;
httpClient.AddAuthObj(_T("BASIC"), &basicAuth, &basicAuth);
CNTLMAuthObject ntlmAuth;
httpClient.AddAuthObj(_T("NTLM"),&ntlmAuth);
httpClient.NegotiateAuth(true);

webserviceInst is the CSoapSocketClientT derived proxy class. Am I on
the right track with this?

Also if I use only basic authentication and have the user enter his
credentials it works fine. But with this combination of authentication
schemes NTLM and BASIC the NTLM authentication fails and somehow basic
authentication is not carried out after that..

Is there any way in which I could read the Internet Explorer
credentials and use them while accessing the webservice maybe using (
CSoapWininetClient ) . As the the idea of basic authentication and the
activex plug-in asking users for credentials would not be correct?

Please suggest me an appropriate way in which this isue can be
resolved.

Thanks in Advance,
Punit.

Feb 24 '06 #1
0 1039

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bruce Farmer | last post: by
1 post views Thread by Nestor | last post: by
1 post views Thread by =?Utf-8?B?Tmljaw==?= | last post: by
reply views Thread by martin.tittensor | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.