Spring Web Services Framework

org.springframework.ws.soap.soap11
Interface Soap11Body

All Superinterfaces:
SoapBody, SoapElement

public interface Soap11Body
extends SoapBody

Subinterface of SoapBody that exposes SOAP 1.1 functionality. Necessary because SOAP 1.1 differs from SOAP 1.2 with respect to SOAP Faults.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
Soap11Fault

Method Summary
 Soap11Fault addFault(QName faultCode, String faultString, Locale faultStringLocale)
          Adds a SOAP 1.1 Fault to the body with a localized message.
 
Methods inherited from interface org.springframework.ws.soap.SoapBody
addClientOrSenderFault, addMustUnderstandFault, addServerOrReceiverFault, addVersionMismatchFault, getFault, getPayloadResult, getPayloadSource, hasFault
 
Methods inherited from interface org.springframework.ws.soap.SoapElement
addAttribute, addNamespaceDeclaration, getAllAttributes, getAttributeValue, getName, getSource, removeAttribute
 

Method Detail

addFault

Soap11Fault addFault(QName faultCode,
                     String faultString,
                     Locale faultStringLocale)
                     throws SoapFaultException
Adds a SOAP 1.1 Fault to the body with a localized message. Adding a fault removes the current content of the body.

Parameters:
faultCode - the fully qualified fault faultCode
faultString - the faultString
faultStringLocale - the faultString locale. May be null
Returns:
the added Soap11Fault
Throws:
IllegalArgumentException - if the fault faultCode is not fully qualified
SoapFaultException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.