0 Replies Latest reply on Jul 30, 2013 2:27 AM by syau

    JBoss AS 7.1.1 - SOAPFaultException constructor argument javax.xml.soap.Detail with Throwable instance


      I'm in the process of migrating a web service (JAX-RPC) running in Weblogic to JBoss AS 7.1.1, the web service

      throws a exception like this,



                          throw new javax.xml.rpc.soap.SOAPFaultException(

             new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server"), // QName fault code

             "Errors encountered", // faultString

             "http://example", // faultActor

             weblogic.webservice.util.FaultUtil.newDetail(new Exception("Service Unavailable"))); // javax.xml.soap.Detail



      What's the JBoss equivalent of the 4th argument in the SOAPFaultException constructor, I want to attach the exception

      instance to the 'Detail' instance just like in Weblogic. Thanks.


      PS: I'm using Axis2 to generate WSDL