(PHP 5, PHP 7, PHP 8)
SoapHeader::__construct — SoapHeader 构造函数
$namespace,$name,$data = ?,$mustunderstand = ?,$actor = ?构造一个新的 SoapHeader 对象。
namespaceSOAP 头元素的命名空间。
nameSoapHeader 对象的名称。
dataSOAP 头的内容。它可以是 PHP 值或 SoapVar 对象。
mustUnderstandSOAP 头元素的 mustUnderstand 属性的值。
actorSOAP 头元素的 actor 属性的值。
示例 #1 SoapHeader::__construct() 示例
<?php
$client = new SoapClient(null, array('location' => "https:///soap.php",
'uri' => "http://test-uri/"));
$client->__soapCall("echoVoid", null, null,
new SoapHeader('http://soapinterop.org/echoheader/',
'echoMeStringRequest',
'hello world'));
?>