14 Replies Latest reply on Aug 1, 2006 9:25 PM by yi_zhang

    JBossWS 1.0.1GA JSR181 and WS-Security

    yi_zhang

      We have a web service implemented as EJB3 Stateless Session endpoint using JSR181. I followed instructions on http://wiki.jboss.org/wiki/Wiki.jsp?page=WSSecurityConfig to turn on message signing but nothing happens:

      Our application works exactly the same with or without the jboss-wsse-server.xml file. We are using JBossWS 1.0.1GA on JBoss 4.0.4GA

      Our application is pakcaged and deployed as an EAR with the following structure:

      app.ear
      --META-INF
      ------application.xml
      ------jboss-app.xml
      --webservice.jar
      ------class files
      ------META-INF
      ----------jboss-wsse-server.xml
      ----------wsse.keystore
      ----------wsse.truststroe

      Here is the boss-wsse-server.xml:

      <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.jboss.com/ws-security/config
       http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
       <key-store-file>META-INF/oipm.keystore</key-store-file>
       <key-store-password>oipmessaging</key-store-password>
       <key-store-type>JKS</key-store-type>
       <trust-store-file>META-INF/oipm.keystore</trust-store-file>
       <trust-store-password>oipmessaging</trust-store-password>
       <config>
       <sign type="x509v3" alias="oipm" includeTimestamp="false" />
       <requires>
       <signature />
       </requires>
       </config>
       </jboss-ws-security>
      

      Any help is greatly appreciated!

      Yi