I am using Java stub to communicate with Exchange server using web service. i have solved lot of problem in creating java Stub by the guidines of Mr .Hervé Finally i am standing in the Authentication section. Please advice me to solve the problem. Here is my error i am trying to communicated with sample code. please check the error and give some idea to solve my perobelm( uisng Ms exchange server 2007) the web service of exchange server is enabled in IIS server. org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.GetFolder(ExchangeWebServiceStub.java:1202) at exchangeClient.impl.testing.getInboxId(testing.java:56) at exchangeClient.impl.testing.main(testing.java:132)
Hello, the unauthorized can have different sources: 1. You have no access to the folder in question. e 2. You are using the wrong authentication method. Exchange will have enabled NTLM/Kerberos by default, this will probably be difficult from Java. Try to set the authentication to basic on the Exchange box and try to send your username and password with your request as http header. Your java classes should expose method for setting this. Kind regards, Henning Krause "sri" wrote in message news:3261D87D-C73F-4F47-9D11-5EC62D35C12A@microsoft.com... >I am using Java stub to communicate with Exchange server using web service. > i have solved lot of problem in creating java Stub by the guidines of Mr > .Hervé > > Finally i am standing in the Authentication section. Please advice me to > solve the problem. Here is my error > > i am trying to communicated with sample code. please check the error and > give some idea to solve my perobelm( uisng Ms exchange server 2007) > > the web service of exchange server is enabled in IIS server. > > org.apache.axis2.AxisFault: Transport error: 401 Error: Unauthorized > at > org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) > at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > at > com.microsoft.schemas.exchange.services._2006.messages.ExchangeWebServiceStub.GetFolder(ExchangeWebServiceStub.java:1202) > at exchangeClient.impl.testing.getInboxId(testing.java:56) > at exchangeClient.impl.testing.main(testing.java:132) > > >