1 Reply Latest reply on Mar 21, 2008 11:32 AM by asoldano

    Message faults not signed

    mimra

      We have a project running on JBoss 4.2.0 (JBossWS 1.2.1.GA) which exposes an EJB3 web service like:

      @Stateless
      @WebService(wsdlLocation="META-INF/wsdl/LovWS.wsdl", targetNamespace = "http://rep.oio.dk/wmdata.dk/as2007/schemas/2006/11/20/")
      @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
      @HandlerChain(file = "resource://META-INF/ServerHandlers.xml", name = "SecureHandlerChain")
      @WebContext(contextRoot="/as2007/facade")
      public class LovWS extends WSBean {
      .
      .
      .
       @WebMethod()
       @WebResult(name="resultat")
       public LovType hentLov(@WebParam(name="Kode") String kode) throws WSException{
       if ("".equals(kode)){
       throw new WSException(165,"Kode argumentet er tomt");
       }
       .
       .
       .
       }
      }
      


      Now if the request to the web service is successful, the response is singed as expected.
      However, if any exception is thrown and a SOAP fault is returned, then the SOAP body is not signed.

      Is this expected behavior? Is there any way to get JBossWS to also sign the SOAP faults?

      Best regards
      Michael