SOAPHeader
object.
A SOAPEnvelope object contains an empty
SOAPHeader object by default. If the SOAPHeader
object, which is optional, is not needed, it can be retrieved and deleted
with the following line of code. The variable se is a
SOAPEnvelope object.
se.getHeader().detachNode();
A SOAPHeader object is created with the SOAPEnvelope
method addHeader. This method, which creates a new header and adds it
to the envelope, may be called only after the existing header has been removed.
se.getHeader().detachNode();
SOAPHeader sh = se.addHeader();
A SOAPHeader object can have only SOAPHeaderElement
objects as its immediate children. The method addHeaderElement
creates a new HeaderElement object and adds it to the
SOAPHeader object. In the following line of code, the
argument to the method addHeaderElement is a Name
object that is the name for the new HeaderElement object.
SOAPHeaderElement shElement = sh.addHeaderElement(name);
SOAPHeaderElement
| Modifier and Type | Method and Description |
|---|---|
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objecta name)Name object with the name of the new
SOAPHeaderElement objectCreates a new |
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objecta qname)QName object with the qname of the new
SOAPHeaderElement objectCreates a new |
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objecta name)QName object with the name of the
SOAPHeaderElement object that was not understood.Creates a new NotUnderstood |
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objectan supportedSOAPURIs)Iterator object with the URIs of SOAP
versions supported.Creates a new Upgrade |
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objectan array of the URIs of SOAP versions supported. supportedSoapUris)Creates a new Upgrade |
| public SOAPHeaderElement | Returns: the newSOAPHeaderElement object that was
inserted into this SOAPHeader objectthe URI of SOAP the version that is supported. supportedSoapUri)Creates a new Upgrade |
| public Iterator | Returns: anIterator object over all the
SOAPHeaderElement objects contained by this
SOAPHeaderReturns an |
| public Iterator | Returns: anIterator object over all the
SOAPHeaderElement objects that contain the specified
actor / rolea actor)String giving the URI of the actor / role
for which to searchReturns an |
| public Iterator | Returns: anIterator object over all the
SOAPHeaderElement objects that contain the specified
actor / role and are marked as MustUnderstanda actor)String giving the URI of the actor / role
for which to searchReturns an |
| public Iterator | Returns: anIterator object over all the
SOAPHeaderElement objects contained by this
SOAPHeaderReturns an |
| public Iterator | Returns: anIterator object over all the
SOAPHeaderElement objects that contain the specified
actor / rolea actor)String giving the URI of the actor / role
for which to searchReturns an |
| addHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addHeaderElement(Name name) throws SOAPException Creates a new
| |
| addHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addHeaderElement(QName qname) throws SOAPException Creates a new
| |
| addNotUnderstoodHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addNotUnderstoodHeaderElement(QName name) throws SOAPException Creates a new NotUnderstood
| |
| addUpgradeHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addUpgradeHeaderElement(Iterator<String> supportedSOAPURIs) throws SOAPException Creates a new Upgrade
| |
| addUpgradeHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addUpgradeHeaderElement(String[] supportedSoapUris) throws SOAPException Creates a new Upgrade
| |
| addUpgradeHeaderElement | back to summary |
|---|---|
| public SOAPHeaderElement addUpgradeHeaderElement(String supportedSoapUri) throws SOAPException Creates a new Upgrade
| |
| examineAllHeaderElements | back to summary |
|---|---|
| public Iterator Returns an
| |
| examineHeaderElements | back to summary |
|---|---|
| public Iterator Returns an In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.
| |
| examineMustUnderstandHeaderElements | back to summary |
|---|---|
| public Iterator Returns an In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.
| |
| extractAllHeaderElements | back to summary |
|---|---|
| public Iterator Returns an
| |
| extractHeaderElements | back to summary |
|---|---|
| public Iterator Returns an
This method allows an actor to process the parts of the
In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.
| |