SoapHeader->__construct()
(No version information available, might be only in CVS)
SoapHeader->__construct() — SoapHeader-Konstruktor
Beschreibung
SoapHeader
__construct
( string $namespace
, string $name
[, mixed $data
[, bool $mustUnderstand
[, mixed $actor
]]] )
Erzeugt ein neues SoapHeader-Objekt.
Parameter Liste
- namespace
-
Namensraum des SOAP-Header-Elements.
- name
-
Name des SOAP-Header-Elements.
- data
-
SOAP-Header-Inhalt. Der Inhalt kann ein PHP-Wert oder auch ein SoapVar-Objekt sein.
- mustUnderstand
-
Wert des mustUnderstand Attributes des SOAP-Header-Elements.
- actor
-
Wert des actor Attributes des SOAP-Header-Elements.
Beispiele
Example#1 Beispiele
<?php
$client = new SoapClient(null, array('location' => "https://localhost/soap.php",
'uri' => "https://test-uri/"));
$client->__call("echoVoid", null, null,
new SoapHeader('https://soapinterop.org/echoheader/',
'echoMeStringRequest',
'hello world'));
?>