SetProxyServerOptions
\The Sandbox \PB History & Future \New In PB 9 \New In PB 9.0.1 \SetProxy ServerOptions
XP Look & Feel
PBNI Support
for Any
PBXDraw
VisualObject
PBNI
Source Files
SetProxy
ServerOptions
Heap Manager
Included
Hiding the JSP
Page View
Menu Options
Select Painters
New Excel
Save Format
DBParm: PBNew
SPInvocation
Additional
9.0.1 Changes

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:

    conn.SetProxyServerOptions (string optionstring)

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:

    set http_proxy = “{protocol://}{userID{:password}@}host{:port}{/path}

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)

PBL Peeper PB Help PB History
& Future About Us Feedback Site Map

Google
 
Web www.techno-kitten.com
www.sybase.com