Web service authentication using https giving error

12,233

If you want to use https, then you need to set up axis2.xml as described in the following document:

http://axis.apache.org/axis2/java/core/docs/servlet-transport.html

Share:
12,233

Related videos on Youtube

SSG
Author by

SSG

Updated on June 04, 2022

Comments

  • SSG
    SSG almost 2 years

    I have written a simple web service and used digest and HTTPS authentication to secure it. I have generated my certificate using keytool present in Java. When I deploy the web-service in Tomcat by creating a .war file, the welcome page of axis is properly being displayed, but when I click on services its giving the following error,

    javax.servlet.ServletException: https is forbidden
    org.apache.axis2.transport.http.AxisServlet.preprocessRequest(AxisServlet.java:612)
    org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    

    The error is not being displayed when I deploy a website with a servlet. The problem is appearing only when I deploy the axis web services.