D
Dave Langley
I'm using VC++ to write an VC++ unmanaged client to communicate to a C#.NET
web service. I have the proxy class for the unmanaged client and it uses the
default CSoapSocketClientT<> template as it's HTTP connection. This works
fine until I start using a proxy server with authorization rather than a
direct HTTP connection. I keep getting a 407 un-authorized response. I've
have looked at both the CNTLMAuthObject and CBasicAuthObject objects in
combination with the NegotiateAuth method but have had no luck.
I have older VC++ clients that use the CInternetSession class and I'm able
to set the proxy server authorization using the:
pTSConnection->SetOption(INTERNET_OPTION_PROXY_USERNAME,strLoginName,
lstrlen (strLoginName)) ;
pTSConnection->SetOption(INTERNET_OPTION_PROXY_PASSWORD,strLoginPassword,
lstrlen (strLoginPassword)) ;
What I what is the CSoapSocketClientT<> equivalent of the
CInternetSession.SetOption(INTERNET_OPTION_PROXY_USERNAME) and
CInternetSession.SetOption(INTERNET_OPTION_PROXY_PASSWORD).
Best Regards,
Dave
web service. I have the proxy class for the unmanaged client and it uses the
default CSoapSocketClientT<> template as it's HTTP connection. This works
fine until I start using a proxy server with authorization rather than a
direct HTTP connection. I keep getting a 407 un-authorized response. I've
have looked at both the CNTLMAuthObject and CBasicAuthObject objects in
combination with the NegotiateAuth method but have had no luck.
I have older VC++ clients that use the CInternetSession class and I'm able
to set the proxy server authorization using the:
pTSConnection->SetOption(INTERNET_OPTION_PROXY_USERNAME,strLoginName,
lstrlen (strLoginName)) ;
pTSConnection->SetOption(INTERNET_OPTION_PROXY_PASSWORD,strLoginPassword,
lstrlen (strLoginPassword)) ;
What I what is the CSoapSocketClientT<> equivalent of the
CInternetSession.SetOption(INTERNET_OPTION_PROXY_USERNAME) and
CInternetSession.SetOption(INTERNET_OPTION_PROXY_PASSWORD).
Best Regards,
Dave