axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhatra, Junaid" <jbha...@rsasecurity.com>
Subject RE: Axis2 NTLM Authentication over Https on WebSphere
Date Thu, 27 Sep 2007 18:27:03 GMT
It looks like the connection is being closed and a new one is used
during the NTLM authentication: 

 

 

________________________________

From: Praveen Palwai [mailto:palwaipraveen@gmail.com] 
Sent: Thursday, September 27, 2007 12:41 PM
To: axis-user@ws.apache.org
Subject: Axis2 NTLM Authentication over Https on WebSphere

 

Hi,

I am having problems in running an axis2 1.3 client on websphere 5.1
(ibm jdk 1.4.1) that tries to access exchange server 2007 web services
API running on IIS using NTLM authentication scheme. I am getting 401
Error: Unauthorized. Even though I am running it in websphere, I am
using sun jsse 1.0.3. I have included the jsse.jar, jcert.jar and
jnet.jar and changed the classloader to PARENT-LAST. Also, can some one
tell me why is basic authentication is being used first even though I
set the authentication preference to NTLM. The same code works fine when
I run it on Glassfish V1 using sun jdk1.5.0_12. Below is the stack trace
and the code:

 

[9/27/07 10:47:53:511 CDT] 1a1be3a2 WebGroup      I SRVE0180I:
[ExchangeServerWeb] [/ExchangeServerWeb] [Servlet.LOG]:
ExchangeServerTestServlet: init
DEBUG [Servlet.Engine.Transports : 0] (Loader.java:132) - Trying to find
[org/apache/axis2/deployment/axis2_default.xml] using 
com.ibm.ws.classloader.CompoundClassLoader@c063a2 
   Local ClassPath:
C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\classes;C:\wsad_w
orkspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axiom-api-1.2.5.jar;C:
\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axiom-impl-1.2.
5.jar
;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\axis2-kernel
-1.3.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\comm
ons-codec-1.3.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF
\lib\commons-
httpclient-3.0.1.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-
INF\lib\commons-logging-1.1.jar;C:\wsad_workspace\ExchangeServerWeb\WebC
ontent\WEB-INF\lib\jcert.jar;C:\wsad_workspace\ExchangeServerWeb\WebCont
ent\WEB-INF\lib\jnet.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\
WEB-INF\lib\jsse.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-
INF\lib\log4j-
1.2.14.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib\st
ax-api-1.0.1.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\
lib\wsdl4j-1.6.2.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-
INF\lib\wstx-
asl-3.2.1.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent\WEB-INF\lib
\XmlSchema-1.3.2.jar;C:\wsad_workspace\ExchangeServerWeb\WebContent;
   Delegation Mode: PARENT_LAST class loader.
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:191) -
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
RequestURIBasedDispatcher added to Phase Transport
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
SOAPActionBasedDispatcher added to Phase Transport
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
AddressingBasedDispatcher added to Phase Addressing
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
RequestURIBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
SOAPActionBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
RequestURIOperationDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
SOAPMessageBodyBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
HTTPLocationBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
AddressingBasedDispatcher added to Phase Addressing
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
RequestURIBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
SOAPActionBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
RequestURIOperationDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
SOAPMessageBodyBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:96) - Handler
HTTPLocationBasedDispatcher added to Phase Dispatch
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action: anonRobustOp;
operation:
org.apache.axis2.description.RobustOutOnlyAxisOperation@73d423ba 
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action:
urn:anonRobustOp; operation:
org.apache.axis2.description.RobustOutOnlyAxisOperation@73d423ba 
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action:
anonOutonlyOp; operation:
org.apache.axis2.description.OutOnlyAxisOperation@1d7ca3ba 
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action:
urn:anonOutonlyOp; operation:
org.apache.axis2.description.OutOnlyAxisOperation@1d7ca3ba 
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action: anonOutInOp;
operation: org.apache.axis2.description.OutInAxisOperation@3e7623ba 
DEBUG [Servlet.Engine.Transports : 0] (AxisService.java:716) -
mapActionToOperation: Mapping Action to Operation: action:
urn:anonOutInOp; operation:
org.apache.axis2.description.OutInAxisOperation@3e7623ba 
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:265) -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:265) -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
<m:GetFolder
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShap
e><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:Dist
inguishedFolderId
<http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:Fol
derShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3
E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></
t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder> 
DEBUG [Servlet.Engine.Transports : 0] (OutInAxisOperation.java:162) -
Entry: OutInAxisOperationClient::execute, true
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking pre-condition for Phase "OperationOutPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking phase "OperationOutPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking post-conditions for phase "OperationOutPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking pre-condition for Phase "RMPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking phase "RMPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking post-conditions for phase "RMPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking pre-condition for Phase "PolicyDetermination"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking phase "PolicyDetermination"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking post-conditions for phase "PolicyDetermination"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking pre-condition for Phase "MessageOut"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking phase "MessageOut"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking post-conditions for phase "MessageOut"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:269) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking pre-condition for Phase "Security"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:282) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking phase "Security"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:303) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Checking post-conditions for phase "Security"
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.useragent = Jakarta Commons-HttpClient/3.0.1
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.protocol.version = HTTP/1.1
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.connection-manager.class = class
org.apache.commons.httpclient.SimpleHttpConnectionManager
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.protocol.cookie-policy = rfc2109
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.protocol.element-charset = US-ASCII
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.protocol.content-charset = ISO-8859-1
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.method.retry-handler =
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@c4363a7 
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz,
EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy
HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE
dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy
HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z,
EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy
HH:mm:ss z]
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:71).null(Unknown
Source) - Java version: 1.4.1
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:72).null(Unknown
Source) - Java vendor: IBM Corporation
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:73).null(Unknown
Source) - Java class path: E:\Program Files\IBMWebSphere
Studio\Application
Developer\v5.1.1\runtimes\base_v51/properties;E:\Program
Files\IBMWebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/properties;E:\Program
Files\IBMWebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/bootstrap.jar;E:\Program
Files\IBMWebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/j2ee.jar;E:\Program
Files\IBMWebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/lmproxy.jar;E:\Program
Files\IBMWebSphere Studio\Application
Developer\v5.1.1\runtimes\base_v51/lib/urlprotocols.jar;K:\Common\CENTRY
2\jars\joltjse.jar;K:\Common\CENTRY2\jars\jolt.jar;E:\User
Profiles\n66506\Desktop\jsse1.0.3_04\lib\jcert.jar;E:\User
Profiles\n66506\Desktop\jsse1.0.3_04\lib\jnet.jar;E:\User
Profiles\n66506\Desktop\jsse1.0.3_04\lib\jsse.jar;E:/Program
Files/IBMWebSphere Studio/Application
Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.
common_5.1.1/runtime/wteServers.jar;E:/Program Files/IBMWebSphere
Studio/Application
Developer/v5.1.1/wstools/eclipse/plugins/com.ibm.etools.websphere.tools.
common_5.1.1/runtime/wasToolsCommon.jar
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:74).null(Unknown
Source) - Operating system name: Windows 2000
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:75).null(Unknown
Source) - Operating system architecture: x86
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:76).null(Unknown
Source) - Operating system version: 5.0
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - IBMJCE 1.2: IBMJCE Provider implements the following:
HMAC-SHA1, MD2, MD5, MARS, SHA, MD2withRSA, MD5withRSA, SHA1withRSA,
RSA, SHA1withDSA, RC2, RC4, Seal)implements the following:
Signature algorithms               : SHA1withDSA, SHA1withRSA,
MD5withRSA, MD2withRSA 
Cipher algorithms                  : Blowfish, AES, DES, TripleDES,
PBEWithMD2AndDES, 
                                       PBEWithMD2AndTripleDES,
PBEWithMD2AndRC2, 
                                       PBEWithMD5AndDES,
PBEWithMD5AndTripleDES, 
                                       PBEWithMD5AndRC2,
PBEWithSHA1AndDES 
                                       PBEWithSHA1AndTripleDES,
PBEWithSHA1AndRC2 
                                       PBEWithSHAAnd40BitRC2,
PBEWithSHAAnd128BitRC2 
                                       PBEWithSHAAnd40BitRC4,
PBEWithSHAAnd128BitRC4 
                                       PBEWithSHAAnd2KeyTripleDES,
PBEWithSHAAnd3KeyTripleDES 
                                       Mars, RC2, RC4, 
                                       RSA, Seal
Message authentication code (MAC)  : HmacSHA1, HmacMD2, HmacMD5
Key agreement algorithm            : DiffieHellman
Key (pair) generator               : Blowfish, DiffieHellman, DSA, AES,
DES, TripleDES, HmacMD5,
                                       HmacSHA1, Mars, RC2, RC4, RSA,
Seal
Message digest                     : MD2, MD5, SHA-1
Algorithm parameter generator      : DiffieHellman, DSA
Algorithm parameter                : Blowfish, DiffieHellman, AES, DES,
TripleDES, DSA, Mars,
                                       PBEwithMD5AndDES, RC2
Key factory                        : DiffieHellman, DSA, RSA
Secret key factory                 : Blowfish, AES, DES, TripleDES,
Mars, RC2, RC4, Seal
                                       PKCS5Key, PBKDF1 and
PBKDF2(PKCS5Derived Key).
Certificate                        : X.509
Secure random                      : IBMSecureRandom
Key store                          : JCEKS, PKCS12KS (PKCS12), JKS

 

DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - IBMJSSE 1.41: IBM JSSE provider
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - IBMJGSSProvider 1.01: IBMJGSSProvider supports Kerberos V5
Mechanism
DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - IBMCertPath 1.0: IBMCertPath Provider implements the
following:
CertificateFactory                : X.509
CertPathValidator              : PKIX
CertStore                      : Collection, LDAP
CertPathBuilder                : PKIX

 

DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - IBMPKCS11 1.2: IBMPKCS11 Provider implements the following:
MD2withRSA, MD5withRSA, SHA1withRSA, RSA, SHA1withDSA)implements the
following:
Signature algorithms               : SHA1withDSA, SHA1withRSA,
MD5withRSA, MD2withRSA 
Key (pair) generator               : DSA, RSA
Algorithm parameter generator      : DSA
Algorithm parameter                : DSA
Certificate                        : X.509
Secure random                      : IBMSecureRandom
Key store                          : PKCS11 (PKCS11KS)

 

DEBUG [Servlet.Engine.Transports : 0] (HttpClient.java:81).null(Unknown
Source) - SunJSSE 1.0304: Sun JSSE provider(implements RSA Signatures,
PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.connection.timeout = 30000
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.socket.timeout = 30000
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.socket.timeout = 30000
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:122) -
contentType from the OMOutputFormat =text/xml
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:137) -
contentType returned =text/xml; charset=UTF-8
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.authentication.preemptive = true
DEBUG [Servlet.Engine.Transports : 0] (DefaultHttpParams.java:150) - Set
parameter http.auth.scheme-priority = [NTLM]
DEBUG [Servlet.Engine.Transports : 0]
(MultiThreadedHttpConnectionManager.java:390) -
HttpConnectionManager.getConnection:  config =
HostConfiguration[host=https://host <https://host/> ], timeout = 0
DEBUG [Servlet.Engine.Transports : 0]
(MultiThreadedHttpConnectionManager.java:739) - Allocating new
connection, hostConfig=HostConfiguration[host=https://host
<https://host/> ]
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:160) -
Preemptively sending default basic credentials
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
Authenticating with BASIC <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
Credential charset not configured, using HTTP element charset
DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
connection to host:443
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "POST
/EWS/exchange.asmx HTTP/1.1[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) -
Adding Host request header
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "Content-Type:
text/xml; charset=UTF-8[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "SOAPAction: "
http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[
\r][\n
<http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%
22%5B%5Cr%5D%5B%5Cn> ]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "User-Agent:
Axis2[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >>
"Authorization: Basic bjY2NTA2OnBwNjUwNg==[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "Host:
host[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >>
"Transfer-Encoding: chunked[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
start writeTo()
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
preserve=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
isOptimized=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
isDoingSWA=false
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) -
end writeTo()
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "22c[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:83) - >> "<?xml
version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>
<m:GetFolder
<http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:G
etFolder>
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShap
e><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:Dist
inguishedFolderId
<http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:Fol
derShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3
E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></
t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapen
v:Body></soapenv:Envelope>" 
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:83) - >> "0"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
Request body sent
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "HTTP/1.1 401
Unauthorized[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"Content-Length: 1656[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Content-Type:
text/html[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Server:
Microsoft-IIS/6.0[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"WWW-Authenticate: Negotiate[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"WWW-Authenticate: NTLM[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "X-Powered-By:
ASP.NET[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "Date: Thu, 27
Sep 2007 15:47:56 GMT[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
Authorization required
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:89) -
Supported authentication schemes in the order of preference: [NTLM]
 INFO [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:100)
- NTLM authentication scheme selected
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154)
- Using authentication scheme: ntlm
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162)
- Authorization challenge processed
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
Authentication scope: NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:193) -
Retry authentication
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<!DOCTYPE
HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">[\r][\n
<http://www.w3.org/TR/html4/strict.dtd%22%3E%5B%5Cr%5D%5B%5Cn> ]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"<HTML><HEAD><TITLE>You are not authorized to view this
page</TITLE>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<META
HTTP-EQUIV="Content-Type" Content="text/html;
charset=Windows-1252">[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<STYLE
type="text/css">[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  BODY {
font: 8pt/12pt verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  H1 { font:
13pt/15pt verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  H2 { font:
8pt/12pt verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  A:link {
color: red }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "  A:visited {
color: maroon }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"</STYLE>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - <<
"</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<h1>You are
not authorized to view this page</h1>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "You do not
have permission to view this directory or page using the credentials
that you supplied because your Web browser is sending a WWW-Authenticate
header field that the Web server is not configured to accept.[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<hr>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<p>Please try
the following:</p>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (Wire.java:69) - << "<ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Contact the Web
site administrator if you believe you should be able to view this
directory or page.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Click the <a
href="javascript:location.reload()">Refresh</a> button to try again with
different cred"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "entials.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h2>HTTP Error 401.2 -
Unauthorized: Access is denied due to server configuration.<br>Internet
Information Services (IIS)</h2>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Technical
Information (for support personnel)</p>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Go to <a
href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft
<http://go.microsoft.com/fwlink/?linkid=8180%22%3EMicrosoft> Product
Support Services</a> and perform a title search for the words
<b>HTTP</b> and <b>401</b>.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Open <b>IIS
Help</b>, which is accessible in IIS Manager (inetmgr),[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << " and search for topics
titled <b>About Security</b>, <b>Authentication</b>, and <b>About Custom
Error Messages</b>.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - <<
"</TD></TR></TABLE></BODY></HTML>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:921) -
Resorting to protocol version default close connection policy
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:925) - Should
NOT close connection, using HTTP/1.1
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
Authenticating with NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
Credential charset not configured, using HTTP element charset
DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:431) -
Connection is stale, closing...
DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
connection to host:443
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "POST
/EWS/exchange.asmx HTTP/1.1[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) -
Adding Host request header
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Content-Type:
text/xml; charset=UTF-8[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "SOAPAction:
"http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"
[\r][\n
<http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%
22%5B%5Cr%5D%5B%5Cn> ]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "User-Agent:
Axis2[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Transfer-Encoding:
chunked[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Authorization: NTLM
TlRMTVNTUAABAAAABlIAAAsACwA0AAAAFAAUACAAAABBTUxBQkozMS5OVEQuTldBLkNPTU5X
QV9OVF9URVNU[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Host: host[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
start writeTo()
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
preserve=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
isOptimized=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
isDoingSWA=false
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) -
end writeTo()
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "22c[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "<?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:GetFolder
<http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:G
etFolder>
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShap
e><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:Dist
inguishedFolderId
<http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:Fol
derShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3
E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></
t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapen
v:Body></soapenv:Envelope>" 
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "0"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
Request body sent
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "HTTP/1.1 401
Unauthorized[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Length:
1539[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Type:
text/html[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Server:
Microsoft-IIS/6.0[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate: NTLM
TlRMTVNTUAACAAAACwALADgAAAAGAoECjzMP1hMsrO8AAAAAAAAAAJIAkgBDAAAABQLODgAA
AA9OV0FfTlRfVEVTVAIAFgBOAFcAQQBfAE4AVABfAFQARQBTAFQAAQAQAEEATQBMAEEAQgBK
ADMAMQAEABYAbgB0AGQALgBuAHcAYQAuAGMAbwBtAAMAKABhAG0AbABhAGIAagAzADEALgBu
AHQAZAAuAG4AdwBhAC4AYwBvAG0ABQAWAG4AdABkAC4AbgB3AGEALgBjAG8AbQAAAAAA[\r]
[\n]" 
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "X-Powered-By:
ASP.NET[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Date: Thu, 27 Sep 2007
15:47:56 GMT[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
Authorization required
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154)
- Using authentication scheme: ntlm
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162)
- Authorization challenge processed
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
Authentication scope: NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:193) -
Retry authentication
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">[\r][\n
<http://www.w3.org/TR/html4/strict.dtd%22%3E%5B%5Cr%5D%5B%5Cn> ]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<HTML><HEAD><TITLE>You
are not authorized to view this page</TITLE>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<META
HTTP-EQUIV="Content-Type" Content="text/html;
charset=Windows-1252">[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<STYLE
type="text/css">[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  BODY { font:
8pt/12pt verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  H1 { font: 13pt/15pt
verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  H2 { font: 8pt/12pt
verdana }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  A:link { color: red
}[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "  A:visited { color:
maroon }[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</STYLE>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</HEAD><BODY><TABLE
width=500 border=0 cellspacing=10><TR><TD>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h1>You are not
authorized to view this page</h1>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "You do not have
permission to view this directory or page using the credentials that you
supplied.[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Please try the
following:</p>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Contact the Web
site administrator if you believe you should be able to view this
directory or page.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Click the <a
href="javascript:location.reload()">Refresh</a> button to try again with
different credentials.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<h2>HTTP Error 401.1 -
Unauthorized: Access is denied due to invalid credentials.<br>Internet "
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Information Services
(IIS)</h2>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<hr>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<p>Technical
Information (for support personnel)</p>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Go to <a
href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft
<http://go.microsoft.com/fwlink/?linkid=8180%22%3EMicrosoft> Product
Support Services</a> and perform a title search for the words
<b>HTTP</b> and <b>401</b>.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "<li>Open <b>IIS
Help</b>, which is accessible in IIS Manager (inetmgr),[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << " and search for topics
titled <b>Authentication</b>, <b>Access Control</b>, and <b>About Custom
Error Messages</b>.</li>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "</ul>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - <<
"</TD></TR></TABLE></BODY></HTML>[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:921) -
Resorting to protocol version default close connection policy
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:925) - Should
NOT close connection, using HTTP/1.1
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:277) -
Authenticating with NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodParams.java:355) -
Credential charset not configured, using HTTP element charset
DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:431) -
Connection is stale, closing...
DEBUG [Servlet.Engine.Transports : 0] (HttpConnection.java:691) - Open
connection to host:443
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "POST
/EWS/exchange.asmx HTTP/1.1[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodBase.java:1235) -
Adding Host request header
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Content-Type:
text/xml; charset=UTF-8[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "SOAPAction:
"http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"
[\r][\n
<http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder%
22%5B%5Cr%5D%5B%5Cn> ]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "User-Agent:
Axis2[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Transfer-Encoding:
chunked[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Authorization: NTLM
TlRMTVNTUAADAAAAGAAYAGUAAAAAAAAAfQAAAAsACwBAAAAABgAGAEsAAAAUABQAUQAAAAAA
AAB9AAAABlIAAE5XQV9OVF9URVNUTjY2NTA2QU1MQUJKMzEuTlRELk5XQS5DT00bcJhHJS9a
iP0QF0sIUbTWj2hpOR7Sfq0=[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "Host: host[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:49) -
start writeTo()
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:50) -
preserve=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:51) -
isOptimized=false
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:52) -
isDoingSWA=false
DEBUG [Servlet.Engine.Transports : 0] (StAXUtils.java:251) -
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter
DEBUG [Servlet.Engine.Transports : 0] (SOAPMessageFormatter.java:75) -
end writeTo()
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "22c[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "<?xml version='1.0'
encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:GetFolder
<http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoapenv:Body%3E%3Cm:G
etFolder>
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages "
xmlns:t="
http://schemas.microsoft.com/exchange/services/2006/types"><m:FolderShap
e><t:BaseShape>Default</t:BaseShape></m:FolderShape><m:FolderIds><t:Dist
inguishedFolderId
<http://schemas.microsoft.com/exchange/services/2006/types%22%3E%3Cm:Fol
derShape%3E%3Ct:BaseShape%3EDefault%3C/t:BaseShape%3E%3C/m:FolderShape%3
E%3Cm:FolderIds%3E%3Ct:DistinguishedFolderId>
Id="inbox"><t:Mailbox><t:EmailAddress>email@email.com</t:EmailAddress></
t:Mailbox></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soapen
v:Body></soapenv:Envelope>" 
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "0"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - >> "[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (EntityEnclosingMethod.java:504) -
Request body sent
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "HTTP/1.1 401
Unauthorized[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Length:
1539[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Content-Type:
text/html[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Server:
Microsoft-IIS/6.0[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate:
Negotiate[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "WWW-Authenticate:
NTLM[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "X-Powered-By:
ASP.NET[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (?:?) - << "Date: Thu, 27 Sep 2007
15:47:56 GMT[\r][\n]"
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:840) -
Authorization required
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:154)
- Using authentication scheme: ntlm
DEBUG [Servlet.Engine.Transports : 0] (AuthChallengeProcessor.java:162)
- Authorization challenge processed
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:709) -
Authentication scope: NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:858) -
Credentials required
DEBUG [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:876) -
Credentials provider not available
 INFO [Servlet.Engine.Transports : 0] (HttpMethodDirector.java:717) -
Failure authenticating with NTLM <any realm>@host:443
DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:236) -
getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:412) -
loadBundle: Ignoring MissingResourceException: Can't find bundle for
base name org.apache.axis2.resource, locale en_US
DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:289) -
Created org.apache.axis2.i18n.resource, linked to parent null
DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:236) -
getBundle(org.apache.axis2,org.apache.axis2.i18n,resource,null,...)
DEBUG [Servlet.Engine.Transports : 0] (ProjectResourceBundle.java:70) -
org.apache.axis2.i18n.resource::handleGetObject(transportError)
 INFO [Servlet.Engine.Transports : 0] (HTTPSender.java:194) - Unable to
sendViaPost to url[https://host/EWS/exchange.asmx]
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
 at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.jav
a:298)
 at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
92)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)
 at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
 at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)
 at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
 at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
 at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)
 at
com.nwa.exchsrvr.ExchangeServerTestServlet.process(ExchangeServerTestSer
vlet.java:67)
 at
com.nwa.exchsrvr.ExchangeServerTestServlet.doGet(ExchangeServerTestServl
et.java:37)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
 at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
 at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
 at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
 at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
 at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
 at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
 at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)
 at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:555)
 at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
 at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
 at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
 at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
 at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
 at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
 at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
 at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
 at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
DEBUG [Servlet.Engine.Transports : 0]
(CommonsHTTPTransportSender.java:335) - org.apache.axis2.AxisFault:
Transport error: 401 Error: Unauthorized
DEBUG [Servlet.Engine.Transports : 0]
(CommonsHTTPTransportSender.java:222) - org.apache.axis2.AxisFault:
Transport error: 401 Error: Unauthorized
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking flowComplete() in Phase "Security"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking flowComplete() in Phase "MessageOut"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking flowComplete() in Phase "PolicyDetermination"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking flowComplete() in Phase "RMPhase"
DEBUG [Servlet.Engine.Transports : 0] (Phase.java:315) -
[MessageContext: logID=urn:uuid:9FC5634341EB316F4B1190908074565]
Invoking flowComplete() in Phase "OperationOutPhase"
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R
org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.jav
a:298)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:1
92)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageW
ithCommons(CommonsHTTPTransportSender.java:327)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Common
sHTTPTransportSender.java:206)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper
ation.java:374)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA
xisOperation.java:211)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163
)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528
)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508
)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
com.nwa.exchsrvr.ExchangeServerTestServlet.process(ExchangeServerTestSer
vlet.java:67)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
com.nwa.exchsrvr.ExchangeServerTestServlet.doGet(ExchangeServerTestServl
et.java:37)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[9/27/07 10:47:56:949 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictSe
rvletInstance.java:110)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLi
fecycleServlet.java:174)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycle
Servlet.java:313)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLif
ecycleServlet.java:116)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.
java:283)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(Vali
dServletReferenceState.java:42)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(Servle
tInstanceReference.java:40)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:555)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:182)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[9/27/07 10:47:56:964 CDT] 1a1be3a2 SystemErr     R  at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

 

 

 

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Options options = new Options();
options.setAction("
http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder
<http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder>
");
options.setTo(new EndpointReference("https://host/EWS/exchange.asmx
<https://host/EWS/exchange.asmx> "));
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
auth.setHost("host");
auth.setUsername("username");
auth.setPassword(" password");
auth.setDomain("domain");
auth.setPreemptiveAuthentication(true);
ArrayList authSchemes = new ArrayList();
authSchemes.add(HttpTransportProperties.Authenticator.NTLM);
auth.setAuthSchemes(authSchemes);
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(getFolderPayload());

 

Any help is really appreciated.

 

Thanks,

Praveen


Mime
View raw message