I am using Apache axis 2 client in to connect to a web service built in .Net. I am using .cer certificate to connect as server is running on SSL.

I am exporting security certificate i.e. .cer file into a .jks file using keytool. I am using that .jks file inside the java web client.

I am getting following exception while connecting to the server.


org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
at org.apache.axis2.transport.http.HTTPSender.handleR esponse(HTTPSender.java:307)
at org.apache.axis2.transport.http.HTTPSender.sendVia Post(HTTPSender.java:200)
at org.apache.axis2.transport.http.HTTPSender.send(HT TPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.writeMessageWithCommons(CommonsHTTPTransp ortSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.invoke(CommonsHTTPTransportSender.java:22 5)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine .java:438)
at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:165)
at org.tempuri.WSTradeDataStub.getFxRates(WSTradeData Stub.java:2151)
at Driver2.main(Driver2.java:179)
org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden
at org.apache.axis2.transport.http.HTTPSender.handleR esponse(HTTPSender.java:307)
at org.apache.axis2.transport.http.HTTPSender.sendVia Post(HTTPSender.java:200)
at org.apache.axis2.transport.http.HTTPSender.send(HT TPSender.java:76)
at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.writeMessageWithCommons(CommonsHTTPTransp ortSender.java:400)
at org.apache.axis2.transport.http.CommonsHTTPTranspo rtSender.invoke(CommonsHTTPTransportSender.java:22 5)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine .java:438)
at org.apache.axis2.description.OutInAxisOperationCli ent.send(OutInAxisOperation.java:402)
at org.apache.axis2.description.OutInAxisOperationCli ent.executeImpl(OutInAxisOperation.java:229)
at org.apache.axis2.client.OperationClient.execute(Op erationClient.java:165)
at org.tempuri.WSTradeDataStub.getFxRates(WSTradeData Stub.java:2151)
at Driver2.main(Driver2.java:179)


Can anyone tell me why this exception occurs, and how to solve this problem.

You help will be appriciated.