Name
SOAPFaultElement
Synopsis
public interface SOAPFaultElement extends SOAPElement {
}SOAPFaultElement is a subinterface of
SOAPElement that represents an element that has
been added directly to a SOAPFault. In all other
respects, a SOAPFaultElement is the same as a
SOAPElement. The Detail
element, described earlier in this chapter, is an example of a
SOAPFaultElement that can be created using the
addDetail( ) method of the
SOAPFault interface. There are two other ways to
create a SOAPFaultElement:
Using the
addChildElement( )method thatSOAPFaultinherits fromSOAPElement. For example,fault.addChildElement("BookError", "books", "urn:BookService")creates and returns aSOAPFaultElementcalledBookErrorin the namespaceurn:BookService, and also adds it to theSOAPFaultelement referenced by the variablefault.Creating a
SOAPElementusing the methods ofSOAPFactoryorSOAPElementFactoryand usingaddChildElement( )to add it to aSOAPFault. In this case, theSOAPElementis replaced by an equivalentSOAPFaultElement, and any nested elements are copied.
Implementations
Detail
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access