Axis2: Proxy Credentials and 
Authentication?http://marc.info/?l=axis-user&m=115952880103441&w=2
associate AuthPolicy.NTLM into the collection of authenticationPreferences
then set the parameters of the httpClient to use your new 
authenticationPrefereences collection
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  ----- Original Message ----- 
  From: Rudolph, Troy 
  To: [email protected] 
  Sent: Monday, April 23, 2007 12:10 PM
  Subject: Axis2: Proxy Credentials and Authentication?


  Hello All, 

  I am a bit confused about proxy authentication in Axis2.  (I'm using 1.1.1.)  

  In my code I have created a HttpTransportProperties.ProxyProperties object 
and set the options with it.  See below. 

          HttpTransportProperties.ProxyProperties pp 
              = new HttpTransportProperties.ProxyProperties(); 
          pp.setProxyName( proxyhost ); 
          pp.setProxyPort( proxyport ); 
          pp.setDomain( domain ); 
          pp.setUserName( user ); 
          pp.setPassWord( pass ); 
          Options o = stub._getServiceClient().getOptions(); 
          o.setProperty( HTTPConstants.PROXY, pp ); 

  The client does attempt to use the proxy, but fails when NTLM authentication 
is attempted.  I need to do basic authentication.

  I *think* I need to create an instance of 
HttpTransportProperties.Authenticator specifying BASIC authentication and set 
the options with that.  What confuses me is that the Authenticator class also 
contains credentials.  Do I need to put credentials there too?  

  Or, is the some other way to force basic authentication on the client side? 

  Thanks very much 

  Troy Rudolph 
  Computer Associates 
  Senior Software Engineer 
  tel: +1 512 401-2273 
  fax: +1 512 401-2205 
  [EMAIL PROTECTED] 


Reply via email to