Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 24th, 2006, 08:05 AM
Punit
Guest
 
Posts: n/a
Default 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.

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles