Description
Use the SoapConnection object's SetProxyServerOptions function to set the proxy address, user name, and password for the proxy server when it requires authentication. The user ID and password you can supply with the SetOptions function apply to the URL of the service, not the proxy server.
Usage
The syntax is:
where conn is the name of the SoapConnection object, and optionstring is a string containing comma-separated name/value pairs. The format is:
"address='proxy_endpoint'{, userID='name', password='password' }"
You can also specify a user ID and password for the proxy server by setting the http_proxy environment variable. The syntax is:
For JSP Web services, you specify a user ID and password by setting Java system properties before calling the service:
System.setProperty( "proxySet", "true" ); System.setProperty( "http.proxyHost", "host" ); System.setProperty( "http.proxyPort", "port" ); System.setProperty("http.proxyUser", "userID"); System.setProperty("http.proxyPassword", "password");
Example
This example specifies a user name and password, as well as the proxy endpoint:
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)
|