SetProxyServerOptions
Description
Sets the proxy address, user name, and password for the proxy
server.
Syntax
|
1 |
conn.SetProxyServerOptions (string optionstring) |
|
Argument |
Description |
||||
|---|---|---|---|---|---|
|
conn |
The name of the SoapConnection object that |
||||
|
optionstring |
A string containing comma-separated name/value
The
Specify |
Return value
Long.
Valid values are 0 for success, and 50 for failure.
Examples
This example specifies a user name and password, as well as the
proxy endpoint:
|
1 2 3 4 5 |
long ll_return string ls_string ls_string = "address='http://Srvr:8080/endpnt'," ls_string += "userID='MyName', password='mypass'" ll_return = Conn.SetProxyServerOptions (ls_string) |
Usage
Use this method or the SetProxyServer 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