SoapConnection:
SetProxyServerOptions method
Description
Sets the proxy address, user name, and password for the proxy
server.
Syntax
1 |
<span>conn</span>.<span>SetProxyServerOptions</span> (string <span>optionstring</span>) |
Argument |
Description |
||||
---|---|---|---|---|---|
conn |
The name of the SoapConnection object |
||||
optionstring |
A string containing comma-separated name/value
The address is required and can have a format such as:
Specify values for userID and password if the proxy server |
Return Values
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 |
long ll_return |
1 |
string ls_string |
1 |
ls_string = "address='http://Srvr:8080/endpnt',"<br>ls_string += "userID='MyName', password='mypass'"<br>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.