Hi All,
I am new in JBoss Application Server Web development. I need to create web services that must be deployed on JBoss server. And I also need to make web services secure using HTTPS(SSL). I am using jboss-5.1.0.GA and NetBeans 6.9 with Java 1.6.
I have already created web services.And also deployed it on JBoss Server.After some articles on JBoss community I also made the web service to run on HTTPS protocol.But now I need to make web services not accessible through from HTTP protocol due to security purpose. I found that some changes in web.xml of web service will help, but I didn't get any success.currently web.xml file looks as.....
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<servlet>
<servlet-name>demoWebService</servlet-name>
<servlet-class>demo.demoWebService</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>demoWebService</servlet-name>
<url-pattern>/demoWebService</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Thanks in advance
Vinod Pandey
NHST, Noida , India