6 Replies Latest reply on Oct 10, 2007 8:29 AM by Nicklas Karlsson

    WS config

    Nicklas Karlsson Master

      I'm trying to secure my existing web service, I added

      @EndpointConfig(configName = "Standard WSSecurity Endpoint")
      

      and it is picked up (garbling => error)

      and put an
      <?xml version="1.0" encoding="UTF-8"?>
      <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/wsse.keystore</key-store-file>
       <key-store-password>jbossws</key-store-password>
       <trust-store-file>META-INF/wsse.truststore</trust-store-file>
       <trust-store-password>jbossws</trust-store-password>
       <config>
       <sign type="x509v3" alias="wsse" />
       <encrypt type="x509v3" alias="wsse" />
       <requires>
       <signature />
       <encryption />
       </requires>
       </config>
      </jboss-ws-security>
      

      and it is picked up (garbling => error)

      since it is an EAR with the WS class in an JAR, I put all the ws-related files in the META-INF directory of the jar (following the wiki).

      But still my wsdl shows no sign of encryption tags. Suggestions?