Dave Godbey created HTTPCLIENT-1363:
---------------------------------------

             Summary: 4.3 deprecations break NTLMv2 EWS system
                 Key: HTTPCLIENT-1363
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1363
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.3 Beta1
         Environment: Fedora 15, java 1.6.0_30
            Reporter: Dave Godbey


Below find the code:

  private String getWsdl() {
    String soap = null;
    try {
      String localIp = Inet4Address.getLocalHost().getHostAddress();
      HttpHost httpHost = new HttpHost(_host, 443, "https");
      ClientConnectionManager ccm = new BasicClientConnectionManager();
      HttpParams params = new BasicHttpParams();
      HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
      HttpProtocolParams.setContentCharset(params, "UTF-8");
      HttpProtocolParams.setUseExpectContinue(params, true);
      _httpclient = new DefaultHttpClient(ccm);
      _httpclient.getCredentialsProvider().setCredentials(new 
AuthScope(httpHost), new NTCredentials(_user, _password, localIp, _domain));

      AuthCache authCache = new BasicAuthCache();

      NTLMSchemeFactory nsf = new NTLMSchemeFactory();
      AuthScheme authScheme = nsf.newInstance(params);
      authCache.put(httpHost, authScheme);

// Add AuthCache to the execution context
      BasicHttpContext localcontext = new BasicHttpContext();
      localcontext.setAttribute(ClientContext.AUTH_CACHE, authCache);

      HttpGet http = new HttpGet(_serviceEndpoint);

      _httpHost = httpHost;
      _localcontext = localcontext;
      HttpResponse response = _httpclient.execute(httpHost, http, localcontext);
      HttpEntity entity = response.getEntity();
      if (entity != null) {
        System.out.println("Content length: "+entity.getContentLength());
        soap = EntityUtils.toString(entity);
      }
      EntityUtils.consume(entity);

  //      HttpParams params = 
((DefaultHttpClient)_httpclient).createHttpParams();
  //      System.out.println(params);
    } catch (Throwable e) {
      throw new RuntimeException(e);
    } finally {
    }
    return soap;
  }

// Wirelog for HC 4.2 Works fine
2013/06/03 11:27:30:451 CDT [DEBUG] BasicClientConnectionManager - Get 
connection for route {s}->https://myhost:443
2013/06/03 11:27:30:453 CDT [DEBUG] DefaultClientConnectionOperator - 
Connecting to myhost:443
2013/06/03 11:27:30:961 CDT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2013/06/03 11:27:30:962 CDT [DEBUG] RequestAuthCache - Re-using cached 'ntlm' 
auth scheme for https://myhost:443
2013/06/03 11:27:30:962 CDT [DEBUG] RequestTargetAuthentication - Target auth 
state: SUCCESS
2013/06/03 11:27:30:963 CDT [DEBUG] RequestProxyAuthentication - Proxy auth 
state: UNCHALLENGED
2013/06/03 11:27:30:963 CDT [DEBUG] DefaultHttpClient - Attempt 1 to execute 
request
2013/06/03 11:27:30:963 CDT [DEBUG] DefaultClientConnection - Sending request: 
POST /ews/Exchange.asmx HTTP/1.1
2013/06/03 11:27:30:964 CDT [DEBUG] headers - >> POST /ews/Exchange.asmx 
HTTP/1.1
2013/06/03 11:27:30:964 CDT [DEBUG] headers - >> content-type: 
text/xml;charset="utf-8"
2013/06/03 11:27:30:964 CDT [DEBUG] headers - >> soapaction: 
http://schemas.microsoft.com/exchange/services/2006/messages/FindItem
2013/06/03 11:27:30:965 CDT [DEBUG] headers - >> accept: text/xml, 
multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2013/06/03 11:27:30:965 CDT [DEBUG] headers - >> user-agent: JAX-WS RI 2.1.6 in 
JDK 6
2013/06/03 11:27:30:965 CDT [DEBUG] headers - >> connection: keep-alive
2013/06/03 11:27:30:965 CDT [DEBUG] headers - >> Content-Length: 1788
2013/06/03 11:27:30:966 CDT [DEBUG] headers - >> Host: myhost:443
2013/06/03 11:27:31:020 CDT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 401 Unauthorized
2013/06/03 11:27:31:021 CDT [DEBUG] headers - << HTTP/1.1 401 Unauthorized
2013/06/03 11:27:31:022 CDT [DEBUG] headers - << Server: Microsoft-IIS/7.5
2013/06/03 11:27:31:023 CDT [DEBUG] headers - << Set-Cookie: 
exchangecookie=fb44918436184fb2aa6c4361f5acef8f; expires=Tue, 03-Jun-2014 
16:27:31 GMT; path=/; HttpOnly
2013/06/03 11:27:31:024 CDT [DEBUG] headers - << WWW-Authenticate: Negotiate
2013/06/03 11:27:31:025 CDT [DEBUG] headers - << WWW-Authenticate: NTLM
2013/06/03 11:27:31:025 CDT [DEBUG] headers - << X-Powered-By: ASP.NET
2013/06/03 11:27:31:026 CDT [DEBUG] headers - << Date: Mon, 03 Jun 2013 
16:27:31 GMT
2013/06/03 11:27:31:027 CDT [DEBUG] headers - << Content-Length: 0
2013/06/03 11:27:31:029 CDT [DEBUG] ResponseProcessCookies - Cookie accepted: 
"[version: 0][name: exchangecookie][value: 
fb44918436184fb2aa6c4361f5acef8f][domain: myhost][path: /][expiry: Tue Jun 03 
11:27:31 CDT 2014]". 
2013/06/03 11:27:31:029 CDT [DEBUG] DefaultHttpClient - Connection can be kept 
alive indefinitely
2013/06/03 11:27:31:030 CDT [DEBUG] TargetAuthenticationStrategy - Clearing 
cached auth scheme for https://myhost:443
2013/06/03 11:27:31:030 CDT [DEBUG] DefaultHttpClient - Authentication required
2013/06/03 11:27:31:030 CDT [DEBUG] DefaultHttpClient - myhost:443 requested 
authentication
2013/06/03 11:27:31:031 CDT [DEBUG] TargetAuthenticationStrategy - 
Authentication schemes in the order of preference: [negotiate, Kerberos, NTLM, 
Digest, Basic]
2013/06/03 11:27:31:031 CDT [DEBUG] SPNegoScheme - Received challenge '' from 
the auth server
2013/06/03 11:27:31:031 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Kerberos authentication scheme not available
2013/06/03 11:27:31:032 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Digest authentication scheme not available
2013/06/03 11:27:31:032 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Basic authentication scheme not available
2013/06/03 11:27:31:033 CDT [DEBUG] DefaultHttpClient - Selected authentication 
options: [NEGOTIATE, NTLM]
2013/06/03 11:27:31:033 CDT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2013/06/03 11:27:31:034 CDT [DEBUG] RequestAddCookies - Cookie [version: 
0][name: exchangecookie][value: fb44918436184fb2aa6c4361f5acef8f][domain: 
myhost][path: /][expiry: Tue Jun 03 11:27:31 CDT 2014] match 
[(secure)myhost:443/ews/Exchange.asmx]
2013/06/03 11:27:31:035 CDT [DEBUG] RequestTargetAuthentication - Target auth 
state: CHALLENGED
2013/06/03 11:27:31:035 CDT [DEBUG] RequestTargetAuthentication - Generating 
response to an authentication challenge using Negotiate scheme
2013/06/03 11:27:31:035 CDT [DEBUG] SPNegoScheme - init myhost:443
2013/06/03 11:27:31:172 CDT [WARN] RequestTargetAuthentication - NEGOTIATE 
authentication error: No valid credentials provided (Mechanism level: No valid 
credentials provided (Mechanism level: Failed to find any Kerberos tgt))
2013/06/03 11:27:31:172 CDT [DEBUG] RequestTargetAuthentication - Generating 
response to an authentication challenge using ntlm scheme
2013/06/03 11:27:31:173 CDT [DEBUG] RequestProxyAuthentication - Proxy auth 
state: UNCHALLENGED
2013/06/03 11:27:31:173 CDT [DEBUG] DefaultHttpClient - Attempt 2 to execute 
request
2013/06/03 11:27:31:174 CDT [DEBUG] DefaultClientConnection - Sending request: 
POST /ews/Exchange.asmx HTTP/1.1
2013/06/03 11:27:31:174 CDT [DEBUG] headers - >> POST /ews/Exchange.asmx 
HTTP/1.1
2013/06/03 11:27:31:175 CDT [DEBUG] headers - >> content-type: 
text/xml;charset="utf-8"
2013/06/03 11:27:31:175 CDT [DEBUG] headers - >> soapaction: 
http://schemas.microsoft.com/exchange/services/2006/messages/FindItem
2013/06/03 11:27:31:175 CDT [DEBUG] headers - >> accept: text/xml, 
multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2013/06/03 11:27:31:176 CDT [DEBUG] headers - >> user-agent: JAX-WS RI 2.1.6 in 
JDK 6
2013/06/03 11:27:31:176 CDT [DEBUG] headers - >> connection: keep-alive
2013/06/03 11:27:31:176 CDT [DEBUG] headers - >> Content-Length: 1788
2013/06/03 11:27:31:176 CDT [DEBUG] headers - >> Host: myhost:443
2013/06/03 11:27:31:177 CDT [DEBUG] headers - >> Cookie: 
exchangecookie=fb44918436184fb2aa6c4361f5acef8f
2013/06/03 11:27:31:177 CDT [DEBUG] headers - >> Cookie2: $Version=1
2013/06/03 11:27:31:177 CDT [DEBUG] headers - >> Authorization: NTLM 
TlRMTVNTUAABAAAAAYIIogAAAAAoAAAAAAAAACgAAAAFASgKAAAADw==
2013/06/03 11:27:31:230 CDT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 401 Unauthorized
2013/06/03 11:27:31:230 CDT [DEBUG] headers - << HTTP/1.1 401 Unauthorized
2013/06/03 11:27:31:231 CDT [DEBUG] headers - << Server: Microsoft-IIS/7.5
2013/06/03 11:27:31:231 CDT [DEBUG] headers - << WWW-Authenticate: NTLM 
TlRMTVNTUAACAAAABgAGADgAAAAFgomiezUwtOQ5WqwAAAAAAAAAAJwAnAA+AAAABgGxHQAAAA9OAEQAQwACAAYATgBEAEMAAQAUAE4ARABNAFMAQwBIAFQAMQAwADMABAAYAG4AZABjAC4AbgBhAHMAYQAuAGcAbwB2AAMALgBOAEQATQBTAEMASABUADEAMAAzAC4AbgBkAGMALgBuAGEAcwBhAC4AZwBvAHYABQAYAG4AZABjAC4AbgBhAHMAYQAuAGcAbwB2AAcACAD2rBA/d2DOAQAAAAA=
2013/06/03 11:27:31:231 CDT [DEBUG] headers - << WWW-Authenticate: Negotiate
2013/06/03 11:27:31:232 CDT [DEBUG] headers - << X-Powered-By: ASP.NET
2013/06/03 11:27:31:232 CDT [DEBUG] headers - << Date: Mon, 03 Jun 2013 
16:27:31 GMT
2013/06/03 11:27:31:232 CDT [DEBUG] headers - << Content-Length: 0
2013/06/03 11:27:31:233 CDT [DEBUG] DefaultHttpClient - Connection can be kept 
alive indefinitely
2013/06/03 11:27:31:233 CDT [DEBUG] DefaultHttpClient - Authentication required
2013/06/03 11:27:31:233 CDT [DEBUG] DefaultHttpClient - myhost:443 requested 
authentication
2013/06/03 11:27:31:234 CDT [DEBUG] DefaultHttpClient - Authorization challenge 
processed
2013/06/03 11:27:31:234 CDT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2013/06/03 11:27:31:235 CDT [DEBUG] RequestAddCookies - Cookie [version: 
0][name: exchangecookie][value: fb44918436184fb2aa6c4361f5acef8f][domain: 
myhost][path: /][expiry: Tue Jun 03 11:27:31 CDT 2014] match 
[(secure)myhost:443/ews/Exchange.asmx]
2013/06/03 11:27:31:236 CDT [DEBUG] RequestTargetAuthentication - Target auth 
state: HANDSHAKE
2013/06/03 11:27:31:239 CDT [DEBUG] RequestProxyAuthentication - Proxy auth 
state: UNCHALLENGED
2013/06/03 11:27:31:240 CDT [DEBUG] DefaultHttpClient - Attempt 3 to execute 
request
2013/06/03 11:27:31:240 CDT [DEBUG] DefaultClientConnection - Sending request: 
POST /ews/Exchange.asmx HTTP/1.1
2013/06/03 11:27:31:241 CDT [DEBUG] headers - >> POST /ews/Exchange.asmx 
HTTP/1.1
2013/06/03 11:27:31:241 CDT [DEBUG] headers - >> content-type: 
text/xml;charset="utf-8"
2013/06/03 11:27:31:241 CDT [DEBUG] headers - >> soapaction: 
http://schemas.microsoft.com/exchange/services/2006/messages/FindItem
2013/06/03 11:27:31:242 CDT [DEBUG] headers - >> accept: text/xml, 
multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2013/06/03 11:27:31:242 CDT [DEBUG] headers - >> user-agent: JAX-WS RI 2.1.6 in 
JDK 6
2013/06/03 11:27:31:242 CDT [DEBUG] headers - >> connection: keep-alive
2013/06/03 11:27:31:242 CDT [DEBUG] headers - >> Content-Length: 1788
2013/06/03 11:27:31:243 CDT [DEBUG] headers - >> Host: myhost:443
2013/06/03 11:27:31:243 CDT [DEBUG] headers - >> Cookie: 
exchangecookie=fb44918436184fb2aa6c4361f5acef8f
2013/06/03 11:27:31:243 CDT [DEBUG] headers - >> Cookie2: $Version=1
2013/06/03 11:27:31:244 CDT [DEBUG] headers - >> Authorization: NTLM 
TlRMTVNTUAADAAAAGAAYAEgAAADMAMwAYAAAAAYABgAsAQAAJAAkADIBAAAGAAYAVgEAAAAAAABcAQAABYKIogUBKAoAAAAPsnNdr7skDT5ccy9zWZohrFGyoiwsrkIBOyz8dHpNfD41ZU0kARq64AEBAAAAAAAAUAXdPndgzgFwZPtMOQFVmAAAAAACAAYATgBEAEMAAQAUAE4ARABNAFMAQwBIAFQAMQAwADMABAAYAG4AZABjAC4AbgBhAHMAYQAuAGcAbwB2AAMALgBOAEQATQBTAEMASABUADEAMAAzAC4AbgBkAGMALgBuAGEAcwBhAC4AZwBvAHYABQAYAG4AZABjAC4AbgBhAHMAYQAuAGcAbwB2AAcACAD2rBA/d2DOAQAAAAAAAAAATgBEAEMASABRAC0ATgBBAFMAQQAtAEkAQwBFAC0AVABlAHMAdABlAHIAMQAyADcA
2013/06/03 11:27:31:344 CDT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 200 OK
2013/06/03 11:27:31:345 CDT [DEBUG] headers - << HTTP/1.1 200 OK
2013/06/03 11:27:31:346 CDT [DEBUG] headers - << Cache-Control: private
2013/06/03 11:27:31:346 CDT [DEBUG] headers - << Transfer-Encoding: chunked
2013/06/03 11:27:31:347 CDT [DEBUG] headers - << Content-Type: text/xml; 
charset=utf-8
2013/06/03 11:27:31:347 CDT [DEBUG] headers - << Server: Microsoft-IIS/7.5
2013/06/03 11:27:31:347 CDT [DEBUG] headers - << X-AspNet-Version: 2.0.50727
2013/06/03 11:27:31:348 CDT [DEBUG] headers - << Persistent-Auth: true
2013/06/03 11:27:31:348 CDT [DEBUG] headers - << X-Powered-By: ASP.NET
2013/06/03 11:27:31:348 CDT [DEBUG] headers - << Date: Mon, 03 Jun 2013 
16:27:31 GMT
2013/06/03 11:27:31:351 CDT [DEBUG] DefaultHttpClient - Connection can be kept 
alive indefinitely
2013/06/03 11:27:31:352 CDT [DEBUG] DefaultHttpClient - Authentication succeeded
Content length: -1
2013/06/03 11:27:39:612 CDT [DEBUG] BasicClientConnectionManager - Releasing 
connection org.apache.http.impl.conn.ManagedClientConnectionImpl@1455d1c
2013/06/03 11:27:39:613 CDT [DEBUG] BasicClientConnectionManager - Connection 
can be kept alive indefinitely
2013/06/03 11:31:30:811 CDT [DEBUG] DefaultClientConnection - Connection 
0.0.0.0:22865<->192.168.1.1:443 closed

// EWS return successful XML packet
<?xml version="1.0" encoding="utf-8"?><s:Envelope 
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";><s:Header><h:ServerVersionInfo
 MajorVersion="14" MinorVersion="2" MajorBuildNumber="328" MinorBuildNumber="9" 
Version="Exchange2010_SP2" 
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"; 
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"/></s:Header><s:Body 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";><m:FindItemResponse 
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"; 
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types";><m:ResponseMessages><m:FindItemResponseMessage
 ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode><m:RootFolder 
TotalItemsInView="0" 
IncludesLastItemInRange="true"><t:Items/></m:RootFolder></m:FindItemResponseMessage></m:ResponseMessages></m:FindItemResponse></s:Body></s:Envelope>



// Wirelog for HC 4.3 client 4.3-beta1, core 4.3-beta2 
2013/06/03 11:34:35:794 CDT [DEBUG] BasicClientConnectionManager - Get 
connection for route {s}->https://myhost:443
2013/06/03 11:34:35:795 CDT [DEBUG] DefaultClientConnectionOperator - 
Connecting to myhost:443
2013/06/03 11:34:36:309 CDT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2013/06/03 11:34:36:309 CDT [DEBUG] RequestAuthCache - Re-using cached 'ntlm' 
auth scheme for https://myhost:443
2013/06/03 11:34:36:310 CDT [DEBUG] RequestTargetAuthentication - Target auth 
state: SUCCESS
2013/06/03 11:34:36:310 CDT [DEBUG] RequestProxyAuthentication - Proxy auth 
state: UNCHALLENGED
2013/06/03 11:34:36:310 CDT [DEBUG] DefaultHttpClient - Attempt 1 to execute 
request
2013/06/03 11:34:36:311 CDT [DEBUG] DefaultClientConnection - Sending request: 
POST /ews/Exchange.asmx HTTP/1.1
2013/06/03 11:34:36:311 CDT [DEBUG] headers - >> POST /ews/Exchange.asmx 
HTTP/1.1
2013/06/03 11:34:36:311 CDT [DEBUG] headers - >> content-type: 
text/xml;charset="utf-8"
2013/06/03 11:34:36:312 CDT [DEBUG] headers - >> soapaction: 
http://schemas.microsoft.com/exchange/services/2006/messages/FindItem
2013/06/03 11:34:36:312 CDT [DEBUG] headers - >> accept: text/xml, 
multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2013/06/03 11:34:36:312 CDT [DEBUG] headers - >> user-agent: JAX-WS RI 2.1.6 in 
JDK 6
2013/06/03 11:34:36:313 CDT [DEBUG] headers - >> connection: keep-alive
2013/06/03 11:34:36:313 CDT [DEBUG] headers - >> Content-Length: 1788
2013/06/03 11:34:36:313 CDT [DEBUG] headers - >> Host: myhost:443
2013/06/03 11:34:36:313 CDT [DEBUG] headers - >> Expect: 100-continue
2013/06/03 11:34:36:367 CDT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 401 Unauthorized
2013/06/03 11:34:36:367 CDT [DEBUG] headers - << HTTP/1.1 401 Unauthorized
2013/06/03 11:34:36:367 CDT [DEBUG] headers - << Server: Microsoft-IIS/7.5
2013/06/03 11:34:36:368 CDT [DEBUG] headers - << Set-Cookie: 
exchangecookie=84f382e9ac4f450b8dbd2945d03f8d89; expires=Tue, 03-Jun-2014 
16:34:36 GMT; path=/; HttpOnly
2013/06/03 11:34:36:368 CDT [DEBUG] headers - << WWW-Authenticate: Negotiate
2013/06/03 11:34:36:368 CDT [DEBUG] headers - << WWW-Authenticate: NTLM
2013/06/03 11:34:36:369 CDT [DEBUG] headers - << X-Powered-By: ASP.NET
2013/06/03 11:34:36:369 CDT [DEBUG] headers - << Date: Mon, 03 Jun 2013 
16:34:36 GMT
2013/06/03 11:34:36:369 CDT [DEBUG] headers - << Content-Length: 0
2013/06/03 11:34:36:371 CDT [DEBUG] ResponseProcessCookies - Cookie accepted: 
"[version: 0][name: exchangecookie][value: 
84f382e9ac4f450b8dbd2945d03f8d89][domain: myhost][path: /][expiry: Tue Jun 03 
11:34:36 CDT 2014]". 
2013/06/03 11:34:36:372 CDT [DEBUG] DefaultHttpClient - Connection can be kept 
alive indefinitely
2013/06/03 11:34:36:372 CDT [DEBUG] DefaultHttpClient - Authentication required
2013/06/03 11:34:36:372 CDT [DEBUG] DefaultHttpClient - myhost:443 requested 
authentication
2013/06/03 11:34:36:373 CDT [DEBUG] TargetAuthenticationStrategy - 
Authentication schemes in the order of preference: [negotiate, Kerberos, NTLM, 
Digest, Basic]
2013/06/03 11:34:36:373 CDT [DEBUG] SPNegoScheme - Received challenge '' from 
the auth server
2013/06/03 11:34:36:374 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Kerberos authentication scheme not available
2013/06/03 11:34:36:374 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Digest authentication scheme not available
2013/06/03 11:34:36:374 CDT [DEBUG] TargetAuthenticationStrategy - Challenge 
for Basic authentication scheme not available
2013/06/03 11:34:36:375 CDT [DEBUG] DefaultHttpClient - Selected authentication 
options: [NEGOTIATE, NTLM]
2013/06/03 11:34:36:376 CDT [DEBUG] RequestAddCookies - CookieSpec selected: 
best-match
2013/06/03 11:34:36:377 CDT [DEBUG] RequestAddCookies - Cookie [version: 
0][name: exchangecookie][value: 84f382e9ac4f450b8dbd2945d03f8d89][domain: 
myhost][path: /][expiry: Tue Jun 03 11:34:36 CDT 2014] match 
[(secure)myhost:443/ews/Exchange.asmx]
2013/06/03 11:34:36:377 CDT [DEBUG] RequestTargetAuthentication - Target auth 
state: CHALLENGED
2013/06/03 11:34:36:377 CDT [DEBUG] RequestTargetAuthentication - Generating 
response to an authentication challenge using Negotiate scheme
2013/06/03 11:34:36:378 CDT [DEBUG] SPNegoScheme - init myhost:443
2013/06/03 11:34:36:462 CDT [WARN] RequestTargetAuthentication - NEGOTIATE 
authentication error: No valid credentials provided (Mechanism level: No valid 
credentials provided (Mechanism level: Failed to find any Kerberos tgt))
2013/06/03 11:34:36:462 CDT [DEBUG] RequestTargetAuthentication - Generating 
response to an authentication challenge using ntlm scheme
2013/06/03 11:34:36:463 CDT [DEBUG] RequestProxyAuthentication - Proxy auth 
state: UNCHALLENGED
2013/06/03 11:34:36:463 CDT [DEBUG] DefaultHttpClient - Attempt 2 to execute 
request
2013/06/03 11:34:36:463 CDT [DEBUG] DefaultClientConnection - Sending request: 
POST /ews/Exchange.asmx HTTP/1.1
2013/06/03 11:34:36:464 CDT [DEBUG] headers - >> POST /ews/Exchange.asmx 
HTTP/1.1
2013/06/03 11:34:36:464 CDT [DEBUG] headers - >> content-type: 
text/xml;charset="utf-8"
2013/06/03 11:34:36:464 CDT [DEBUG] headers - >> soapaction: 
http://schemas.microsoft.com/exchange/services/2006/messages/FindItem
2013/06/03 11:34:36:465 CDT [DEBUG] headers - >> accept: text/xml, 
multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
2013/06/03 11:34:36:465 CDT [DEBUG] headers - >> user-agent: JAX-WS RI 2.1.6 in 
JDK 6
2013/06/03 11:34:36:465 CDT [DEBUG] headers - >> connection: keep-alive
2013/06/03 11:34:36:466 CDT [DEBUG] headers - >> Content-Length: 1788
2013/06/03 11:34:36:466 CDT [DEBUG] headers - >> Host: myhost:443
2013/06/03 11:34:36:466 CDT [DEBUG] headers - >> Expect: 100-continue
2013/06/03 11:34:36:466 CDT [DEBUG] headers - >> Cookie: 
exchangecookie=84f382e9ac4f450b8dbd2945d03f8d89
2013/06/03 11:34:36:467 CDT [DEBUG] headers - >> Cookie2: $Version=1
2013/06/03 11:34:36:467 CDT [DEBUG] headers - >> Authorization: NTLM 
TlRMTVNTUAABAAAAAYIIogAAAAAoAAAAAAAAACgAAAAFASgKAAAADw==
2013/06/03 11:34:39:536 CDT [DEBUG] DefaultClientConnection - Receiving 
response: HTTP/1.1 400 Bad Request
2013/06/03 11:34:39:536 CDT [DEBUG] headers - << HTTP/1.1 400 Bad Request
2013/06/03 11:34:39:537 CDT [DEBUG] headers - << Content-Type: text/html; 
charset=us-ascii
2013/06/03 11:34:39:537 CDT [DEBUG] headers - << Server: Microsoft-HTTPAPI/2.0
2013/06/03 11:34:39:537 CDT [DEBUG] headers - << Date: Mon, 03 Jun 2013 
16:34:39 GMT
2013/06/03 11:34:39:538 CDT [DEBUG] headers - << Connection: close
2013/06/03 11:34:39:538 CDT [DEBUG] headers - << Content-Length: 326
2013/06/03 11:34:39:541 CDT [DEBUG] DefaultHttpClient - Authentication succeeded
Content length: 326
2013/06/03 11:34:57:509 CDT [DEBUG] BasicClientConnectionManager - Releasing 
connection org.apache.http.impl.conn.ManagedClientConnectionImpl@831a91
2013/06/03 11:34:57:511 CDT [DEBUG] BasicClientConnectionManager - Connection 
can be kept alive indefinitely
2013/06/03 11:35:27:468 CDT [DEBUG] DefaultClientConnection - Connection 
0.0.0.0:45376<->192.168.1.1:443 closed

// EWS Server returned HTML, and not XML! Process unsuccessful.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01//EN""http://www.w3.org/TR/html4/strict.dtd";>

<HTML><HEAD><TITLE>Bad Request</TITLE>

<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>

<BODY><h2>Bad Request - Invalid Verb</h2>

<hr><p>HTTP Error 400. The request verb is invalid.</p>

</BODY></HTML>




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to