public class SoapFactoryImpl extends SOAPFactory
Constructor and Description |
---|
SoapFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
Detail |
createDetail()
Creates a new
Detail object which serves as a container
for DetailEntry objects. |
SOAPElement |
createElement(Name arg0)
Creates a
SOAPElement object initialized with the
given Name object. |
SOAPElement |
createElement(java.lang.String arg0)
Creates a
SOAPElement object initialized with the
given local name. |
SOAPElement |
createElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
Creates a new
SOAPElement object with the given
local name, prefix and uri. |
SOAPFault |
createFault()
Creates a new default
SOAPFault object |
SOAPFault |
createFault(java.lang.String arg0,
javax.xml.namespace.QName arg1)
Creates a new
SOAPFault object initialized with the given reasonText
and faultCode |
Name |
createName(java.lang.String arg0)
Creates a new
Name object initialized with the
given local name. |
Name |
createName(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
Creates a new
Name object initialized with the
given local name, namespace prefix, and namespace URI. |
createElement, createElement, newInstance, newInstance
public Detail createDetail() throws SOAPException
SOAPFactory
Detail
object which serves as a container
for DetailEntry
objects.
This factory method creates Detail
objects for use in
situations where it is not practical to use the SOAPFault
abstraction.
createDetail
in class SOAPFactory
Detail
objectSOAPException
- if there is a SOAP errorpublic SOAPElement createElement(Name arg0) throws SOAPException
SOAPFactory
SOAPElement
object initialized with the
given Name
object. The concrete type of the return value
will depend on the name given to the new SOAPElement
. For
instance, a new SOAPElement
with the name
"{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause a
SOAPEnvelope
that supports SOAP 1.2 behavior to be created.createElement
in class SOAPFactory
arg0
- a Name
object with the XML name for
the new elementSOAPElement
object that was
createdSOAPException
- if there is an error in creating the
SOAPElement
objectSOAPFactory.createElement(javax.xml.namespace.QName)
public SOAPElement createElement(java.lang.String arg0) throws SOAPException
SOAPFactory
SOAPElement
object initialized with the
given local name.createElement
in class SOAPFactory
arg0
- a String
giving the local name for
the new elementSOAPElement
object that was
createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPElement createElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws SOAPException
SOAPFactory
SOAPElement
object with the given
local name, prefix and uri. The concrete type of the return value
will depend on the name given to the new SOAPElement
. For
instance, a new SOAPElement
with the name
"{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause a
SOAPEnvelope
that supports SOAP 1.2 behavior to be created.createElement
in class SOAPFactory
arg0
- a String
giving the local name
for the new elementarg1
- the prefix for this SOAPElement
arg2
- a String
giving the URI of the
namespace to which the new element belongsSOAPElement
object that was
createdSOAPException
- if there is an error in creating the
SOAPElement
objectpublic SOAPFault createFault() throws SOAPException
SOAPFactory
SOAPFault
objectcreateFault
in class SOAPFactory
SOAPFault
objectSOAPException
- if there is a SOAP errorpublic SOAPFault createFault(java.lang.String arg0, javax.xml.namespace.QName arg1) throws SOAPException
SOAPFactory
SOAPFault
object initialized with the given reasonText
and faultCode
createFault
in class SOAPFactory
arg0
- the ReasonText/FaultString for the faultarg1
- the FaultCode for the faultSOAPFault
objectSOAPException
- if there is a SOAP errorpublic Name createName(java.lang.String arg0) throws SOAPException
SOAPFactory
Name
object initialized with the
given local name.
This factory method creates Name
objects for use in
situations where it is not practical to use the SOAPEnvelope
abstraction.
createName
in class SOAPFactory
arg0
- a String
giving the local nameName
object initialized with the given
local nameSOAPException
- if there is a SOAP errorpublic Name createName(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws SOAPException
SOAPFactory
Name
object initialized with the
given local name, namespace prefix, and namespace URI.
This factory method creates Name
objects for use in
situations where it is not practical to use the SOAPEnvelope
abstraction.
createName
in class SOAPFactory
arg0
- a String
giving the local namearg1
- a String
giving the prefix of the namespacearg2
- a String
giving the URI of the namespaceName
object initialized with the given
local name, namespace prefix, and namespace URISOAPException
- if there is a SOAP error