Skip to main content
ATL Server Library Reference 
CSoapMSXMLInetClient::SetProxy 

Call this method to set the proxy used to connect to the XML Web service.


HRESULT SetProxy(
   LPCTSTR szProxy = NULL,
   short nProxyPort = 80 
);

Parameters

szProxy

The proxy server.

nProxyPort

The proxy port.

Returns S_OK on success, or an error HRESULT on failure.

This class provides a non-functional implementation of this method that always returns S_OK and traces a message in debug builds.

The ServerXMLHTTP component used by this class relies on the WinHTTP proxy settings.