Feedback

  • Contents
 

SOAP Add Header Element

Creates a header element and adds it to the given envelope. If the envelope doesn't yet have a header, one will be inserted before the Body element.

If the ‘Name' argument has no namespace prefix and a ‘Namespace' different than "" (default namespace) is specified, a prefix will be synthesized, unless the local name starts with a ‘:' (which is illegal in XML, and thus signals to this tool not to add a synthesized namespace prefix). Adding a prefix can greatly reduce the size of the message if child elements are in no namespace, as otherwise each child element would get an xmlns="" attribute.

Exit Paths: Success, Failure

Parameter

Dir

Type

Remarks

Envelope

IN

Node

Envelope node of the SOAP payload. Can be a document node whose document element is <SOAP-ENV:Envelope> or the node is the element itself.

Name

IN

String

Fully qualified name of the header element to create and add to the header.

Namespace

IN

String

Optional. Namespace URI of the element. If the parameter is omitted and the name has a namespace prefix, the tool will search in the parent elements for the namespace with the same prefix and make the element a member of this namespace.

Must Understand

IN

Boolean

Optional. Specifies the value of the ‘mustUnderstand' attribute:

False mustUnderstand="0"

True mustUnderstand="1"

Not specified: No ‘mustUnderstand' attribute is added.

Actor URI

IN

String

Optional. Value of the ‘actor' attribute.

Encoding Style

IN

String

Optional. Value of the ‘encodingStyle' attribute. Attribute is omitted if not specified or "NONE". Specify "STANDARD" for standard namespace ("http://schemas.xmlsoap.org/soap/encoding/").

Value

IN

String

Optional. String value to set as content of the element.

Replace Existing Header Element

IN

Boolean

Checkbox:

False Default. Add the element as last child of the body.

True Replace first element in the body that has the same (local) name and namespace. If body contains multiple elements with the same name and namespace, the remaining ones are not modified.

Delete All Existing Header Elements

IN

Boolean

Checkbox:

False Default. Append to the child list of the body.

True Remove all existing elements from the body prior to adding the new element.

Header Element

OUT

Node

Node of the element that just has been inserted.