SOAPFaultException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.ws.soap Class SOAPFaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by javax.xml.ws.ProtocolException
                      extended by javax.xml.ws.soap.SOAPFaultException
所有已实现的接口:
Serializable

public class SOAPFaultException
extends ProtocolException

The SOAPFaultException exception represents a SOAP 1.1 or 1.2 fault.

A SOAPFaultException wraps a SAAJ SOAPFault that manages the SOAP-specific representation of faults. The createFault method of javax.xml.soap.SOAPFactory may be used to create an instance of javax.xml.soap.SOAPFault for use with the constructor. SOAPBinding contains an accessor for the SOAPFactory used by the binding instance.

Note that the value of getFault is the only part of the exception used when searializing a SOAP fault.

Refer to the SOAP specification for a complete description of SOAP faults.

从以下版本开始:
JAX-WS 2.0
另请参见:
SOAPFault, SOAPBinding.getSOAPFactory(), ProtocolException, Serialized Form

构造器摘要
SOAPFaultException(SOAPFault fault)
          Constructor for SOAPFaultException
 
方法摘要
 SOAPFault getFault()
          Gets the embedded SOAPFault instance.
 
类方法继承 java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

SOAPFaultException

public SOAPFaultException(SOAPFault fault)
Constructor for SOAPFaultException

参数:
fault - SOAPFault representing the fault
另请参见:
SOAPFactory.createFault(java.lang.String, javax.xml.namespace.QName)

方法详细信息

getFault

public SOAPFault getFault()
Gets the embedded SOAPFault instance.

返回:
javax.xml.soap.SOAPFault SOAP fault element

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.