com.sun.xml.ws.fault
Class SOAP12Fault
java.lang.Object
com.sun.xml.ws.fault.SOAPFaultBuilder
com.sun.xml.ws.fault.SOAP12Fault
class SOAP12Fault
- extends SOAPFaultBuilder
SOAP 1.2 Fault class that can be marshalled/unmarshalled by JAXB
Example:
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:m="http://www.example.org/timeouts"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Sender* </env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout* </env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Sender Timeout* </env:Text>
</env:Reason>
<env:Detail>
<m:MaxTime>P5M* </m:MaxTime>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOAP12Fault
SOAP12Fault()
SOAP12Fault
SOAP12Fault(CodeType code,
ReasonType reason,
String node,
String role,
DetailType detail)
SOAP12Fault
SOAP12Fault(javax.xml.soap.SOAPFault fault)
SOAP12Fault
SOAP12Fault(QName code,
String reason,
Element detailObject)
getCode
CodeType getCode()
getReason
ReasonType getReason()
getNode
String getNode()
getRole
String getRole()
getDetail
DetailType getDetail()
- Description copied from class:
SOAPFaultBuilder
- Gives the
DetailType
for a Soap 1.1 or Soap 1.2 message that can be used to create either a checked exception or
a protocol specific exception
- Specified by:
getDetail
in class SOAPFaultBuilder
setDetail
void setDetail(DetailType detail)
- Specified by:
setDetail
in class SOAPFaultBuilder
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
getProtocolException
protected Throwable getProtocolException()
- Specified by:
getProtocolException
in class SOAPFaultBuilder