Oleg, Wow, you have a proxy client? I should give that a look. Anirban: My problem was this: 1. My JAXWS client for the EWS service does not manage authentication because JAXWS itself does not manage authentication. 2. To authenticate, I used java.net.Authenticator. However, the Authenticator does not support NTLMv2.
My solution was this: 1. Created a local endpoint (servlet) for the JAXWS client instead of the EWS service (EWS endpoint is SSL with NTLMv2). 2. The servlet (using HttpClient 4.2) received the raw SOAP request and the list of headers. 3. Using httpclient (4.2) pack up a post with the SOAP request, bring over the relevant headers, and send the post to the EWS endpoint. 4. The servlet succeeds and receives the SOAP response that it then returns to the JAXWS client. With that, I am back in business. Oleg, Can I remove my local endpoint servlet, return the JAXWS client to point directly to the EWS SSL NTLMv2 service, and set java -D directives to specify an authenticating proxy that I will build from HttpClient ProxyClient? Can this work? Dave -----Original Message----- From: Oleg Kalnichevski [mailto:ol...@apache.org] Sent: Thursday, October 11, 2012 11:07 AM To: HttpClient User Discussion Subject: Re: Issue with NTLM proxy authentication over Https On Thu, 2012-10-11 at 16:44 +0530, anir ......... wrote: > Hi Dave, > > Thanks for your reply but i can't use the cron job in my present > environment . > I was looking for some workaround (if any) using httpClient itself. > Moreover this is a pretty generalized code for all AuthSchemes and so > i don't want to break the uniformity. > Thanks for your help . > > Regards, > Anirban > Anirban NTLM scheme is significantly more complex that basic or digest schemes and requires a sequence of three request / response exchanges over a persistent connection. You probably should consider using ProxyClient provided with HttpClient as of release 4.2 or take up on Dave's offer. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org