Package org.apache.axiom.soap
Interface SOAPFactory
- All Superinterfaces:
OMFactory
-
Method Summary
Modifier and TypeMethodDescriptionCreate a default SOAP message with an envelope with an empty body.createSOAPBody
(SOAPEnvelope envelope) Create a SOAP envelope.Create a SOAP envelope with the given namespace.createSOAPFault
(SOAPBody parent) createSOAPFault
(SOAPBody parent, Exception e) createSOAPFaultCode
(SOAPFault parent) Code eii under SOAPFault (parent)createSOAPFaultDetail
(SOAPFault parent) Detail eii under SOAPFault (parent)createSOAPFaultNode
(SOAPFault parent) Node eii under SOAPFault (parent)createSOAPFaultReason
(SOAPFault parent) Reason eii under SOAPFault (parent)createSOAPFaultRole
(SOAPFault parent) Role eii under SOAPFault (parent)createSOAPFaultSubCode
(SOAPFaultCode parent) SubCode eii under SubCode (parent)createSOAPFaultText
(SOAPFaultReason parent) SubCode eii under SubCode (parent)createSOAPFaultValue
(SOAPFaultCode parent) Value eii under Code (parent)createSOAPFaultValue
(SOAPFaultSubCode parent) SubCode eii under Value (parent)createSOAPHeader
(SOAPEnvelope envelope) Create aSOAPHeader
as a child of the givenSOAPEnvelope
.createSOAPHeaderBlock
(String localName, OMNamespace ns) createSOAPHeaderBlock
(String localName, OMNamespace ns, OMDataSource source) Create aSOAPHeaderBlock
from anOMDataSource
with a known local name and namespace URI.createSOAPHeaderBlock
(String localName, OMNamespace ns, SOAPHeader parent) createSOAPHeaderBlock
(OMDataSource source) Create aSOAPHeaderBlock
from anOMDataSource
.createSOAPHeaderBlock
(OMElement element) Create a newSOAPHeaderBlock
with the same content as the given element.Create a default SOAP envelope with an empty header and an empty body.Get the envelope namespace for the SOAP version used by this factory.Methods inherited from interface org.apache.axiom.om.OMFactory
createOMAttribute, createOMComment, createOMDocType, createOMDocument, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMElement, createOMEntityReference, createOMNamespace, createOMProcessingInstruction, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, createOMText, getMetaFactory, importInformationItem
-
Method Details
-
getSoapVersionURI
String getSoapVersionURI() -
getSOAPVersion
SOAPVersion getSOAPVersion() -
createSOAPMessage
SOAPMessage createSOAPMessage() -
createSOAPEnvelope
Create a SOAP envelope. The returned element will have the namespace URI specified by the SOAP version that this factory represents. It will have the prefix given bySOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX
. It will also have a corresponding namespace declaration.- Returns:
- the SOAP envelope
- Throws:
SOAPProcessingException
-
createSOAPEnvelope
Create a SOAP envelope with the given namespace. This method can be used to create a SOAP envelope with a custom namespace prefix.- Parameters:
ns
- the namespace information for the SOAP envelope- Returns:
- the SOAP envelope
-
createSOAPHeader
Create aSOAPHeader
as a child of the givenSOAPEnvelope
.Note that for most use cases, it is preferable to use
SOAPEnvelope.getOrCreateHeader()
instead of this method.- Parameters:
envelope
- the parent of theSOAPHeader
- Returns:
- the newly created
SOAPHeader
- Throws:
SOAPProcessingException
-
createSOAPHeader
- Throws:
SOAPProcessingException
-
createSOAPHeaderBlock
SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, SOAPHeader parent) throws SOAPProcessingException - Parameters:
localName
-ns
-- Returns:
- Returns SOAPHeaderBlock.
- Throws:
SOAPProcessingException
-
createSOAPHeaderBlock
SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns) throws SOAPProcessingException - Throws:
SOAPProcessingException
-
createSOAPHeaderBlock
Create aSOAPHeaderBlock
from anOMDataSource
. The semantics of the method parameters are the same as forOMFactory.createOMElement(OMDataSource)
.- Parameters:
source
- the data source; must not benull
- Returns:
- the newly created header block
-
createSOAPHeaderBlock
SOAPHeaderBlock createSOAPHeaderBlock(String localName, OMNamespace ns, OMDataSource source) throws SOAPProcessingException Create aSOAPHeaderBlock
from anOMDataSource
with a known local name and namespace URI. The semantics of the method parameters are the same as forOMFactory.createOMElement(OMDataSource, String, OMNamespace)
.- Parameters:
localName
- the local part of the name of the element produced by the data source; must not benull
ns
- the namespace of the element produced by the data source, ornull
if the element has no namespacesource
- the data source; must not benull
- Returns:
- the newly created header block
- Throws:
SOAPProcessingException
-
createSOAPHeaderBlock
Create a newSOAPHeaderBlock
with the same content as the given element.- Parameters:
element
- the element to import as a header block- Returns:
- the header block
-
createSOAPFault
- Parameters:
parent
-e
-- Returns:
- Returns SOAPFault.
- Throws:
SOAPProcessingException
-
createSOAPFault
- Throws:
SOAPProcessingException
-
createSOAPFault
- Throws:
SOAPProcessingException
-
createSOAPBody
- Parameters:
envelope
-- Returns:
- Returns SOAPBody.
- Throws:
SOAPProcessingException
-
createSOAPBody
- Throws:
SOAPProcessingException
-
createSOAPFaultCode
Code eii under SOAPFault (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultCode.
- Throws:
SOAPProcessingException
-
createSOAPFaultCode
- Throws:
SOAPProcessingException
-
createSOAPFaultValue
Value eii under Code (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultValue.
- Throws:
SOAPProcessingException
-
createSOAPFaultValue
- Throws:
SOAPProcessingException
-
createSOAPFaultValue
SubCode eii under Value (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultValue.
- Throws:
SOAPProcessingException
-
createSOAPFaultSubCode
- Throws:
SOAPProcessingException
-
createSOAPFaultSubCode
- Throws:
SOAPProcessingException
-
createSOAPFaultSubCode
SubCode eii under SubCode (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultSubCode.
- Throws:
SOAPProcessingException
-
createSOAPFaultReason
Reason eii under SOAPFault (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultReason.
- Throws:
SOAPProcessingException
-
createSOAPFaultReason
- Throws:
SOAPProcessingException
-
createSOAPFaultText
SubCode eii under SubCode (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultText.
- Throws:
SOAPProcessingException
-
createSOAPFaultText
- Throws:
SOAPProcessingException
-
createSOAPFaultNode
Node eii under SOAPFault (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultNode.
- Throws:
SOAPProcessingException
-
createSOAPFaultNode
- Throws:
SOAPProcessingException
-
createSOAPFaultRole
Role eii under SOAPFault (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultRole.
- Throws:
SOAPProcessingException
-
createSOAPFaultRole
- Throws:
SOAPProcessingException
-
createSOAPFaultDetail
Detail eii under SOAPFault (parent)- Parameters:
parent
-- Returns:
- Returns SOAPFaultDetail.
- Throws:
SOAPProcessingException
-
createSOAPFaultDetail
- Throws:
SOAPProcessingException
-
getDefaultEnvelope
Create a default SOAP envelope with an empty header and an empty body. Note that the method will not create an associatedSOAPMessage
orOMDocument
instance and the parent of the returnedSOAPEnvelope
isnull
.Note: This method is typically used in conjunction with
SOAPEnvelope.getHeader()
. In order to avoid generating unnecessary empty SOAP headers, you should consider usingcreateDefaultSOAPMessage()
together withSOAPEnvelope.getOrCreateHeader()
instead. This method may be deprecated and/or removed in future Axiom versions.- Returns:
- the default SOAP envelope
- Throws:
SOAPProcessingException
-
createDefaultSOAPMessage
SOAPMessage createDefaultSOAPMessage()Create a default SOAP message with an envelope with an empty body.Since no SOAP header is added to the envelope, this method should be used in conjunction with
SOAPEnvelope.getOrCreateHeader()
(if SOAP header blocks need to be added).- Returns:
- the default SOAP envelope
-
getDefaultFaultEnvelope
- Throws:
SOAPProcessingException
-
getNamespace
OMNamespace getNamespace()Get the envelope namespace for the SOAP version used by this factory. The returnedOMNamespace
instance has the following properties:- The prefix is set to
SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX
(which is the same as the prefix used by methods such ascreateSOAPEnvelope()
). - The namespace URI is the same as returned by
getSoapVersionURI()
.
- Returns:
- the envelope namespace for the SOAP version used by this factory
- The prefix is set to
-