SetProxyServer
Description
Sets the address, port, user name, and password for the proxy
server. This method has two syntaxes.
Syntax
|
1 2 |
conn.SetProxyServer (string address, string userID, string password) conn.SetProxyServer (string hostname, long port, string userID, string password) |
|
Argument |
Description |
||
|---|---|---|---|
|
conn |
The name of the SoapConnection object that |
||
|
address |
A string containing the host name address and port
|
||
|
hostname |
A string containing the host name |
||
|
port |
A long for the proxy server port |
||
|
userID |
A string containing the user ID for the proxy |
||
|
password |
A string containing the proxy server |
Return value
Long.
Valid values are 0 for success, and 50 for failure.
Examples
This example uses the four-argument syntax of
SetProxyServer:
|
1 2 3 |
long ll_return ll_return = Conn.SetProxyServer & ("http://myProxyServer",8080, "My Name", "My Pass") |
Usage
This method does the same thing as the
SetProxyServerOptions method, but it has a different syntax.
Use this method or the SetProxyServerOptions method if the proxy
server requires authentication. The user ID and password that you supply
with the SetOptions or other authentication methods apply to the URL of
the Web service, not the proxy server.
See also