Uses of Class
javax.xml.soap.SOAPException
-
Packages that use SOAPException Package Description javax.xml.soap Provides the API for creating and building SOAP messages. -
-
Uses of SOAPException in javax.xml.soap
Methods in javax.xml.soap that throw SOAPException Modifier and Type Method and Description SOAPElement
SOAPElement. addAttribute(Name name, String value)
Adds an attribute with the specified name and value to thisSOAPElement
object.SOAPElement
SOAPElement. addAttribute(QName qname, String value)
Adds an attribute with the specified name and value to thisSOAPElement
object.SOAPBody
SOAPEnvelope. addBody()
Creates aSOAPBody
object and sets it as theSOAPBody
object for thisSOAPEnvelope
object.SOAPBodyElement
SOAPBody. addBodyElement(Name name)
Creates a newSOAPBodyElement
object with the specified name and adds it to thisSOAPBody
object.SOAPBodyElement
SOAPBody. addBodyElement(QName qname)
Creates a newSOAPBodyElement
object with the specified QName and adds it to thisSOAPBody
object.SOAPElement
SOAPElement. addChildElement(Name name)
Creates a newSOAPElement
object initialized with the givenName
object and adds the new element to thisSOAPElement
object.SOAPElement
SOAPElement. addChildElement(QName qname)
Creates a newSOAPElement
object initialized with the givenQName
object and adds the new element to thisSOAPElement
object.SOAPElement
SOAPElement. addChildElement(SOAPElement element)
Add aSOAPElement
as a child of thisSOAPElement
instance.SOAPElement
SOAPElement. addChildElement(String localName)
Creates a newSOAPElement
object initialized with the specified local name and adds the new element to thisSOAPElement
object.SOAPElement
SOAPElement. addChildElement(String localName, String prefix)
Creates a newSOAPElement
object initialized with the specified local name and prefix and adds the new element to thisSOAPElement
object.SOAPElement
SOAPElement. addChildElement(String localName, String prefix, String uri)
Creates a newSOAPElement
object initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElement
object.Detail
SOAPFault. addDetail()
Creates an optionalDetail
object and sets it as theDetail
object for thisSOAPFault
object.DetailEntry
Detail. addDetailEntry(Name name)
Creates a newDetailEntry
object with the given name and adds it to thisDetail
object.DetailEntry
Detail. addDetailEntry(QName qname)
Creates a newDetailEntry
object with the given QName and adds it to thisDetail
object.SOAPBodyElement
SOAPBody. addDocument(Document document)
Adds the root node of the DOM
to thisDocument
SOAPBody
object.SOAPFault
SOAPBody. addFault()
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.SOAPFault
SOAPBody. addFault(Name faultCode, String faultString)
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.SOAPFault
SOAPBody. addFault(Name faultCode, String faultString, Locale locale)
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.SOAPFault
SOAPBody. addFault(QName faultCode, String faultString)
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.SOAPFault
SOAPBody. addFault(QName faultCode, String faultString, Locale locale)
Creates a newSOAPFault
object and adds it to thisSOAPBody
object.void
SOAPFault. addFaultReasonText(String text, Locale locale)
Appends or replaces a Reason Text item containing the specified text message and an xml:lang derived fromlocale
.SOAPHeader
SOAPEnvelope. addHeader()
Creates aSOAPHeader
object and sets it as theSOAPHeader
object for thisSOAPEnvelope
object.SOAPHeaderElement
SOAPHeader. addHeaderElement(Name name)
Creates a newSOAPHeaderElement
object initialized with the specified name and adds it to thisSOAPHeader
object.SOAPHeaderElement
SOAPHeader. addHeaderElement(QName qname)
Creates a newSOAPHeaderElement
object initialized with the specified qname and adds it to thisSOAPHeader
object.SOAPElement
SOAPElement. addNamespaceDeclaration(String prefix, String uri)
Adds a namespace declaration with the specified prefix and URI to thisSOAPElement
object.SOAPHeaderElement
SOAPHeader. addNotUnderstoodHeaderElement(QName name)
Creates a new NotUnderstoodSOAPHeaderElement
object initialized with the specified name and adds it to thisSOAPHeader
object.SOAPElement
SOAPElement. addTextNode(String text)
Creates a newText
object initialized with the givenString
and adds it to thisSOAPElement
object.SOAPHeaderElement
SOAPHeader. addUpgradeHeaderElement(Iterator supportedSOAPURIs)
Creates a new UpgradeSOAPHeaderElement
object initialized with the specified List of supported SOAP URIs and adds it to thisSOAPHeader
object.SOAPHeaderElement
SOAPHeader. addUpgradeHeaderElement(String supportedSoapUri)
Creates a new UpgradeSOAPHeaderElement
object initialized with the specified supported SOAP URI and adds it to thisSOAPHeader
object.SOAPHeaderElement
SOAPHeader. addUpgradeHeaderElement(String[] supportedSoapUris)
Creates a new UpgradeSOAPHeaderElement
object initialized with the specified array of supported SOAP URIs and adds it to thisSOAPHeader
object.void
SOAPFault. appendFaultSubcode(QName subcode)
Adds a Subcode to the end of the sequence of Subcodes contained by thisSOAPFault
.abstract SOAPMessage
SOAPConnection. call(SOAPMessage request, Object to)
Sends the given message to the specified endpoint and blocks until it has returned the response.abstract void
SOAPConnection. close()
Closes thisSOAPConnection
object.SOAPElement
SOAPElementFactory. create(Name name)
Deprecated.Use javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name) insteadSOAPElement
SOAPElementFactory. create(String localName)
Deprecated.Use javax.xml.soap.SOAPFactory.createElement(String localName) insteadSOAPElement
SOAPElementFactory. create(String localName, String prefix, String uri)
Deprecated.Use javax.xml.soap.SOAPFactory.createElement(String localName, String prefix, String uri) insteadabstract SOAPConnection
SOAPConnectionFactory. createConnection()
Create a newSOAPConnection
.abstract Detail
SOAPFactory. createDetail()
Creates a newDetail
object which serves as a container forDetailEntry
objects.SOAPElement
SOAPFactory. createElement(Element domElement)
Creates aSOAPElement
object from an existing DOMElement
.abstract SOAPElement
SOAPFactory. createElement(Name name)
Creates aSOAPElement
object initialized with the givenName
object.SOAPElement
SOAPFactory. createElement(QName qname)
Creates aSOAPElement
object initialized with the givenQName
object.abstract SOAPElement
SOAPFactory. createElement(String localName)
Creates aSOAPElement
object initialized with the given local name.abstract SOAPElement
SOAPFactory. createElement(String localName, String prefix, String uri)
Creates a newSOAPElement
object with the given local name, prefix and uri.abstract SOAPFault
SOAPFactory. createFault()
Creates a new defaultSOAPFault
objectabstract SOAPFault
SOAPFactory. createFault(String reasonText, QName faultCode)
Creates a newSOAPFault
object initialized with the givenreasonText
andfaultCode
abstract SOAPMessage
MessageFactory. createMessage()
Creates a newSOAPMessage
object with the defaultSOAPPart
,SOAPEnvelope
,SOAPBody
, andSOAPHeader
objects.abstract SOAPMessage
MessageFactory. createMessage(MimeHeaders headers, InputStream in)
Internalizes the contents of the givenInputStream
object into a newSOAPMessage
object and returns theSOAPMessage
object.Name
SOAPEnvelope. createName(String localName)
Creates a newName
object initialized with the given local name.abstract Name
SOAPFactory. createName(String localName)
Creates a newName
object initialized with the given local name.Name
SOAPEnvelope. createName(String localName, String prefix, String uri)
Creates a newName
object initialized with the given local name, namespace prefix, and namespace URI.abstract Name
SOAPFactory. createName(String localName, String prefix, String uri)
Creates a newName
object initialized with the given local name, namespace prefix, and namespace URI.QName
SOAPElement. createQName(String localName, String prefix)
Creates aQName
whose namespace URI is the one associated with the parameter,prefix
, in the context of thisSOAPElement
.Document
SOAPBody. extractContentAsDocument()
Creates a new DOM
and sets the first child of thisDocument
SOAPBody
as it's document element.SOAPMessage
SOAPConnection. get(Object to)
Gets a message from a specific endpoint and blocks until it receives,abstract AttachmentPart
SOAPMessage. getAttachment(SOAPElement element)
Returns anAttachmentPart
object that is associated with an attachment that is referenced by thisSOAPElement
ornull
if no such attachment exists.abstract InputStream
AttachmentPart. getBase64Content()
Returns anInputStream
which can be used to obtain the content ofAttachmentPart
as Base64 encoded character data, this method would base64 encode the raw bytes of the attachment and return.SOAPBody
SOAPEnvelope. getBody()
Returns theSOAPBody
object associated with thisSOAPEnvelope
object.abstract Object
AttachmentPart. getContent()
Gets the content of thisAttachmentPart
object as a Java object.abstract Source
SOAPPart. getContent()
Returns the content of the SOAPEnvelope as a JAXPSource
object.abstract DataHandler
AttachmentPart. getDataHandler()
Gets theDataHandler
object for thisAttachmentPart
object.abstract SOAPEnvelope
SOAPPart. getEnvelope()
Gets theSOAPEnvelope
object associated with thisSOAPPart
object.Iterator
SOAPFault. getFaultReasonLocales()
Returns anIterator
over a distinct sequence ofLocale
s for which there are associated Reason Text items.String
SOAPFault. getFaultReasonText(Locale locale)
Returns the Reason Text associated with the givenLocale
.Iterator
SOAPFault. getFaultReasonTexts()
Returns anIterator
over a sequence ofString
objects containing all of the Reason Text items for thisSOAPFault
.SOAPHeader
SOAPEnvelope. getHeader()
Returns theSOAPHeader
object for thisSOAPEnvelope
object.Object
SOAPMessage. getProperty(String property)
Retrieves value of the specified property.abstract InputStream
AttachmentPart. getRawContent()
Gets the content of thisAttachmentPart
object as an InputStream as if a call had been made togetContent
and noDataContentHandler
had been registered for thecontent-type
of thisAttachmentPart
.abstract byte[]
AttachmentPart. getRawContentBytes()
Gets the content of thisAttachmentPart
object as a byte[] array as if a call had been made togetContent
and noDataContentHandler
had been registered for thecontent-type
of thisAttachmentPart
.abstract int
AttachmentPart. getSize()
Returns the number of bytes in thisAttachmentPart
object.SOAPBody
SOAPMessage. getSOAPBody()
Gets the SOAP Body contained in thisSOAPMessage
object.SOAPHeader
SOAPMessage. getSOAPHeader()
Gets the SOAP Header contained in thisSOAPMessage
object.static SOAPElementFactory
SOAPElementFactory. newInstance()
Deprecated.Creates a new instance ofSOAPElementFactory
.static SOAPConnectionFactory
SOAPConnectionFactory. newInstance()
Creates an instance of the defaultSOAPConnectionFactory
object.static SOAPFactory
SOAPFactory. newInstance()
Creates a newSOAPFactory
object that is an instance of the default implementation (SOAP 1.1), This method uses the following ordered lookup procedure to determine the SOAPFactory implementation class to load: Use the javax.xml.soap.SOAPFactory system property.static MessageFactory
MessageFactory. newInstance()
Creates a newMessageFactory
object that is an instance of the default implementation (SOAP 1.1), This method uses the following ordered lookup procedure to determine the MessageFactory implementation class to load: Use the javax.xml.soap.MessageFactory system property.static SOAPFactory
SOAPFactory. newInstance(String protocol)
Creates a newSOAPFactory
object that is an instance of the specified implementation, this method uses the SAAJMetaFactory to locate the implementation class and create the SOAPFactory instance.static MessageFactory
MessageFactory. newInstance(String protocol)
Creates a newMessageFactory
object that is an instance of the specified implementation.protected abstract MessageFactory
SAAJMetaFactory. newMessageFactory(String protocol)
Creates aMessageFactory
object for the givenString
protocol.protected abstract SOAPFactory
SAAJMetaFactory. newSOAPFactory(String protocol)
Creates aSOAPFactory
object for the givenString
protocol.abstract void
SOAPMessage. saveChanges()
Updates thisSOAPMessage
object with all the changes that have been made to it.abstract void
AttachmentPart. setBase64Content(InputStream content, String contentType)
Sets the content of this attachment part from the Base64 sourceInputStream
and sets the value of theContent-Type
header to the value contained incontentType
, This method would first decode the base64 input and write the resulting raw bytes to the attachment.abstract void
SOAPPart. setContent(Source source)
Sets the content of theSOAPEnvelope
object with the data from the givenSource
object.SOAPElement
SOAPElement. setElementQName(QName newName)
Changes the name of thisElement
tonewName
if possible.void
SOAPElement. setEncodingStyle(String encodingStyle)
Sets the encoding style for thisSOAPElement
object to one specified.void
SOAPFault. setFaultActor(String faultActor)
Sets thisSOAPFault
object with the given fault actor.void
SOAPFault. setFaultCode(Name faultCodeQName)
Sets thisSOAPFault
object with the given fault code.void
SOAPFault. setFaultCode(QName faultCodeQName)
Sets thisSOAPFault
object with the given fault code.void
SOAPFault. setFaultCode(String faultCode)
Sets thisSOAPFault
object with the give fault code.void
SOAPFault. setFaultNode(String uri)
Creates or replaces any existing Node element value for thisSOAPFault
object.void
SOAPFault. setFaultRole(String uri)
Creates or replaces any existing Role element value for thisSOAPFault
object.void
SOAPFault. setFaultString(String faultString)
Sets the fault string for thisSOAPFault
object to the given string.void
SOAPFault. setFaultString(String faultString, Locale locale)
Sets the fault string for thisSOAPFault
object to the given string and localized to the given locale.void
Node. setParentElement(SOAPElement parent)
Sets the parent of thisNode
object to the givenSOAPElement
object.void
SOAPMessage. setProperty(String property, Object value)
Associates the specified value with the specified property.abstract void
AttachmentPart. setRawContent(InputStream content, String contentType)
Sets the content of this attachment part to that contained by theInputStream
content
and sets the value of theContent-Type
header to the value contained incontentType
.abstract void
AttachmentPart. setRawContentBytes(byte[] content, int offset, int len, String contentType)
Sets the content of this attachment part to that contained by thebyte[]
arraycontent
and sets the value of theContent-Type
header to the value contained incontentType
.void
SOAPHeaderElement. setRelay(boolean relay)
Sets the relay attribute for thisSOAPHeaderElement
to be either true or false.void
SOAPHeaderElement. setRole(String uri)
Sets theRole
associated with thisSOAPHeaderElement
object to the specifiedRole
.abstract void
SOAPMessage. writeTo(OutputStream out)
Writes thisSOAPMessage
object to the given output stream.Constructors in javax.xml.soap that throw SOAPException Constructor and Description SAAJResult()
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the default (SOAP 1.1) protocol.SAAJResult(String protocol)
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the specified protocol.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.