class SoapHeader (View source)

Represents a SOAP header.

Properties

string Since: 8.1
$namespace
string Since: 8.1
$name
mixed Since: 8.1
$data
bool Since: 8.1
$mustUnderstand
string|int|null Since: 8.1
$actor

Methods

__construct(string $namespace, string $name, mixed $data, bool $mustUnderstand = false, string $actor = null)

SoapHeader constructor

SoapHeader(string $namespace, string $name, mixed $data = null, bool $mustunderstand = false, string $actor = null)

SoapHeader constructor

Details

__construct(string $namespace, string $name, mixed $data, bool $mustUnderstand = false, string $actor = null)

Since: 5.0.1

SoapHeader constructor

Parameters

string $namespace

The namespace of the SOAP header element.

string $name

The name of the SoapHeader object.

mixed $data

[optional]

A SOAP header's content. It can be a PHP value or a SoapVar object.

bool $mustUnderstand [optional]
string $actor

[optional]

Value of the actor attribute of the SOAP header element.

SoapHeader(string $namespace, string $name, mixed $data = null, bool $mustunderstand = false, string $actor = null)

Since: 5.0.1

SoapHeader constructor

Parameters

string $namespace

The namespace of the SOAP header element.

string $name

The name of the SoapHeader object.

mixed $data

[optional]

A SOAP header's content. It can be a PHP value or a SoapVar object.

bool $mustunderstand [optional]
string $actor

[optional]

Value of the actor attribute of the SOAP header element.