javax.xml.ws.soap

Class SOAPFaultException

Implemented Interfaces:
Serializable

public class SOAPFaultException
extends ProtocolException

XXX
See Also:
Serialized Form

Constructor Summary

SOAPFaultException(SOAPFault fault)
XXX

Method Summary

SOAPFault
getFault()
XXX

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

SOAPFaultException

public SOAPFaultException(SOAPFault fault)
XXX
Usages and Demos :

View More Examples of SOAPFaultException(SOAPFault fault)
   1:          fault.addDetail().addChildElement("test");
   2:          throw new SOAPFaultException(fault);
   3:       }
   4:       catch (SOAPException s)
   5:       {

View Full Code Here
   1:         fault.setFaultString(reason);
   2:         return new SOAPFaultException(fault);
   3:     }
   4:     
   5:     private void cacheExchange(SoapMessage message, AddressingProperties maps) {

View Full Code Here
   1:     if (fault == null)
   2:       fault = new SOAPFaultException(soapFault);
   3: 
   4:     return fault;
   5:   }

View Full Code Here

Method Details

getFault

public SOAPFault getFault()
XXX
Usages and Demos :

View More Examples of getFault()
   1: import javax.xml.ws.Service;
   2: import javax.xml.ws.soap.SOAPFaultException;
   3: 
   4:         ...
   5:          proxy.throwRuntimeException();
   6:          fail("Expected SOAPFaultException");
   7:       }
   8:         ...
   9:       catch (SOAPFaultException e)
  10:       {
  11:         ...
  12:          assertEquals("oh no, a runtime exception occured.", e.getMessage());
  13:          assertEquals("oh no, a runtime exception occured.", e.getFault().getFaultString());

View Full Code Here
   1: import javax.xml.ws.WebServiceException;
   2: import javax.xml.ws.soap.SOAPFaultException;
   3: 
   4:         ...
   5:          SOAPMessageImpl faultMessage;
   6:          if (reqEx instanceof SOAPFaultException)
   7:          {
   8:         ...
   9:             faultMessage = toSOAPMessage((SOAPFaultException)reqEx);
  10:          }
  11:         ...
  12: 
  13:       Detail detail = faultEx.getFault().getDetail();

View Full Code Here