Hi Tian,
Thanks for looking at this.
1), no, I create a single instance and delete it only when the app closes
2) yes
3) Here is a condensation of the code:
m_pSUws = new CSmartUpdateT<CSoapSocketClientT<> > ();
m_pSUws->SetTimeout(30000);
if (m_dlgOptions.m_bUseProxy)
m_pSUws->SetProxy(NULL);
CAtlHttpClient& httpClient = m_pSUws->m_socket;
CNTLMAuthObject *authNTLM = new CNTLMAuthObject;
CSampleBasicAuth *authBASIC = new CSampleBasicAuth;
httpClient.AddAuthObj(_T("basic"), authBASIC,authBASIC);
httpClient.AddAuthObj(_T("NTLM"), authNTLM);
m_pSUws->CleanupClient();
HRESULT hres = m_pSUws>WebMethod1(..);
m_pSUws->CleanupClient();
hres = m_pSUws->WebMethod2(..);
m_pSUws->CleanupClient();
hres = m_pSUws->WebMethod3(..);
m_pSUws->CleanupClient();
hres = m_pSUws->WebMethod4(..);
m_pSUws->CleanupClient();
WebMethod 1 & 3 will succeed, 2 & 4 will fail.
The app fails to launch on Windows 98 clients, the implementation of
CNTLMAuthObject is linked to some missing exports in secure32.dll. The
HTTPClientSample also has this problem - there an update to the source that
fixes this?
Also, is there an example of how to do derive from CNTLMAuthObject when the
windows logon credentials fail the proxy authentication and the user should
be prompted to supply different ones?
Kind Regards,
Paul
[quoted text, click to view] "Tian Min Huang" <timhuang@online.microsoft.com> wrote in message
news:3dtQupHAEHA.320@cpmsftngxa06.phx.gbl...
> Hello Paul,
>
> Thanks for your post. As I understand, the problem you are facing is that
> your ATL client fails to call a web service on even number, and it works
> fine if you do not call CSoapSocketClientT::SetProxy. Please correct me if
> there is any misunderstanding. I think more information is needed before
> moving forward:
>
> 1. As I know, m_pSUws is an instance of the CSoapSocketClientT derived
> proxy class. Do you delete the m_pSUws object and create a new one for
each
> call?
>
> 2. Did you call CSoapSocketClientT::CleanupClient which should be called
to
> clean up the current request and response before making another request?
>
> 3. Is it possible to post a sample project and tell us the detailed steps
> to reproduce the problem? I will be glad to test it on my side.
>
> I look forward to your response.
>
> Regards,
>
> HuangTM
> Microsoft Online Partner Support
> MCSE/MCSD
>
> Get Secure! --
www.microsoft.com/security > This posting is provided "as is" with no warranties and confers no rights.
>