axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Silva <falexsan...@inbox.com>
Subject Proxy Configuration
Date Tue, 02 Oct 2007 16:14:52 GMT
Hi People!!!!

Reading some tutorials at wso2 and others, i've found some code how to configure proxy and
ntlm, but my doubt is how i bind or set the options in the connection at the client ?
i will show and example:

The Proxy Auth code:

Options options = new Options();
 
HttpTransportProperties.Authenticator
   auth = new HttpTransportProperties.Authenticator();
auth.setUsername("username");
auth.setPassword("password");
// set if realm or domain is known

options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE, auth);

The WS connection:
ConfigurationContext ccObject = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null
, null);
WSServiceStub wsObject = new WSServiceStub(ccObject, _strEndPoint);


Which is the code that make the wsObject know about the proxy ?

Thanks in advance!

Flávio

____________________________________________________________
KEEP SPYWARE OFF YOUR COMPUTER - Protect your computer with Spyware Terminator!
Visit http://www.spywareterminator.com/install and find out more!

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message