public class SoapFaultFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SOAP11_NAMESPACE |
static String |
SOAP12_NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
static void |
throwSoapFault(SoapFaultParam param)
This method should be used for SOAP sender channels.
|
static void |
throwSoapFault(String faultstring,
Element detail,
Map<String,String> namespaces)
This method should be used for SOAP sender channels.
|
static void |
throwXiSoapFault(XiSoapFaultParam param)
This method should be used for XI sender channels.
|
public static final String SOAP11_NAMESPACE
public static final String SOAP12_NAMESPACE
public static void throwSoapFault(SoapFaultParam param) throws UnknownSoapVersionException, UnknownFaultCodeException
param: - Object to set all parameters according to the SOAP
specification. The parameter detail is expected to be an
Element object of a DOM tree. The parameter namespaces can be
use to add additional namespace declarations for parameter
detail if required.UnknownSoapVersionExceptionUnknownFaultCodeExceptionpublic static void throwSoapFault(String faultstring, Element detail, Map<String,String> namespaces)
faultstring: - see also the SOAP specification. This is simple error text.detail: - see also the SOAP specification. Here additional information
can be set. The SOAP fault exception object of the SOAP
adapter require heres an Element object of a DOM tree.namespaces: - If the detail parameter requires additional namespace
declarations then they can be set here.public static void throwXiSoapFault(XiSoapFaultParam param) throws XMLStreamException
param: - Object to set all possible attributes of an XI SOAP fault.XMLStreamExceptionCopyright © 2024. All rights reserved.