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"); } . . . } }
Right now there's no way to have JBossWS native sign and/or encrypt faults. This issue was however addressed in the past, please monitor JBWS-1119 (http://jira.jboss.org/jira/browse/JBWS-1119), I'll see if it's possible to have this feature back soon.