com.sun.xml.ws.fault
Class SOAP11Fault
java.lang.Object
com.sun.xml.ws.fault.SOAPFaultBuilder
com.sun.xml.ws.fault.SOAP11Fault
class SOAP11Fault
- extends SOAPFaultBuilder
This class represents SOAP1.1 Fault. This class will be used to marshall/unmarshall a soap fault using JAXB.
Example:
<soap:Fault xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<faultcode>soap:Client</faultcode>
<faultstring>Invalid message format</faultstring>
<faultactor>http://example.org/someactor</faultactor>
<detail>
<m:msg xmlns:m='http://example.org/faults/exceptions'>
Test message
</m:msg>
</detail>
</soap:Fault>
Above, m:msg, if a known fault (described in the WSDL), IOW, if m:msg is known by JAXBContext it should be unmarshalled into a
Java object otherwise it should be deserialized as Detail
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAP11Fault
SOAP11Fault()
SOAP11Fault
SOAP11Fault(QName code,
String reason,
String actor,
Element detailObject)
- This constructor takes soap fault detail among other things. The detail could represent
Detail
or a java object that can be marshalled/unmarshalled by JAXB.
- Parameters:
code
- reason
- actor
- detailObject
-
SOAP11Fault
SOAP11Fault(javax.xml.soap.SOAPFault fault)
getFaultcode
QName getFaultcode()
setFaultcode
void setFaultcode(QName faultcode)
getFaultString
String getFaultString()
- Description copied from class:
SOAPFaultBuilder
- gives the fault string that can be used to create an
Exception
- Specified by:
getFaultString
in class SOAPFaultBuilder
setFaultstring
void setFaultstring(String faultstring)
getFaultactor
String getFaultactor()
setFaultactor
void setFaultactor(String faultactor)
getDetail
DetailType getDetail()
- returns the object that represents detail.
- Specified by:
getDetail
in class SOAPFaultBuilder
setDetail
void setDetail(DetailType detail)
- Specified by:
setDetail
in class SOAPFaultBuilder
getProtocolException
protected Throwable getProtocolException()
- Specified by:
getProtocolException
in class SOAPFaultBuilder