SoapHeader::SoapHeader

(PHP 5, PHP 7)

SoapHeader::SoapHeaderSoapHeader-Konstruktor

Beschreibung

SoapHeader::SoapHeader ( string $namespace , string $name [, mixed $data [, bool $mustunderstand = FALSE [, string $actor ]]] )

Konstruiert 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

Beispiel #1 SoapHeader::SoapHeader() Beispiel

<?php
$client 
= new SoapClient(null, array('location' => "http://localhost/soap.php",
                                     
'uri'      => "http://test-uri/"));
$client->__soapCall("echoVoid"nullnull,
                    new 
SoapHeader('http://soapinterop.org/echoheader/',
                                   
'echoMeStringRequest',
                                   
'Hallo Welt'));
?>

Siehe auch